Spring Integration

org.springframework.integration.util
Class ExpressionUtils

java.lang.Object
  extended by org.springframework.integration.util.ExpressionUtils

public class ExpressionUtils
extends java.lang.Object

Utility class with static methods for helping with establishing environments for SpEL expressions.

Since:
2.2
Author:
Gary Russell

Constructor Summary
ExpressionUtils()
           
 
Method Summary
static org.springframework.expression.spel.support.StandardEvaluationContext createStandardEvaluationContext()
          Create a StandardEvaluationContext with a MapAccessor in its property accessor property.
static org.springframework.expression.spel.support.StandardEvaluationContext createStandardEvaluationContext(org.springframework.expression.BeanResolver beanResolver)
          Create a StandardEvaluationContext with a MapAccessor in its property accessor property and the supplied BeanResolver in its beanResolver property.
static org.springframework.expression.spel.support.StandardEvaluationContext createStandardEvaluationContext(org.springframework.expression.BeanResolver beanResolver, org.springframework.core.convert.ConversionService conversionService)
          Create a StandardEvaluationContext with a MapAccessor in its property accessor property, the supplied BeanResolver in its beanResolver property, and the supplied ConversionService in its conversionService property.
static org.springframework.expression.spel.support.StandardEvaluationContext createStandardEvaluationContext(org.springframework.core.convert.ConversionService conversionService)
          Create a StandardEvaluationContext with a MapAccessor in its property accessor property and the supplied ConversionService in its conversionService property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionUtils

public ExpressionUtils()
Method Detail

createStandardEvaluationContext

public static org.springframework.expression.spel.support.StandardEvaluationContext createStandardEvaluationContext()
Create a StandardEvaluationContext with a MapAccessor in its property accessor property.

Returns:
the evaluation context.

createStandardEvaluationContext

public static org.springframework.expression.spel.support.StandardEvaluationContext createStandardEvaluationContext(org.springframework.expression.BeanResolver beanResolver)
Create a StandardEvaluationContext with a MapAccessor in its property accessor property and the supplied BeanResolver in its beanResolver property.

Parameters:
beanResolver - the bean factory.
Returns:
the evaluation context.

createStandardEvaluationContext

public static org.springframework.expression.spel.support.StandardEvaluationContext createStandardEvaluationContext(org.springframework.core.convert.ConversionService conversionService)
Create a StandardEvaluationContext with a MapAccessor in its property accessor property and the supplied ConversionService in its conversionService property.

Parameters:
conversionService - the conversion service.
Returns:
the evaluation context.

createStandardEvaluationContext

public static org.springframework.expression.spel.support.StandardEvaluationContext createStandardEvaluationContext(org.springframework.expression.BeanResolver beanResolver,
                                                                                                                    org.springframework.core.convert.ConversionService conversionService)
Create a StandardEvaluationContext with a MapAccessor in its property accessor property, the supplied BeanResolver in its beanResolver property, and the supplied ConversionService in its conversionService property.

Parameters:
beanResolver - the bean factory.
conversionService - the conversion service.
Returns:
the evaluation context.

Spring Integration