public interface MuleContextFactory
MuleContext. The instances of MuleContext returned by this
factory are initialised but not started.| 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 |
MuleContext |
createMuleContext()
Returns an existing instance of
MuleContext is one exists, otherwise a new MuleContext instance is created
with defaults. |
MuleContext |
createMuleContext(ConfigurationBuilder... configurationBuilders)
Creates a new MuleContext using the given configurationBuilder
|
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(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)
Creates a new MuleContext using the
MuleContextBuilder provided. |
boolean |
removeListener(MuleContextListener listener)
Removes a listener from the factory.
|
MuleContext createMuleContext() throws org.mule.runtime.api.lifecycle.InitialisationException, ConfigurationException
MuleContext is one exists, otherwise a new MuleContext instance is created
with defaults.org.mule.runtime.api.lifecycle.InitialisationExceptionConfigurationExceptionDefaultsConfigurationBuilderMuleContext createMuleContext(MuleContextBuilder muleContextBuilder) throws org.mule.runtime.api.lifecycle.InitialisationException, ConfigurationException
MuleContextBuilder provided.org.mule.runtime.api.lifecycle.InitialisationExceptionConfigurationExceptionMuleContext createMuleContext(ConfigurationBuilder... configurationBuilders) throws org.mule.runtime.api.lifecycle.InitialisationException, ConfigurationException
configurationBuilder - org.mule.runtime.api.lifecycle.InitialisationExceptionConfigurationExceptionMuleContext createMuleContext(ConfigurationBuilder configurationBuilder, MuleContextBuilder muleContextBuilder) throws org.mule.runtime.api.lifecycle.InitialisationException, ConfigurationException
MuleContextBuilder provided and configures it with the list of configuration
builder and c onfigures it with configurationBuilderconfigurationBuilder - org.mule.runtime.api.lifecycle.InitialisationExceptionConfigurationExceptionMuleContext createMuleContext(List<ConfigurationBuilder> configurationBuilders, MuleContextBuilder muleContextBuilder) throws org.mule.runtime.api.lifecycle.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.org.mule.runtime.api.lifecycle.InitialisationExceptionConfigurationExceptionvoid addListener(MuleContextListener listener)
MuleContextlistener - listener to add. Must be non null.boolean removeListener(MuleContextListener listener)
listener - the listener to remove. After this call, the listener won't receive any notifications from this factory.Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.