Class DynamicExpression
java.lang.Object
org.springframework.integration.expression.DynamicExpression
- All Implemented Interfaces:
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, Artem Bilan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Object
getValue()
<T> @Nullable T
@Nullable Object
<T> @Nullable T
@Nullable Object
getValue
(EvaluationContext context) <T> @Nullable T
getValue
(EvaluationContext context, @Nullable Class<T> desiredResultType) @Nullable Object
getValue
(EvaluationContext context, @Nullable Object rootObject) <T> @Nullable T
getValue
(EvaluationContext context, @Nullable Object rootObject, @Nullable Class<T> desiredResultType) @Nullable Class
<?> @Nullable Class
<?> getValueType
(@Nullable Object rootObject) @Nullable Class
<?> getValueType
(EvaluationContext context) @Nullable Class
<?> getValueType
(EvaluationContext context, @Nullable Object rootObject) @Nullable TypeDescriptor
@Nullable TypeDescriptor
getValueTypeDescriptor
(@Nullable Object rootObject) @Nullable TypeDescriptor
getValueTypeDescriptor
(EvaluationContext context) @Nullable TypeDescriptor
getValueTypeDescriptor
(EvaluationContext context, @Nullable Object rootObject) boolean
isWritable
(@Nullable Object rootObject) boolean
isWritable
(EvaluationContext context) boolean
isWritable
(EvaluationContext context, @Nullable Object rootObject) void
void
setValue
(EvaluationContext context, @Nullable Object value) void
setValue
(EvaluationContext context, @Nullable Object rootObject, @Nullable Object value)
-
Constructor Details
-
DynamicExpression
-
-
Method Details
-
getValue
- Specified by:
getValue
in interfaceExpression
- Throws:
EvaluationException
-
getValue
- Specified by:
getValue
in interfaceExpression
- Throws:
EvaluationException
-
getValue
- Specified by:
getValue
in interfaceExpression
- Throws:
EvaluationException
-
getValue
public <T> @Nullable T getValue(@Nullable Object rootObject, @Nullable Class<T> desiredResultType) throws EvaluationException - Specified by:
getValue
in interfaceExpression
- Throws:
EvaluationException
-
getValue
- Specified by:
getValue
in interfaceExpression
- Throws:
EvaluationException
-
getValue
public @Nullable Object getValue(EvaluationContext context, @Nullable Object rootObject) throws EvaluationException - Specified by:
getValue
in interfaceExpression
- Throws:
EvaluationException
-
getValue
public <T> @Nullable T getValue(EvaluationContext context, @Nullable Class<T> desiredResultType) throws EvaluationException - Specified by:
getValue
in interfaceExpression
- Throws:
EvaluationException
-
getValue
public <T> @Nullable T getValue(EvaluationContext context, @Nullable Object rootObject, @Nullable Class<T> desiredResultType) throws EvaluationException - Specified by:
getValue
in interfaceExpression
- Throws:
EvaluationException
-
getValueType
- Specified by:
getValueType
in interfaceExpression
- Throws:
EvaluationException
-
getValueType
- Specified by:
getValueType
in interfaceExpression
- Throws:
EvaluationException
-
getValueType
- Specified by:
getValueType
in interfaceExpression
- Throws:
EvaluationException
-
getValueType
public @Nullable Class<?> getValueType(EvaluationContext context, @Nullable Object rootObject) throws EvaluationException - Specified by:
getValueType
in interfaceExpression
- Throws:
EvaluationException
-
getValueTypeDescriptor
- Specified by:
getValueTypeDescriptor
in interfaceExpression
- Throws:
EvaluationException
-
getValueTypeDescriptor
public @Nullable TypeDescriptor getValueTypeDescriptor(@Nullable Object rootObject) throws EvaluationException - Specified by:
getValueTypeDescriptor
in interfaceExpression
- Throws:
EvaluationException
-
getValueTypeDescriptor
public @Nullable TypeDescriptor getValueTypeDescriptor(EvaluationContext context) throws EvaluationException - Specified by:
getValueTypeDescriptor
in interfaceExpression
- Throws:
EvaluationException
-
getValueTypeDescriptor
public @Nullable TypeDescriptor getValueTypeDescriptor(EvaluationContext context, @Nullable Object rootObject) throws EvaluationException - Specified by:
getValueTypeDescriptor
in interfaceExpression
- Throws:
EvaluationException
-
isWritable
- Specified by:
isWritable
in interfaceExpression
- Throws:
EvaluationException
-
isWritable
public boolean isWritable(EvaluationContext context, @Nullable Object rootObject) throws EvaluationException - Specified by:
isWritable
in interfaceExpression
- Throws:
EvaluationException
-
isWritable
- Specified by:
isWritable
in interfaceExpression
- Throws:
EvaluationException
-
setValue
- Specified by:
setValue
in interfaceExpression
- Throws:
EvaluationException
-
setValue
public void setValue(@Nullable Object rootObject, @Nullable Object value) throws EvaluationException - Specified by:
setValue
in interfaceExpression
- Throws:
EvaluationException
-
setValue
public void setValue(EvaluationContext context, @Nullable Object rootObject, @Nullable Object value) throws EvaluationException - Specified by:
setValue
in interfaceExpression
- Throws:
EvaluationException
-
getExpressionString
- Specified by:
getExpressionString
in interfaceExpression
-