org.mule.api.context
Interface MuleContextFactory

All Known Implementing Classes:
DefaultMuleContextFactory

public interface MuleContextFactory

A CopyOfMuleContextFactory is used to create instances of MuleContext. The instances of MuleContext returned by this factory are initialised but not started.


Method Summary
 MuleContext createMuleContext()
          Returns an existing instance of MuleContext is one exists, otherwise a new MuleContext instance is created with defaults.
 MuleContext createMuleContext(ConfigurationBuilder configurationBuilder)
          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 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.
 

Method Detail

createMuleContext

MuleContext createMuleContext()
                              throws InitialisationException,
                                     ConfigurationException
Returns an existing instance of MuleContext is one exists, otherwise a new MuleContext instance is created with defaults.

Returns:
Throws:
InitialisationException
ConfigurationException
See Also:
DefaultsConfigurationBuilder}

createMuleContext

MuleContext createMuleContext(MuleContextBuilder muleContextBuilder)
                              throws InitialisationException,
                                     ConfigurationException
Creates a new MuleContext using the MuleContextBuilder provided.

Parameters:
configurationBuilder -
Returns:
Throws:
InitialisationException
ConfigurationException

createMuleContext

MuleContext createMuleContext(ConfigurationBuilder configurationBuilder)
                              throws InitialisationException,
                                     ConfigurationException
Creates a new MuleContext using the given configurationBuilder

Parameters:
configurationBuilder -
Returns:
Throws:
InitialisationException
ConfigurationException

createMuleContext

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

Parameters:
configurationBuilder -
Returns:
Throws:
InitialisationException
ConfigurationException

createMuleContext

MuleContext createMuleContext(List 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.

Parameters:
configurationBuilder -
Returns:
Throws:
InitialisationException
ConfigurationException


Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.