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 Object |
resolveCursor(org.mule.runtime.api.metadata.TypedValue<?> typedValue) |
static <T> T |
resolveRecursively(ValueResolver<T> valueResolver,
ValueResolvingContext resolvingContext) |
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 resolveRecursively(ValueResolver<T> valueResolver, ValueResolvingContext resolvingContext) throws org.mule.runtime.api.exception.MuleException
org.mule.runtime.api.exception.MuleExceptionpublic 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.MuleExceptionpublic static Object resolveCursor(Object value)
Cursor based on the value, if one is available.value but converting a CursorProvider to a Cursor if any is present.public static Object resolveCursor(org.mule.runtime.api.metadata.TypedValue<?> typedValue)
Copyright © 2003–2020 MuleSoft, Inc.. All rights reserved.