T - the generic type of the returned ConfigurationInstance instancespublic final class ConfigurationInstanceFactory<T> extends Object
ConfigurationInstance
The created instances will be of concrete type LifecycleAwareConfigurationInstance, which means that all the
interceptor factories obtained through the InterceptorsModelProperty
(if present) will be exercised per each created instance
| Constructor and Description |
|---|
ConfigurationInstanceFactory(org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
org.mule.runtime.api.meta.model.config.ConfigurationModel configurationModel,
ResolverSet resolverSet,
MuleContext muleContext)
Creates a new instance which provides instances derived from the given
configurationModel and resolverSet |
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.extension.api.runtime.ConfigurationInstance |
createConfiguration(String name,
Event event)
Creates a new instance using the given
event to obtain the configuration's parameter values. |
org.mule.runtime.extension.api.runtime.ConfigurationInstance |
createConfiguration(String name,
Event event,
ValueResolver<org.mule.runtime.api.connection.ConnectionProvider> connectionProviderResolver)
Creates a new instance using the given
event to obtain the configuration's parameter values. |
org.mule.runtime.extension.api.runtime.ConfigurationInstance |
createConfiguration(String name,
ResolverSetResult resolverSetResult,
Optional<org.mule.runtime.api.connection.ConnectionProvider> connectionProvider)
Creates a new instance using the given
resolverSetResult to obtain the configuration's parameter values |
public ConfigurationInstanceFactory(org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
org.mule.runtime.api.meta.model.config.ConfigurationModel configurationModel,
ResolverSet resolverSet,
MuleContext muleContext)
configurationModel and resolverSetconfigurationModel - the ConfigurationModel that describes the configurations to be createdresolverSet - the ResolverSet which provides the values for the configuration's parameterspublic org.mule.runtime.extension.api.runtime.ConfigurationInstance createConfiguration(String name, Event event) throws org.mule.runtime.api.exception.MuleException
event to obtain the configuration's parameter values.
This method tries to automatically infer a ConnectionProvider. The first step is to determine if the
ExtensionModel which owns the configurationModel has any OperationModel which requires a connection.
If the answer is no, then it just provides a null connection provider. Otherwise, it uses a
ImplicitConnectionProviderFactory to construct an implicit ConnectionProvider.
name - the name of the configuration to returnevent - the current EventConfigurationInstanceorg.mule.runtime.api.exception.MuleException - if an error is encounteredpublic org.mule.runtime.extension.api.runtime.ConfigurationInstance createConfiguration(String name, Event event, ValueResolver<org.mule.runtime.api.connection.ConnectionProvider> connectionProviderResolver) throws org.mule.runtime.api.exception.MuleException
event to obtain the configuration's parameter values.
This method overload allows specifying a ValueResolver to provide the ConnectionProvider that the
configuration will use to obtain connections. If the connection does not need such a concept you can provide a null
name - the name of the configuration to returnevent - the current EventconnectionProviderResolver - a ValueResolver to provide the ConnectionProvider or nullConfigurationInstanceorg.mule.runtime.api.exception.MuleException - if an error is encounteredpublic org.mule.runtime.extension.api.runtime.ConfigurationInstance createConfiguration(String name, ResolverSetResult resolverSetResult, Optional<org.mule.runtime.api.connection.ConnectionProvider> connectionProvider) throws org.mule.runtime.api.exception.MuleException
resolverSetResult to obtain the configuration's parameter valuesname - the name of the configuration to returnresolverSetResult - the ResolverSetResult with previously evaluated valuesConfigurationInstanceorg.mule.runtime.api.exception.MuleException - if an error is encounteredCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.