public class StaticConnectionProviderResolver<C> extends Object implements ConnectionProviderValueResolver<C>
ConnectionProviderValueResolver that wraps a StaticValueResolver| Constructor and Description |
|---|
StaticConnectionProviderResolver(org.mule.runtime.api.connection.ConnectionProvider<C> connectionProvider,
ResolverSetResult resolverSetResult) |
| Modifier and Type | Method and Description |
|---|---|
Optional<ResolverSet> |
getResolverSet() |
boolean |
isDynamic()
Returns
false if subsequent invocations to ValueResolver.resolve(ValueResolvingContext) will return the same value. |
org.mule.runtime.api.util.Pair<org.mule.runtime.api.connection.ConnectionProvider<C>,ResolverSetResult> |
resolve(ValueResolvingContext context)
Resolves a value from the given
event |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetObjectBuilderpublic StaticConnectionProviderResolver(org.mule.runtime.api.connection.ConnectionProvider<C> connectionProvider, ResolverSetResult resolverSetResult)
public org.mule.runtime.api.util.Pair<org.mule.runtime.api.connection.ConnectionProvider<C>,ResolverSetResult> resolve(ValueResolvingContext context) throws org.mule.runtime.api.exception.MuleException
ValueResolvereventresolve in interface ValueResolver<org.mule.runtime.api.util.Pair<org.mule.runtime.api.connection.ConnectionProvider<C>,ResolverSetResult>>context - the context for the current resolution attemptorg.mule.runtime.api.exception.MuleException - if the resolution of the value failspublic boolean isDynamic()
ValueResolverfalse if subsequent invocations to ValueResolver.resolve(ValueResolvingContext) 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<org.mule.runtime.api.util.Pair<org.mule.runtime.api.connection.ConnectionProvider<C>,ResolverSetResult>>public Optional<ResolverSet> getResolverSet()
getResolverSet in interface ConnectionProviderValueResolver<C>ResolverSet that will be used to resolve the values from a given event if there is any.Copyright © 2003–2019 MuleSoft, Inc.. All rights reserved.