Class AbstractExpressionEvaluator
java.lang.Object
org.springframework.statemachine.support.AbstractExpressionEvaluator
- All Implemented Interfaces:
 org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanFactoryAware,org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
 StateMachineMethodInvokerHelper
public abstract class AbstractExpressionEvaluator
extends Object
implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean
Base class providing common functionality for using Spring expression language.
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidprotected ObjectevaluateExpression(String expression, Object input) protected <T> TevaluateExpression(String expression, Object input, Class<T> expectedType) protected ObjectevaluateExpression(org.springframework.expression.Expression expression) protected <T> TevaluateExpression(org.springframework.expression.Expression expression, Class<T> expectedType) protected ObjectevaluateExpression(org.springframework.expression.Expression expression, Object input) protected <T> TevaluateExpression(org.springframework.expression.Expression expression, Object input, Class<T> expectedType) protected org.springframework.expression.spel.support.StandardEvaluationContextGets the evaluation context.protected final org.springframework.expression.spel.support.StandardEvaluationContextgetEvaluationContext(boolean beanFactoryRequired) Emits a WARN log if the beanFactory field is null, unless the argument is false.voidsetBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) voidsetConversionService(org.springframework.core.convert.ConversionService conversionService) Sets the conversion service. 
- 
Constructor Details
- 
AbstractExpressionEvaluator
public AbstractExpressionEvaluator() 
 - 
 - 
Method Details
- 
setBeanFactory
public void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) - Specified by:
 setBeanFactoryin interfaceorg.springframework.beans.factory.BeanFactoryAware
 - 
afterPropertiesSet
- Specified by:
 afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
 Exception
 - 
setConversionService
public void setConversionService(org.springframework.core.convert.ConversionService conversionService) Sets the conversion service.- Parameters:
 conversionService- the new conversion service
 - 
getEvaluationContext
protected org.springframework.expression.spel.support.StandardEvaluationContext getEvaluationContext()Gets the evaluation context.- Returns:
 - the evaluation context
 
 - 
getEvaluationContext
protected final org.springframework.expression.spel.support.StandardEvaluationContext getEvaluationContext(boolean beanFactoryRequired) Emits a WARN log if the beanFactory field is null, unless the argument is false.- Parameters:
 beanFactoryRequired- set to false to suppress the warning.- Returns:
 - The evaluation context.
 
 - 
evaluateExpression
 - 
evaluateExpression
 - 
evaluateExpression
 - 
evaluateExpression
protected <T> T evaluateExpression(org.springframework.expression.Expression expression, Class<T> expectedType)  - 
evaluateExpression
 - 
evaluateExpression
 
 -