public class SpringXmlConfigurationBuilder extends AbstractResourceConfigurationBuilder implements DomainMuleContextAwareConfigurationBuilder
SpringXmlConfigurationBuilder enables Mule to be configured from a
Spring XML Configuration file used with Mule name-spaces. Multiple configuration
files can be loaded from this builder (specified as a comma-separated list).| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
protected org.springframework.context.ApplicationContext |
domainContext |
static String |
MULE_DEFAULTS_CONFIG |
static String |
MULE_DOMAIN_REGISTRY_BOOTSTRAP_SPRING_CONFIG |
static String |
MULE_MINIMAL_SPRING_CONFIG |
static String |
MULE_REGISTRY_BOOTSTRAP_SPRING_CONFIG |
static String |
MULE_SPRING_CONFIG |
protected org.springframework.context.ApplicationContext |
parentContext |
protected SpringRegistry |
registry |
protected boolean |
useDefaultConfigResource
Prepend "default-mule-config.xml" to the list of config resources.
|
protected boolean |
useMinimalConfigResource |
configResourcesconfigured, logger| Constructor and Description |
|---|
SpringXmlConfigurationBuilder(ConfigResource[] configResources) |
SpringXmlConfigurationBuilder(String configResources) |
SpringXmlConfigurationBuilder(String[] configResources) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addResources(List<ConfigResource> allResources)
Template method for modifying the list of resources to be loaded.
|
protected void |
applyLifecycle(LifecycleManager lifecycleManager) |
protected void |
createSpringRegistry(MuleContext muleContext,
org.springframework.context.ApplicationContext applicationContext) |
protected void |
doConfigure(MuleContext muleContext) |
protected org.springframework.context.ApplicationContext |
doCreateApplicationContext(MuleContext muleContext,
ConfigResource[] configResources,
OptionalObjectsController optionalObjectsController) |
org.springframework.context.ApplicationContext |
getApplicationContext() |
protected org.springframework.context.ApplicationContext |
getParentContext() |
boolean |
isUseDefaultConfigResource() |
void |
setDomainContext(MuleContext domainContext) |
void |
setParentContext(org.springframework.context.ApplicationContext parentContext) |
void |
setUseDefaultConfigResource(boolean useDefaultConfigResource) |
void |
setUseMinimalConfigResource(boolean useMinimalConfigResource) |
void |
unconfigure(MuleContext muleContext) |
configure, createConfigResourcesString, loadConfigResourcesisConfiguredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigure, isConfiguredpublic static final String MULE_DEFAULTS_CONFIG
public static final String MULE_SPRING_CONFIG
public static final String MULE_MINIMAL_SPRING_CONFIG
public static final String MULE_REGISTRY_BOOTSTRAP_SPRING_CONFIG
public static final String MULE_DOMAIN_REGISTRY_BOOTSTRAP_SPRING_CONFIG
protected boolean useDefaultConfigResource
protected boolean useMinimalConfigResource
protected SpringRegistry registry
protected org.springframework.context.ApplicationContext domainContext
protected org.springframework.context.ApplicationContext parentContext
protected org.springframework.context.ApplicationContext applicationContext
public SpringXmlConfigurationBuilder(String[] configResources) throws ConfigurationException
ConfigurationExceptionpublic SpringXmlConfigurationBuilder(String configResources) throws ConfigurationException
ConfigurationExceptionpublic SpringXmlConfigurationBuilder(ConfigResource[] configResources)
protected void doConfigure(MuleContext muleContext) throws Exception
doConfigure in class AbstractConfigurationBuilderExceptionprotected void addResources(List<ConfigResource> allResources)
allResources - the list of ConfigResource to be loadedpublic void unconfigure(MuleContext muleContext)
protected org.springframework.context.ApplicationContext doCreateApplicationContext(MuleContext muleContext, ConfigResource[] configResources, OptionalObjectsController optionalObjectsController)
protected void createSpringRegistry(MuleContext muleContext, org.springframework.context.ApplicationContext applicationContext) throws Exception
Exceptionprotected void applyLifecycle(LifecycleManager lifecycleManager) throws Exception
applyLifecycle in class AbstractConfigurationBuilderExceptionpublic boolean isUseDefaultConfigResource()
public void setUseDefaultConfigResource(boolean useDefaultConfigResource)
public org.springframework.context.ApplicationContext getApplicationContext()
public void setUseMinimalConfigResource(boolean useMinimalConfigResource)
protected org.springframework.context.ApplicationContext getParentContext()
public void setParentContext(org.springframework.context.ApplicationContext parentContext)
public void setDomainContext(MuleContext domainContext)
setDomainContext in interface DomainMuleContextAwareConfigurationBuilderCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.