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, parentContextconfigResources| 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, setParentContextconfigure, createConfigResourcesStringisConfiguredprotected final transient org.apache.commons.logging.Log logger
public WebappMuleXmlConfigurationBuilder(javax.servlet.ServletContext servletContext,
String configResources)
throws ConfigurationException
ConfigurationExceptionpublic WebappMuleXmlConfigurationBuilder(javax.servlet.ServletContext servletContext,
String[] configResources)
throws ConfigurationException
ConfigurationExceptionprotected ConfigResource[] loadConfigResources(String[] configs) throws ConfigurationException
loadConfigResources in class AbstractResourceConfigurationBuilderConfigurationExceptionprotected void createSpringParentRegistry(MuleContext muleContext, Registry registry, ConfigResource[] all)
SpringXmlConfigurationBuildercreateSpringParentRegistry in class SpringXmlConfigurationBuilderMuleApplicationContext#setupParentSpringRegistry(Registry registryprotected org.springframework.context.ApplicationContext loadParentContext(javax.servlet.ServletContext servletContext)
throws org.springframework.beans.BeansException
servletContext - org.springframework.beans.BeansExceptionCopyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.