T - the generic type of the returned ConfigurationInstance instancespublic final class ConfigurationInstanceFactory<T> extends Object
ConfigurationInstance| Constructor and Description |
|---|
ConfigurationInstanceFactory(org.mule.runtime.api.meta.model.ExtensionModel extensionModel,
org.mule.runtime.api.meta.model.config.ConfigurationModel configurationModel,
ResolverSet resolverSet,
ExpressionManager expressionManager,
MuleContext context)
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> resolver)
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> resolver,
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,
ExpressionManager expressionManager,
MuleContext context)
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 parametersexpressionManager - the ExpressionManager used to create a session used to evaluate the attributes.context - the current MuleContextpublic <C> org.mule.runtime.extension.api.runtime.config.ConfigurationInstance createConfiguration(String name, CoreEvent event, ConnectionProviderValueResolver<C> resolver) 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 CoreEventresolver - 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> resolver, 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 CoreEventresolver - 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.