Class DynamicExpression
java.lang.Object
org.springframework.integration.expression.DynamicExpression
- All Implemented Interfaces:
Expression
public class DynamicExpression extends Object implements Expression
An implementation of
Expression that delegates to an ExpressionSource
for resolving the actual Expression instance per-invocation at runtime.- Since:
- 2.0
- Author:
- Mark Fisher
-
Constructor Summary
Constructors Constructor Description DynamicExpression(String key, ExpressionSource expressionSource) -
Method Summary
-
Constructor Details
-
Method Details
-
getValue
- Specified by:
getValuein interfaceExpression- Throws:
EvaluationException
-
getValue
- Specified by:
getValuein interfaceExpression- Throws:
EvaluationException
-
getValue
- Specified by:
getValuein interfaceExpression- Throws:
EvaluationException
-
getValue
- Specified by:
getValuein interfaceExpression- Throws:
EvaluationException
-
getValue
- Specified by:
getValuein interfaceExpression- Throws:
EvaluationException
-
getValue
- Specified by:
getValuein interfaceExpression- Throws:
EvaluationException
-
getValue
public <T> T getValue(EvaluationContext context, Class<T> desiredResultType) throws EvaluationException- Specified by:
getValuein interfaceExpression- Throws:
EvaluationException
-
getValue
public <T> T getValue(EvaluationContext context, Object rootObject, Class<T> desiredResultType) throws EvaluationException- Specified by:
getValuein interfaceExpression- Throws:
EvaluationException
-
getValueType
- Specified by:
getValueTypein interfaceExpression- Throws:
EvaluationException
-
getValueType
- Specified by:
getValueTypein interfaceExpression- Throws:
EvaluationException
-
getValueType
- Specified by:
getValueTypein interfaceExpression- Throws:
EvaluationException
-
getValueType
public Class<?> getValueType(EvaluationContext context, Object rootObject) throws EvaluationException- Specified by:
getValueTypein interfaceExpression- Throws:
EvaluationException
-
getValueTypeDescriptor
- Specified by:
getValueTypeDescriptorin interfaceExpression- Throws:
EvaluationException
-
getValueTypeDescriptor
- Specified by:
getValueTypeDescriptorin interfaceExpression- Throws:
EvaluationException
-
getValueTypeDescriptor
- Specified by:
getValueTypeDescriptorin interfaceExpression- Throws:
EvaluationException
-
getValueTypeDescriptor
public TypeDescriptor getValueTypeDescriptor(EvaluationContext context, Object rootObject) throws EvaluationException- Specified by:
getValueTypeDescriptorin interfaceExpression- Throws:
EvaluationException
-
isWritable
- Specified by:
isWritablein interfaceExpression- Throws:
EvaluationException
-
isWritable
- Specified by:
isWritablein interfaceExpression- Throws:
EvaluationException
-
isWritable
- Specified by:
isWritablein interfaceExpression- Throws:
EvaluationException
-
setValue
- Specified by:
setValuein interfaceExpression- Throws:
EvaluationException
-
setValue
- Specified by:
setValuein interfaceExpression- Throws:
EvaluationException
-
setValue
public void setValue(EvaluationContext context, Object rootObject, Object value) throws EvaluationException- Specified by:
setValuein interfaceExpression- Throws:
EvaluationException
-
getExpressionString
- Specified by:
getExpressionStringin interfaceExpression
-