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 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()
Gets the evaluation context.
|
protected StandardEvaluationContext |
getEvaluationContext(boolean beanFactoryRequired)
Emits a WARN log if the beanFactory field is null, unless the argument is false.
|
void |
setBeanFactory(BeanFactory beanFactory) |
void |
setConversionService(ConversionService conversionService)
Sets the conversion service.
|
public void setBeanFactory(BeanFactory beanFactory)
setBeanFactory in interface BeanFactoryAwarepublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionpublic void setConversionService(ConversionService conversionService)
conversionService - the new conversion serviceprotected StandardEvaluationContext getEvaluationContext()
protected final StandardEvaluationContext getEvaluationContext(boolean beanFactoryRequired)
beanFactoryRequired - set to false to suppress the warning.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)