K,V - the generic type for the items of the returned Mappublic final class MapValueResolver<K,V> extends Object implements ValueResolver<Map<K,V>>
ValueResolver that takes a list of ValueResolvers and upon invocation of resolve(Event) it return a
Map of values with the outcome of each original resolver.
This class implements Lifecycle and propagates those events to each of the resolvers| Constructor and Description |
|---|
MapValueResolver(Class<? extends Map> mapType,
List<ValueResolver<K>> keyResolvers,
List<ValueResolver<V>> valueResolvers)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDynamic()
returns
false if subsequent invocations to ValueResolver.resolve(Event) will return the same value. |
static <K,V> MapValueResolver<K,V> |
of(Class<? extends Map> mapType,
List<ValueResolver<K>> keyResolvers,
List<ValueResolver<V>> valueResolvers) |
Map<K,V> |
resolve(Event event)
Passes the given
event to each resolvers and outputs a map of type mapType with each result |
public MapValueResolver(Class<? extends Map> mapType, List<ValueResolver<K>> keyResolvers, List<ValueResolver<V>> valueResolvers)
public static <K,V> MapValueResolver<K,V> of(Class<? extends Map> mapType, List<ValueResolver<K>> keyResolvers, List<ValueResolver<V>> valueResolvers)
public Map<K,V> resolve(Event event) throws org.mule.runtime.api.exception.MuleException
event to each resolvers and outputs a map of type mapType with each resultpublic boolean isDynamic()
ValueResolverfalse if subsequent invocations to ValueResolver.resolve(Event) 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<Map<K,V>>true if at least one of the resolvers are dynamicCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.