public class WebappMuleXmlConfigurationBuilder extends SpringXmlConfigurationBuilder
WebappMuleXmlConfigurationBuilder
will first try and load config
resources using the ServletContext and if this fails then it will attempt to load
config resource from the classpath.
SpringXmlConfigurationBuilder
Modifier and Type | Field and Description |
---|---|
protected Log |
logger
Logger used by this class
|
applicationContext, domainContext, MULE_DEFAULTS_CONFIG, MULE_DOMAIN_REGISTRY_BOOTSTRAP_SPRING_CONFIG, MULE_MINIMAL_SPRING_CONFIG, MULE_REGISTRY_BOOTSTRAP_SPRING_CONFIG, MULE_SPRING_CONFIG, parentContext, registry, useDefaultConfigResource, useMinimalConfigResource
configResources
configured
Constructor and Description |
---|
WebappMuleXmlConfigurationBuilder(ServletContext servletContext,
String configResources) |
WebappMuleXmlConfigurationBuilder(ServletContext servletContext,
String[] configResources) |
Modifier and Type | Method and Description |
---|---|
protected void |
doConfigure(MuleContext muleContext)
Will configure a MuleContext based on the configuration provided.
|
protected org.springframework.context.ApplicationContext |
doCreateApplicationContext(MuleContext muleContext,
ConfigResource[] configResources,
OptionalObjectsController optionalObjectsController) |
protected ConfigResource[] |
loadConfigResources(String[] configs) |
protected org.springframework.context.ApplicationContext |
loadParentContext(ServletContext servletContext)
Used to lookup parent spring ApplicationContext.
|
addResources, applyLifecycle, createSpringRegistry, getApplicationContext, getConfigResources, getParentContext, isUseDefaultConfigResource, setDomainContext, setParentContext, setUseDefaultConfigResource, setUseMinimalConfigResource, unconfigure
configure, createConfigResourcesString
isConfigured
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure, isConfigured
protected final transient Log logger
public WebappMuleXmlConfigurationBuilder(ServletContext servletContext, String configResources) throws ConfigurationException
ConfigurationException
public WebappMuleXmlConfigurationBuilder(ServletContext servletContext, String[] configResources) throws ConfigurationException
ConfigurationException
protected void doConfigure(MuleContext muleContext) throws Exception
AbstractConfigurationBuilder
ConfigurationBuilder
implementation as bean properties before this method
has been called.doConfigure
in class SpringXmlConfigurationBuilder
muleContext
- The current MuleContext
ConfigurationException
- if the configuration fails i.e. an object cannot be created or
initialised properlyException
protected ConfigResource[] loadConfigResources(String[] configs) throws ConfigurationException
loadConfigResources
in class AbstractResourceConfigurationBuilder
ConfigurationException
protected org.springframework.context.ApplicationContext doCreateApplicationContext(MuleContext muleContext, ConfigResource[] configResources, OptionalObjectsController optionalObjectsController)
doCreateApplicationContext
in class SpringXmlConfigurationBuilder
protected org.springframework.context.ApplicationContext loadParentContext(ServletContext servletContext) throws org.springframework.beans.BeansException
servletContext
- org.springframework.beans.BeansException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.