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.
org.mule.config.builders.SpringXmlConfigurationBuilder
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
logger
Logger used by this class
|
defaultConfigResourceName, parentContext
configResources
Constructor and Description |
---|
WebappMuleXmlConfigurationBuilder(javax.servlet.ServletContext servletContext,
String configResources) |
WebappMuleXmlConfigurationBuilder(javax.servlet.ServletContext servletContext,
String[] configResources) |
Modifier and Type | Method and Description |
---|---|
protected void |
createSpringParentRegistry(MuleContext muleContext,
Registry registry,
ConfigResource[] all)
Creates a Spring ApplicationContext from the configuration resources provided
and sets it as the parent Registry.
|
protected ConfigResource[] |
loadConfigResources(String[] configs) |
protected org.springframework.context.ApplicationContext |
loadParentContext(javax.servlet.ServletContext servletContext)
Used to lookup parent spring ApplicationContext.
|
doConfigure, setDefaultConfigResourceName, setParentContext
configure, createConfigResourcesString
isConfigured
protected final transient org.apache.commons.logging.Log logger
public WebappMuleXmlConfigurationBuilder(javax.servlet.ServletContext servletContext, String configResources) throws ConfigurationException
ConfigurationException
public WebappMuleXmlConfigurationBuilder(javax.servlet.ServletContext servletContext, String[] configResources) throws ConfigurationException
ConfigurationException
protected ConfigResource[] loadConfigResources(String[] configs) throws ConfigurationException
loadConfigResources
in class AbstractResourceConfigurationBuilder
ConfigurationException
protected void createSpringParentRegistry(MuleContext muleContext, Registry registry, ConfigResource[] all)
SpringXmlConfigurationBuilder
createSpringParentRegistry
in class SpringXmlConfigurationBuilder
MuleApplicationContext#setupParentSpringRegistry(Registry registry
protected org.springframework.context.ApplicationContext loadParentContext(javax.servlet.ServletContext servletContext) throws org.springframework.beans.BeansException
servletContext
- org.springframework.beans.BeansException
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.