Example usage for org.springframework.expression.spel.support StandardTypeConverter StandardTypeConverter

List of usage examples for org.springframework.expression.spel.support StandardTypeConverter StandardTypeConverter

Introduction

In this page you can find the example usage for org.springframework.expression.spel.support StandardTypeConverter StandardTypeConverter.

Prototype

public StandardTypeConverter() 

Source Link

Document

Create a StandardTypeConverter for the default ConversionService.

Usage

From source file:org.springframework.amqp.rabbit.listener.adapter.AbstractAdaptableMessageListener.java

/**
 * Set a bean resolver for runtime SpEL expressions. Also configures the evaluation
 * context with a standard type converter and map accessor.
 * @param beanResolver the resolver./*  www .j a  v a2  s  .c o m*/
 * @since 1.6
 */
public void setBeanResolver(BeanResolver beanResolver) {
    this.evalContext.setBeanResolver(beanResolver);
    this.evalContext.setTypeConverter(new StandardTypeConverter());
    this.evalContext.addPropertyAccessor(new MapAccessor());
}