public final class TypedValueValueResolverWrapper<T> extends Object implements ValueResolver<org.mule.runtime.api.metadata.TypedValue<T>>, org.mule.runtime.api.lifecycle.Initialisable, MuleContextAware
ValueResolver implementation for TypedValue that are not resolved from an
expression.
This TypedValueValueResolverWrapper delegates the resolution to the given ValueResolver from
the constructor.
TypedValue| Constructor and Description |
|---|
TypedValueValueResolverWrapper(ValueResolver resolver) |
| Modifier and Type | Method and Description |
|---|---|
void |
initialise() |
boolean |
isDynamic()
Returns
false if subsequent invocations to ValueResolver.resolve(ValueResolvingContext) will return the same value. |
org.mule.runtime.api.metadata.TypedValue<T> |
resolve(ValueResolvingContext context)
Resolves the value of
this#resolver using the given CoreEvent and returns the correspondent
TypedValue |
void |
setMuleContext(MuleContext context) |
public TypedValueValueResolverWrapper(ValueResolver resolver)
public org.mule.runtime.api.metadata.TypedValue<T> resolve(ValueResolvingContext context) throws org.mule.runtime.api.exception.MuleException
this#resolver using the given CoreEvent and returns the correspondent
TypedValueresolve in interface ValueResolver<org.mule.runtime.api.metadata.TypedValue<T>>context - a ValueResolvingContext to resolve the ValueResolverTypedValue of the resolved valueorg.mule.runtime.api.exception.MuleException - if it fails to resolve the valuepublic boolean isDynamic()
false if subsequent invocations to ValueResolver.resolve(ValueResolvingContext) will return the same value.
Notice that if it returns true, then it might return different values per invocation but that's not guaranteed.isDynamic in interface ValueResolver<org.mule.runtime.api.metadata.TypedValue<T>>public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwareCopyright © 2003–2020 MuleSoft, Inc.. All rights reserved.