public class MuleXmlBuilderContextListener extends Object implements javax.servlet.ServletContextListener
MuleXmlBuilderContextListener is a bootstrap listener used to
construct a MuleManager instance. This listener delegates to the
MuleXmlConfigurationBuilder.
The location of the configuration file can be specified in a init parameter called org.mule.config, the value can be a path on the local file system or on the classpath. If a config parameter is not specified a default mule-config.xml will be used.
SpringXmlConfigurationBuilder| Modifier and Type | Field and Description |
|---|---|
static String |
INIT_PARAMETER_MULE_CONFIG
One or more Mule config files.
|
protected org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
MuleXmlBuilderContextListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent event) |
void |
contextInitialized(javax.servlet.ServletContextEvent event) |
protected MuleContext |
createManager(String configResource,
javax.servlet.ServletContext context)
Used to actually construct the UMOManager instance
|
void |
destroy() |
protected String |
getDefaultConfigResource()
If no config location resource is configured on the servlet context, the value
returned from this method will be used to initialise the MuleManager.
|
void |
initialize(javax.servlet.ServletContext context) |
public static final String INIT_PARAMETER_MULE_CONFIG
protected final transient org.apache.commons.logging.Log logger
public void contextInitialized(javax.servlet.ServletContextEvent event)
contextInitialized in interface javax.servlet.ServletContextListenerpublic void initialize(javax.servlet.ServletContext context)
protected MuleContext createManager(String configResource, javax.servlet.ServletContext context) throws ConfigurationException, InitialisationException
configResource - the location of the config resource, this can be on the
local file system or on the classpath.InitialisationExceptionConfigurationExceptionprotected String getDefaultConfigResource()
public void contextDestroyed(javax.servlet.ServletContextEvent event)
contextDestroyed in interface javax.servlet.ServletContextListenerpublic void destroy()
Copyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.