public final class ImplicitConnectionProviderValueResolver<C> extends Object implements ConnectionProviderValueResolver<C>
ImplicitConnectionProviderFactory to create an implicit ConnectionProvider.
This is a static ValueResolver. The ConnectionProvider is created the first time the resolve(ValueResolvingContext)
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,
ReflectionCache reflectionCache,
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.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 ImplicitConnectionProviderValueResolver(String name, org.mule.runtime.api.meta.model.ExtensionModel extensionModel, org.mule.runtime.api.meta.model.config.ConfigurationModel configurationModel, ReflectionCache reflectionCache, MuleContext muleContext)
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()
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 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–2024 MuleSoft, Inc.. All rights reserved.