public class ConnectionProviderResolver<C> extends org.mule.runtime.api.component.AbstractComponent implements ConnectionProviderValueResolver<C>, org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.api.lifecycle.Startable
ValueResolver specialization for producing ConnectionProvider instances through a
ConnectionProviderObjectBuilder| Constructor and Description |
|---|
ConnectionProviderResolver(ConnectionProviderObjectBuilder<C> objectBuilder,
ResolverSet resolverSet,
MuleContext muleContext)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
Optional<ConnectionProviderObjectBuilder<C>> |
getObjectBuilder() |
Optional<ResolverSet> |
getResolverSet() |
void |
initialise() |
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 |
void |
setOwnerConfigName(String ownerConfigName) |
void |
start() |
public ConnectionProviderResolver(ConnectionProviderObjectBuilder<C> objectBuilder, ResolverSet resolverSet, MuleContext muleContext)
objectBuilder - an object builder to instantiate the ConnectionProviderpublic org.mule.runtime.api.util.Pair<org.mule.runtime.api.connection.ConnectionProvider<C>,ResolverSetResult> resolve(ValueResolvingContext context) throws org.mule.runtime.api.exception.MuleException
eventresolve 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.public Optional<ConnectionProviderObjectBuilder<C>> getObjectBuilder()
getObjectBuilder in interface ConnectionProviderValueResolver<C>public void setOwnerConfigName(String ownerConfigName)
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void start()
throws org.mule.runtime.api.exception.MuleException
start in interface org.mule.runtime.api.lifecycle.Startableorg.mule.runtime.api.exception.MuleExceptionCopyright © 2003–2022 MuleSoft, Inc.. All rights reserved.