DefaultMuleContextFactory (Mule ESB 2.2.1 API)
Keywords: org.mule.context.DefaultMuleContextFactory class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.mule.context
Class DefaultMuleContextFactory

    java.lang.Object
      org.mule.context.DefaultMuleContextFactory

All Implemented Interfaces:
  MuleContextFactory

    public class DefaultMuleContextFactory

extends Object
implements MuleContextFactory

Default implementation that stores MuleContext in `MuleServer` static and 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)` {@inheritDoc
`MuleContext` | `createMuleContext(ConfigurationBuilder configurationBuilder, Properties properties)` Creates a new MuleContext using the given configurationBuilder.
`MuleContext` | `createMuleContext(List configurationBuilders, MuleContextBuilder muleContextBuilder)` {@inheritDoc
`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`
  Returns:
  Throws:
    `InitialisationException`
    `ConfigurationException`
  See Also:
    `DefaultsConfigurationBuilder}`

### createMuleContext

    public MuleContext createMuleContext(ConfigurationBuilder configurationBuilder)
                                  throws InitialisationException,
                                         ConfigurationException

  Use default MuleContextBuilder

  Specified by:
    `createMuleContext` in interface `MuleContextFactory`
  Returns:
  Throws:
    `InitialisationException`
    `ConfigurationException`

### createMuleContext

    public MuleContext createMuleContext(MuleContextBuilder muleContextBuilder)
                                  throws InitialisationException,
                                         ConfigurationException

  Use default ConfigurationBuilder

  Specified by:
    `createMuleContext` in interface `MuleContextFactory`
  Returns:
  Throws:
    `InitialisationException`
    `ConfigurationException`

### createMuleContext

    public MuleContext createMuleContext(List configurationBuilders,
                                         MuleContextBuilder muleContextBuilder)
                                  throws InitialisationException,
                                         ConfigurationException

  {@inheritDoc

  Specified by:
    `createMuleContext` in interface `MuleContextFactory`
  Returns:
  Throws:
    `InitialisationException`
    `ConfigurationException`

### createMuleContext

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

  {@inheritDoc

  Specified by:
    `createMuleContext` in interface `MuleContextFactory`
  Returns:
  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:
    `configResources` - comma seperated list of configuration resources.
  Returns:
  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.

  Parameters:
    `resource` -
    `properties` -
  Returns:
  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.

  Parameters:
    `configurationBuilder` -
    `properties` -
  Returns:
  Throws:
    `InitialisationException`
    `ConfigurationException`

### doCreateMuleContext

    protected MuleContext doCreateMuleContext(MuleContextBuilder muleContextBuilder)
                                       throws InitialisationException

  Throws:
    `InitialisationException`

### buildMuleContext

    protected MuleContext buildMuleContext(MuleContextBuilder muleContextBuilder)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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