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.config.builders
Class AutoConfigurationBuilder

    java.lang.Object
      org.mule.config.builders.AbstractConfigurationBuilder
          org.mule.config.builders.AbstractResourceConfigurationBuilder
              org.mule.config.builders.AutoConfigurationBuilder

All Implemented Interfaces:
  ConfigurationBuilder

    public class AutoConfigurationBuilder

extends AbstractResourceConfigurationBuilder

Configures Mule from a configuration resource or comma seperated list of configuration resources by auto-detecting the ConfigurationBuilder to use for each resource. This is resolved by either checking the classpath for config modules e.g. spring-config or by using the file extention or a combination.

Field Summary
`protected static Log` | `logger`

Fields inherited from class org.mule.config.builders.AbstractResourceConfigurationBuilder
`configResources`

Fields inherited from class org.mule.config.builders.AbstractConfigurationBuilder
`configured`

Constructor Summary
`AutoConfigurationBuilder(ConfigResource[] resources)`
`AutoConfigurationBuilder(String resource)`
`AutoConfigurationBuilder(String[] resources)`

Method Summary
`protected void` | `autoConfigure(MuleContext muleContext, ConfigResource[] configResources)`
`protected void` | `doConfigure(MuleContext muleContext)` Will configure a MuleContext based on the configuration provided.

Methods inherited from class org.mule.config.builders.AbstractResourceConfigurationBuilder
`configure, createConfigResourcesString, loadConfigResources`

Methods inherited from class org.mule.config.builders.AbstractConfigurationBuilder
`applyLifecycle, isConfigured`

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

### AutoConfigurationBuilder

    public AutoConfigurationBuilder(String resource)
                             throws ConfigurationException

Throws:
  `ConfigurationException`

### AutoConfigurationBuilder

    public AutoConfigurationBuilder(String[] resources)
                             throws ConfigurationException

Throws:
  `ConfigurationException`

### AutoConfigurationBuilder

    public AutoConfigurationBuilder(ConfigResource[] resources)

Method Detail

### doConfigure

    protected void doConfigure(MuleContext muleContext)
                        throws ConfigurationException

  Description copied from class: `AbstractConfigurationBuilder`
  Will configure a MuleContext based on the configuration provided. The configuration will be set on the `ConfigurationBuilder` implementation as bean properties before this method has been called.

  Specified by:
    `doConfigure` in class `AbstractConfigurationBuilder`
  Parameters:
    `muleContext` - The current `MuleContext`
  Throws:
    `ConfigurationException` - if the configuration fails i.e. an object cannot be created or initialised properly

### autoConfigure

    protected void autoConfigure(MuleContext muleContext,
                                 ConfigResource[] configResources)
                          throws ConfigurationException

  Throws:
    `ConfigurationException`

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-2010 MuleSoft, Inc.. All Rights Reserved.