public abstract class AbstractExpressionEvaluator extends java.lang.Object implements BeanFactoryAware, InitializingBean
Constructor and Description |
---|
AbstractExpressionEvaluator() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected java.lang.Object |
evaluateExpression(Expression expression) |
protected <T> T |
evaluateExpression(Expression expression,
java.lang.Class<T> expectedType) |
protected <T> T |
evaluateExpression(Expression expression,
Message<?> message,
java.lang.Class<T> expectedType) |
protected java.lang.Object |
evaluateExpression(Expression expression,
java.lang.Object input) |
protected <T> T |
evaluateExpression(Expression expression,
java.lang.Object input,
java.lang.Class<T> expectedType) |
protected java.lang.Object |
evaluateExpression(java.lang.String expression,
java.lang.Object input) |
protected <T> T |
evaluateExpression(java.lang.String expression,
java.lang.Object input,
java.lang.Class<T> expectedType) |
protected StandardEvaluationContext |
getEvaluationContext() |
protected StandardEvaluationContext |
getEvaluationContext(boolean beanFactoryRequired)
Emits a WARN log if the beanFactory field is null, unless the argument is false.
|
protected MessageBuilderFactory |
getMessageBuilderFactory() |
void |
setBeanFactory(BeanFactory beanFactory)
Specify a BeanFactory in order to enable resolution via
@beanName in the expression. |
void |
setConversionService(ConversionService conversionService) |
public void setBeanFactory(BeanFactory beanFactory)
@beanName
in the expression.setBeanFactory
in interface BeanFactoryAware
public void setConversionService(ConversionService conversionService)
protected MessageBuilderFactory getMessageBuilderFactory()
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface InitializingBean
java.lang.Exception
protected StandardEvaluationContext getEvaluationContext()
protected final StandardEvaluationContext getEvaluationContext(boolean beanFactoryRequired)
beanFactoryRequired
- set to false to suppress the warning.protected <T> T evaluateExpression(Expression expression, Message<?> message, java.lang.Class<T> expectedType)
protected java.lang.Object evaluateExpression(java.lang.String expression, java.lang.Object input)
protected <T> T evaluateExpression(java.lang.String expression, java.lang.Object input, java.lang.Class<T> expectedType)
protected java.lang.Object evaluateExpression(Expression expression, java.lang.Object input)
protected <T> T evaluateExpression(Expression expression, java.lang.Class<T> expectedType)
protected java.lang.Object evaluateExpression(Expression expression)
protected <T> T evaluateExpression(Expression expression, java.lang.Object input, java.lang.Class<T> expectedType)