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 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()
Gets the evaluation context.
|
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) |
void |
setConversionService(org.springframework.core.convert.ConversionService conversionService)
Sets the conversion service.
|
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwarepublic void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic void setConversionService(org.springframework.core.convert.ConversionService conversionService)
conversionService - the new conversion serviceprotected 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 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)