public class StackableTypesValueResolverFactory extends Object
ValueResolver for stackable types parameters.| Modifier and Type | Method and Description |
|---|---|
ValueResolver |
getExpressionBasedValueResolver(String expression,
Class expectedType)
Given a expression value, the expected type and the stack of
wrapper types, iterates it and
creates all the required ValueResolver and stacks them is necessary. |
ValueResolver |
getStaticValueResolver(Object value)
Given a static value and the stack of
wrapper types, iterates it and creates all the required
ValueResolver and stacks them is necessary. |
Optional<ValueResolver> |
getStaticValueResolver(Object value,
Class clazz)
Given a static value, the stack of
stacked types and the desired class for the static resolver, if
the class is not found as the root of the parameter type, an Optional.empty() will be returned. |
ValueResolver |
getWrapperValueResolver(ValueResolver resolverDelegate)
Given a static value and the stack of
wrapper types, iterates it and creates all the required
ValueResolver and stacks them is necessary. |
public ValueResolver getExpressionBasedValueResolver(String expression, Class expectedType)
wrapper types, iterates it and
creates all the required ValueResolver and stacks them is necessary.expression - Expression value for the expression based value resolver.expectedType - The expected type of the expression resolutionValueResolverpublic ValueResolver getStaticValueResolver(Object value)
wrapper types, iterates it and creates all the required
ValueResolver and stacks them is necessary.value - The static valueValueResolverpublic Optional<ValueResolver> getStaticValueResolver(Object value, Class clazz)
stacked types and the desired class for the static resolver, if
the class is not found as the root of the parameter type, an Optional.empty() will be returned.
Also, iterates it and creates all the required ValueResolver and stacks them is necessary.value - The static valueValueResolverpublic ValueResolver getWrapperValueResolver(ValueResolver resolverDelegate)
wrapper types, iterates it and creates all the required
ValueResolver and stacks them is necessary.resolverDelegate - The ValueResolver to wrapValueResolverCopyright © 2003–2019 MuleSoft, Inc.. All rights reserved.