public class DefaultMuleContextFactory extends Object implements MuleContextFactory
DefaultMuleContextBuilder
to build new
MuleContext
instances.Constructor and Description |
---|
DefaultMuleContextFactory() |
Modifier and Type | Method and Description |
---|---|
void |
addListener(MuleContextListener listener)
Adds a listener to be notified of each event related to the creation
of a new
MuleContext |
protected MuleContext |
buildMuleContext(MuleContextBuilder muleContextBuilder) |
MuleContext |
createMuleContext()
Use default ConfigurationBuilder, default MuleContextBuilder
|
MuleContext |
createMuleContext(ConfigurationBuilder configurationBuilder)
Use default MuleContextBuilder
|
MuleContext |
createMuleContext(ConfigurationBuilder configurationBuilder,
MuleContextBuilder muleContextBuilder)
Creates a new MuleContext using the
MuleContextBuilder provided and
configures it with the list of configuration builder and c onfigures it with
configurationBuilder |
MuleContext |
createMuleContext(ConfigurationBuilder configurationBuilder,
Properties properties)
Creates a new MuleContext using the given configurationBuilder.
|
MuleContext |
createMuleContext(ConfigurationBuilder configurationBuilder,
Properties properties,
MuleConfiguration configuration)
Creates a new MuleContext using the given configurationBuilder and configuration.
|
MuleContext |
createMuleContext(List<ConfigurationBuilder> configurationBuilders,
MuleContextBuilder muleContextBuilder)
Creates a new MuleContext using the
MuleContextBuilder provided and
configures it with the list of configuration builders. |
MuleContext |
createMuleContext(MuleContextBuilder muleContextBuilder)
Use default ConfigurationBuilder
|
MuleContext |
createMuleContext(String resource)
Creates a new
MuleContext instance from the resource provided. |
MuleContext |
createMuleContext(String configResources,
Properties properties)
Creates a new
MuleContext instance from the resource provided. |
protected DefaultMuleContextBuilder |
createMuleContextBuilder() |
protected MuleContext |
doCreateMuleContext(MuleContextBuilder muleContextBuilder,
org.mule.context.DefaultMuleContextFactory.ContextConfigurator configurator) |
boolean |
removeListener(MuleContextListener listener)
Removes a listener from the factory.
|
protected static final Log logger
public MuleContext createMuleContext() throws InitialisationException, ConfigurationException
createMuleContext
in interface MuleContextFactory
InitialisationException
ConfigurationException
DefaultsConfigurationBuilder
protected DefaultMuleContextBuilder createMuleContextBuilder()
public MuleContext createMuleContext(ConfigurationBuilder configurationBuilder) throws InitialisationException, ConfigurationException
createMuleContext
in interface MuleContextFactory
InitialisationException
ConfigurationException
public MuleContext createMuleContext(MuleContextBuilder muleContextBuilder) throws InitialisationException, ConfigurationException
createMuleContext
in interface MuleContextFactory
InitialisationException
ConfigurationException
public MuleContext createMuleContext(List<ConfigurationBuilder> configurationBuilders, MuleContextBuilder muleContextBuilder) throws InitialisationException, ConfigurationException
MuleContextBuilder
provided and
configures it with the list of configuration builders. Configuration builders
will be invoked in the same or as provided in the List.createMuleContext
in interface MuleContextFactory
InitialisationException
ConfigurationException
public MuleContext createMuleContext(ConfigurationBuilder configurationBuilder, MuleContextBuilder muleContextBuilder) throws InitialisationException, ConfigurationException
MuleContextBuilder
provided and
configures it with the list of configuration builder and c onfigures it with
configurationBuildercreateMuleContext
in interface MuleContextFactory
InitialisationException
ConfigurationException
public MuleContext createMuleContext(String resource) throws InitialisationException, ConfigurationException
MuleContext
instance from the resource provided.
Implementations of MuleContextFactory
can either use a default
ConfigurationBuilder
to implement this, or do some auto-detection to
determine the ConfigurationBuilder
that should be used.resource
- comma seperated list of configuration resources.InitialisationException
ConfigurationException
public MuleContext createMuleContext(String configResources, Properties properties) throws InitialisationException, ConfigurationException
MuleContext
instance from the resource provided.
Implementations of MuleContextFactory
can either use a default
ConfigurationBuilder
to implement this, or do some auto-detection to
determine the ConfigurationBuilder
that should be used. Properties if
provided are used to replace "property placeholder" value in configuration
files.public MuleContext createMuleContext(ConfigurationBuilder configurationBuilder, Properties properties) throws InitialisationException, ConfigurationException
public MuleContext createMuleContext(ConfigurationBuilder configurationBuilder, Properties properties, MuleConfiguration configuration) throws InitialisationException, ConfigurationException
protected MuleContext doCreateMuleContext(MuleContextBuilder muleContextBuilder, org.mule.context.DefaultMuleContextFactory.ContextConfigurator configurator) throws InitialisationException, ConfigurationException
protected MuleContext buildMuleContext(MuleContextBuilder muleContextBuilder)
public void addListener(MuleContextListener listener)
MuleContextFactory
MuleContext
addListener
in interface MuleContextFactory
listener
- listener to add. Must be non null.public boolean removeListener(MuleContextListener listener)
MuleContextFactory
removeListener
in interface MuleContextFactory
listener
- the listener to remove. After this call, the listener
won't receive any notifications from this factory.Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.