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 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()
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 java.lang.Exception
afterPropertiesSet in interface InitializingBeanjava.lang.Exceptionpublic 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 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)