public final class ImplicitConnectionProviderValueResolver extends Object implements ConnectionProviderValueResolver
ImplicitConnectionProviderFactory to create an implicit ConnectionProvider.
This is a static ValueResolver. The ConnectionProvider is created the first time the #resolve(Event)
method is invoked on this instance. Subsequent invocations will return the same instance.
This class is thread-safe
| Constructor and Description |
|---|
ImplicitConnectionProviderValueResolver(String name,
org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
org.mule.runtime.api.meta.model.config.ConfigurationModel configurationModel,
MuleContext muleContext) |
| 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.connection.ConnectionProvider |
resolve(ValueResolvingContext context)
Resolves a value from the given
event |
public ImplicitConnectionProviderValueResolver(String name, org.mule.runtime.api.meta.model.ExtensionModel extensionModel, org.mule.runtime.api.meta.model.config.ConfigurationModel configurationModel, MuleContext muleContext)
public org.mule.runtime.api.connection.ConnectionProvider resolve(ValueResolvingContext context) throws org.mule.runtime.api.exception.MuleException
ValueResolvereventresolve in interface ValueResolvercontext - the context for the current resolution attemptorg.mule.runtime.api.exception.MuleException - if the resolution of the value failspublic boolean isDynamic()
false 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 ValueResolverpublic Optional<ResolverSet> getResolverSet()
getResolverSet in interface ConnectionProviderValueResolverResolverSet that will be used to resolve the values from a given event if there is any.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.