public abstract class AbstractExpressionEvaluator extends Object implements BeanFactoryAware, InitializingBean
| Constructor and Description |
|---|
AbstractExpressionEvaluator() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected Object |
evaluateExpression(Expression expression) |
protected <T> T |
evaluateExpression(Expression expression,
Class<T> expectedType) |
protected <T> T |
evaluateExpression(Expression expression,
Message<?> message,
Class<T> expectedType) |
protected Object |
evaluateExpression(Expression expression,
Object input) |
protected <T> T |
evaluateExpression(Expression expression,
Object input,
Class<T> expectedType) |
protected Object |
evaluateExpression(String expression,
Object input) |
protected <T> T |
evaluateExpression(String expression,
Object input,
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 BeanFactoryAwarepublic void setConversionService(ConversionService conversionService)
protected MessageBuilderFactory getMessageBuilderFactory()
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionprotected StandardEvaluationContext getEvaluationContext()
protected final StandardEvaluationContext getEvaluationContext(boolean beanFactoryRequired)
beanFactoryRequired - set to false to suppress the warning.protected <T> T evaluateExpression(Expression expression, Message<?> message, Class<T> expectedType)
protected <T> T evaluateExpression(String expression, Object input, Class<T> expectedType)
protected Object evaluateExpression(Expression expression, Object input)
protected <T> T evaluateExpression(Expression expression, Class<T> expectedType)
protected Object evaluateExpression(Expression expression)
protected <T> T evaluateExpression(Expression expression, Object input, Class<T> expectedType)