Class AbstractExpressionEvaluator
java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
- All Implemented Interfaces:
Aware,BeanFactoryAware,InitializingBean
- Direct Known Subclasses:
AbstractMessageProcessor,AbstractMessageSource,CollectionArgumentResolver,DefaultFileNameGenerator,ExpressionEvaluatingMessageListProcessor,ExpressionEvaluatingReleaseStrategy,ExpressionEvaluatingSqlParameterSourceFactory,MapArgumentResolver,MessagingMethodInvokerHelper,MethodInvokingMessageListProcessor,PayloadExpressionArgumentResolver,PayloadsArgumentResolver
public abstract class AbstractExpressionEvaluator extends Object implements BeanFactoryAware, InitializingBean
- Since:
- 2.0
- Author:
- Mark Fisher, Dave Syer, Oleg Zhurakousky, Artem Bilan, Gary Russell
-
Field Summary
Fields Modifier and Type Field Description protected static ExpressionParserEXPRESSION_PARSERprotected LogAccessorlogger -
Constructor Summary
Constructors Constructor Description AbstractExpressionEvaluator() -
Method Summary
Modifier and Type Method Description voidafterPropertiesSet()protected ObjectevaluateExpression(String expression, Object input)protected <T> TevaluateExpression(String expression, Object input, Class<T> expectedType)protected ObjectevaluateExpression(Expression expression)protected <T> TevaluateExpression(Expression expression, Class<T> expectedType)protected ObjectevaluateExpression(Expression expression, Object input)protected <T> TevaluateExpression(Expression expression, Object input, Class<T> expectedType)protected <T> TevaluateExpression(Expression expression, Message<?> message, Class<T> expectedType)protected BeanFactorygetBeanFactory()protected StandardEvaluationContextgetEvaluationContext()protected StandardEvaluationContextgetEvaluationContext(boolean beanFactoryRequired)Emits a WARN log if the beanFactory field is null, unless the argument is false.protected MessageBuilderFactorygetMessageBuilderFactory()protected voidonInit()voidsetBeanFactory(BeanFactory beanFactory)Specify a BeanFactory in order to enable resolution via@beanNamein the expression.voidsetConversionService(ConversionService conversionService)
-
Field Details
-
Constructor Details
-
AbstractExpressionEvaluator
public AbstractExpressionEvaluator()
-
-
Method Details
-
setBeanFactory
Specify a BeanFactory in order to enable resolution via@beanNamein the expression.- Specified by:
setBeanFactoryin interfaceBeanFactoryAware
-
getBeanFactory
-
setConversionService
-
getMessageBuilderFactory
-
afterPropertiesSet
public final void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceInitializingBean
-
getEvaluationContext
-
getEvaluationContext
Emits a WARN log if the beanFactory field is null, unless the argument is false.- Parameters:
beanFactoryRequired- set to false to suppress the warning.- Returns:
- The evaluation context.
-
evaluateExpression
@Nullable protected <T> T evaluateExpression(Expression expression, Message<?> message, @Nullable Class<T> expectedType) -
evaluateExpression
-
evaluateExpression
-
evaluateExpression
-
evaluateExpression
@Nullable protected <T> T evaluateExpression(Expression expression, @Nullable Class<T> expectedType) -
evaluateExpression
-
evaluateExpression
@Nullable protected <T> T evaluateExpression(Expression expression, Object input, @Nullable Class<T> expectedType) -
onInit
protected void onInit()
-