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,
ReflectionCache reflectionCache,
MuleContext muleContext)
Creates a new instance which provides instances derived from the given
configurationModel and resolverSet |
| Modifier and Type | Method and Description |
|---|---|
<C> org.mule.runtime.extension.api.runtime.config.ConfigurationInstance |
createConfiguration(String name,
CoreEvent event,
ConnectionProviderValueResolver<C> connectionProviderResolver)
Creates a new instance using the given
event to obtain the configuration's parameter values. |
<C> org.mule.runtime.extension.api.runtime.config.ConfigurationInstance |
createConfiguration(String name,
ResolverSetResult configValues,
CoreEvent event,
ConnectionProviderValueResolver<C> connectionProviderResolver,
ResolverSetResult connectionProviderValues)
Creates a new instance using the given
configValues and connectionProviderValues to obtain the
configuration's parameter values |
<C> org.mule.runtime.extension.api.runtime.config.ConfigurationInstance |
createConfiguration(String name,
ResolverSetResult configValues,
CoreEvent event,
Optional<ConnectionProviderValueResolver<C>> connectionProviderResolver)
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,
ReflectionCache reflectionCache,
MuleContext muleContext)
configurationModel and resolverSetextensionModel - the ExtensionModel that owns the configurationModelconfigurationModel - the ConfigurationModel that describes the configurations to be createdresolverSet - the ResolverSet which provides the values for the configuration's parametersmuleContext - the current MuleContextpublic <C> org.mule.runtime.extension.api.runtime.config.ConfigurationInstance createConfiguration(String name, CoreEvent event, ConnectionProviderValueResolver<C> 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 CoreEventconnectionProviderResolver - a ValueResolver to provide the ConnectionProvider or nullConfigurationInstanceorg.mule.runtime.api.exception.MuleException - if an error is encounteredpublic <C> org.mule.runtime.extension.api.runtime.config.ConfigurationInstance createConfiguration(String name, ResolverSetResult configValues, CoreEvent event, Optional<ConnectionProviderValueResolver<C>> connectionProviderResolver) throws org.mule.runtime.api.exception.MuleException
resolverSetResult to obtain the configuration's parameter valuesname - the name of the configuration to returnconfigValues - the ResolverSetResult with the evaluated config parameters valuesevent - the current CoreEventconnectionProviderResolver - an optional resolver to obtain a ConnectionProviderConfigurationInstanceorg.mule.runtime.api.exception.MuleException - if an error is encounteredpublic <C> org.mule.runtime.extension.api.runtime.config.ConfigurationInstance createConfiguration(String name, ResolverSetResult configValues, CoreEvent event, ConnectionProviderValueResolver<C> connectionProviderResolver, ResolverSetResult connectionProviderValues) throws org.mule.runtime.api.exception.MuleException
configValues and connectionProviderValues to obtain the
configuration's parameter valuesname - the name of the configuration to returnconfigValues - the ResolverSetResult with the evaluated config parameters valuesevent - the current CoreEventconnectionProviderResolver - a resolver to obtain a ConnectionProviderconnectionProviderValues - e ResolverSetResult with the evaluated connection parameters valuesConfigurationInstanceorg.mule.runtime.api.exception.MuleException - if an error is encounteredCopyright © 2003–2024 MuleSoft, Inc.. All rights reserved.