public class ResolverUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static ValueResolver<?> |
getExpressionBasedValueResolver(String expression,
org.mule.metadata.api.model.MetadataType metadataType,
MuleContext muleContext) |
static Object |
resolveCursor(Object value)
Obtains a
Cursor based on the value, if one is available. |
static <T> T |
resolveValue(ValueResolver<T> resolver,
ValueResolvingContext context)
Executes the
resolver using the given context,
applying all the required resolution rules that may apply for
the given T type. |
public static ValueResolver<?> getExpressionBasedValueResolver(String expression, org.mule.metadata.api.model.MetadataType metadataType, MuleContext muleContext)
public static <T> T resolveValue(ValueResolver<T> resolver, ValueResolvingContext context) throws org.mule.runtime.api.exception.MuleException
resolver using the given context,
applying all the required resolution rules that may apply for
the given T type.resolver - the ValueResolver to executecontext - the ValueResolvingContext to pass on the resolverorg.mule.runtime.api.exception.MuleExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.