Spring Integration

org.springframework.integration.expression
Class ExpressionUtils

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

public abstract 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, Oleg Zhurakousky, Artem Bilan

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.beans.factory.BeanFactory beanFactory)
          Creates BeanFactoryResolver, extracts ConversionService and delegates to createStandardEvaluationContext(BeanResolver, ConversionService)
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 resolver.
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 resolver.
conversionService - the conversion service.
Returns:
the evaluation context.

createStandardEvaluationContext

public static org.springframework.expression.spel.support.StandardEvaluationContext createStandardEvaluationContext(org.springframework.beans.factory.BeanFactory beanFactory)
Creates BeanFactoryResolver, extracts ConversionService and delegates to createStandardEvaluationContext(BeanResolver, ConversionService)

Parameters:
beanFactory - the beanFactory.
Returns:
the evaluation context.

Spring Integration