public class ParameterResolverValueResolverWrapper<T> extends Object implements ValueResolver<org.mule.runtime.extension.api.runtime.parameter.ParameterResolver<T>>
ValueResolver implementation for ParameterResolver that are not resolved from an
expression.
This ParameterResolverValueResolverWrapper delegates the resolution to the given ValueResolver from
the constructor and wraps the value into a StaticParameterResolver
ParameterResolver| Constructor and Description |
|---|
ParameterResolverValueResolverWrapper(ValueResolver resolver) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDynamic()
Returns
false if subsequent invocations to ValueResolver.resolve(ValueResolvingContext) will return the same value. |
org.mule.runtime.extension.api.runtime.parameter.ParameterResolver<T> |
resolve(ValueResolvingContext context)
Resolves the value of
this#resolver using the given Event and wraps it into a
StaticParameterResolver |
public ParameterResolverValueResolverWrapper(ValueResolver resolver)
public org.mule.runtime.extension.api.runtime.parameter.ParameterResolver<T> resolve(ValueResolvingContext context) throws org.mule.runtime.api.exception.MuleException
this#resolver using the given Event and wraps it into a
StaticParameterResolverresolve in interface ValueResolver<org.mule.runtime.extension.api.runtime.parameter.ParameterResolver<T>>context - a ValueResolvingContext to resolve the ValueResolverParameterResolver with the resolved valueorg.mule.runtime.api.exception.MuleException - if it fails to resolve the valuepublic boolean isDynamic()
ValueResolverfalse 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.extension.api.runtime.parameter.ParameterResolver<T>>Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.