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 |
mapTypeValue(Object value,
UnaryOperator valueMapper)
Applies the valueMapper to the value of a
TypedValue if appropriate |
static Object |
resolveCursor(Object value)
Obtains a
Cursor based on the value, if one is available. |
static Object |
resolveCursor(Object value,
UnaryOperator valueMapper)
Obtains a
Cursor based on the value, if one is available. |
static Object |
resolveCursor(org.mule.runtime.api.metadata.TypedValue<?> typedValue) |
static Object |
resolveCursor(org.mule.runtime.api.metadata.TypedValue<?> typedValue,
UnaryOperator valueMapper) |
static <T> T |
resolveRecursively(ValueResolver<T> valueResolver,
ValueResolvingContext resolvingContext) |
static Object |
resolveTypedValue(Object value,
UnaryOperator valueMapper)
Obtains the value of a
TypedValue if appropriate. |
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(Object value, UnaryOperator valueMapper)
Cursor based on the value, if one is available.value but converting a CursorProvider to a Cursor if any is present.public static Object resolveTypedValue(Object value, UnaryOperator valueMapper)
TypedValue if appropriate.value from a typedValue.public static Object mapTypeValue(Object value, UnaryOperator valueMapper)
TypedValue if appropriatevalue from a typedValue.public static Object resolveCursor(org.mule.runtime.api.metadata.TypedValue<?> typedValue)
public static Object resolveCursor(org.mule.runtime.api.metadata.TypedValue<?> typedValue, UnaryOperator valueMapper)
Copyright © 2003–2021 MuleSoft, Inc.. All rights reserved.