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