org.mule.context
Class DefaultMuleContextFactory

java.lang.Object
  extended by org.mule.context.DefaultMuleContextFactory
All Implemented Interfaces:
MuleContextFactory

public class DefaultMuleContextFactory
extends Object
implements MuleContextFactory

Default implementation that uses DefaultMuleContextBuilder to build new MuleContext instances.


Field Summary
protected static Log logger
           
 
Constructor Summary
DefaultMuleContextFactory()
           
 
Method Summary
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  MuleContext doCreateMuleContext(MuleContextBuilder muleContextBuilder)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final Log logger
Constructor Detail

DefaultMuleContextFactory

public DefaultMuleContextFactory()
Method Detail

createMuleContext

public MuleContext createMuleContext()
                              throws InitialisationException,
                                     ConfigurationException
Use default ConfigurationBuilder, default MuleContextBuilder

Specified by:
createMuleContext in interface MuleContextFactory
Throws:
InitialisationException
ConfigurationException
See Also:
DefaultsConfigurationBuilder

createMuleContext

public MuleContext createMuleContext(ConfigurationBuilder configurationBuilder)
                              throws InitialisationException,
                                     ConfigurationException
Use default MuleContextBuilder

Specified by:
createMuleContext in interface MuleContextFactory
Throws:
InitialisationException
ConfigurationException

createMuleContext

public MuleContext createMuleContext(MuleContextBuilder muleContextBuilder)
                              throws InitialisationException,
                                     ConfigurationException
Use default ConfigurationBuilder

Specified by:
createMuleContext in interface MuleContextFactory
Throws:
InitialisationException
ConfigurationException

createMuleContext

public MuleContext createMuleContext(List<ConfigurationBuilder> configurationBuilders,
                                     MuleContextBuilder muleContextBuilder)
                              throws InitialisationException,
                                     ConfigurationException
Creates a new MuleContext using the 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.

Specified by:
createMuleContext in interface MuleContextFactory
Throws:
InitialisationException
ConfigurationException

createMuleContext

public MuleContext createMuleContext(ConfigurationBuilder configurationBuilder,
                                     MuleContextBuilder muleContextBuilder)
                              throws InitialisationException,
                                     ConfigurationException
Creates a new MuleContext using the MuleContextBuilder provided and configures it with the list of configuration builder and c onfigures it with configurationBuilder

Specified by:
createMuleContext in interface MuleContextFactory
Throws:
InitialisationException
ConfigurationException

createMuleContext

public MuleContext createMuleContext(String resource)
                              throws InitialisationException,
                                     ConfigurationException
Creates a new 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.

Parameters:
resource - comma seperated list of configuration resources.
Throws:
InitialisationException
ConfigurationException

createMuleContext

public MuleContext createMuleContext(String configResources,
                                     Properties properties)
                              throws InitialisationException,
                                     ConfigurationException
Creates a new 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.

Throws:
InitialisationException
ConfigurationException

createMuleContext

public MuleContext createMuleContext(ConfigurationBuilder configurationBuilder,
                                     Properties properties)
                              throws InitialisationException,
                                     ConfigurationException
Creates a new MuleContext using the given configurationBuilder. Properties if provided are used to replace "property placeholder" value in configuration files.

Throws:
InitialisationException
ConfigurationException

createMuleContext

public MuleContext createMuleContext(ConfigurationBuilder configurationBuilder,
                                     Properties properties,
                                     MuleConfiguration configuration)
                              throws InitialisationException,
                                     ConfigurationException
Creates a new MuleContext using the given configurationBuilder and configuration. Properties if provided are used to replace "property placeholder" value in configuration files.

Throws:
InitialisationException
ConfigurationException

doCreateMuleContext

protected MuleContext doCreateMuleContext(MuleContextBuilder muleContextBuilder)
                                   throws InitialisationException
Throws:
InitialisationException

buildMuleContext

protected MuleContext buildMuleContext(MuleContextBuilder muleContextBuilder)


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.