T - public class ExpressionTypedValueValueResolver<T> extends ExpressionValueResolver<org.mule.runtime.api.metadata.TypedValue<T>> implements org.mule.runtime.api.lifecycle.Initialisable
ValueResolver implementation and extension of TypeSafeExpressionValueResolver which evaluates expressions
and tries to ensure that the output is always of a certain type.
This ValueResolver will return the TypedValue of the expression evaluation result.
| Constructor and Description |
|---|
ExpressionTypedValueValueResolver(String expression,
Class<T> expectedClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
initialise() |
org.mule.runtime.api.metadata.TypedValue<T> |
resolve(ValueResolvingContext context)
Resolves a value from the given
event |
void |
setTransformationService(org.mule.runtime.api.transformation.TransformationService transformationService) |
getExpression, isDynamic, isMelAvailable, resolveTypedValue, setRegistrypublic org.mule.runtime.api.metadata.TypedValue<T> resolve(ValueResolvingContext context) throws org.mule.runtime.api.exception.MuleException
ValueResolvereventresolve in interface ValueResolver<org.mule.runtime.api.metadata.TypedValue<T>>resolve in class ExpressionValueResolver<org.mule.runtime.api.metadata.TypedValue<T>>context - the context for the current resolution attemptorg.mule.runtime.api.exception.MuleException - if the resolution of the value failspublic void setTransformationService(org.mule.runtime.api.transformation.TransformationService transformationService)
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableinitialise in class ExpressionValueResolver<org.mule.runtime.api.metadata.TypedValue<T>>org.mule.runtime.api.lifecycle.InitialisationExceptionCopyright © 2003–2025 MuleSoft, Inc.. All rights reserved.