org.mule.config.builders
Class WebappMuleXmlConfigurationBuilder

java.lang.Object
  extended byorg.mule.config.builders.MuleXmlConfigurationBuilder
      extended byorg.mule.config.builders.WebappMuleXmlConfigurationBuilder
All Implemented Interfaces:
ConfigurationBuilder

public class WebappMuleXmlConfigurationBuilder
extends MuleXmlConfigurationBuilder

WebappMuleXmlConfigurationBuilder will first try and load config resources from the Servlet context. If this fails it fails back to the methods used by the MuleXmlConfigurationBuilder.

Version:
$Revision: 1.3 $
Author:
Ross Mason
See Also:
MuleXmlConfigurationBuilder

Field Summary
 
Fields inherited from class org.mule.config.builders.MuleXmlConfigurationBuilder
AGENT_INTERFACE, CONNECTOR_INTERFACE, DEFAULT_CATCH_ALL_STRATEGY, DEFAULT_COMPONENT_FACTORY, DEFAULT_CONTAINER_CONTEXT, DEFAULT_DESCRIPTOR, DEFAULT_ENDPOINT, DEFAULT_ENTRY_POINT_RESOLVER, DEFAULT_INBOUND_MESSAGE_ROUTER, DEFAULT_LIFECYCLE_ADAPTER, DEFAULT_MODEL, DEFAULT_OUTBOUND_MESSAGE_ROUTER, DEFAULT_POOL_FACTORY, DEFAULT_RESPONSE_MESSAGE_ROUTER, DEFAULT_SECURITY_MANAGER, DEFAULT_TRANSACTION_CONFIG, digester, ENCRYPTION_STRATEGY_INTERFACE, ENDPOINT_SECURITY_FILTER_INTERFACE, EXCEPTION_STRATEGY_INTERFACE, FILTER_INTERFACE, INBOUND_MESSAGE_ROUTER_INTERFACE, INTERCEPTOR_INTERFACE, logger, manager, OUTBOUND_MESSAGE_ROUTER_INTERFACE, PERSISTENCE_STRATEGY_INTERFACE, POOLING_PROFILE, QUEUE_PROFILE, RESPONSE_MESSAGE_ROUTER_INTERFACE, ROUTER_INTERFACE, SECURITY_PROVIDER_INTERFACE, THREADING_PROFILE, TRANSACTION_CONSTRAINT_INTERFACE, TRANSACTION_FACTORY_INTERFACE, TRANSACTION_MANAGER_FACTORY_INTERFACE, TRANSFORMER_INTERFACE
 
Constructor Summary
WebappMuleXmlConfigurationBuilder(ServletContext context)
           
 
Method Summary
protected  java.io.InputStream loadConfig(java.lang.String configResource)
          ConfigResource can be a url, a path on the local file system or a resource name on the classpath Finds and loads the configuration resource by doing the following - 1.
 
Methods inherited from class org.mule.config.builders.MuleXmlConfigurationBuilder
addAgentRules, addCommonEndpointRules, addConnectorRules, addContainerContextRules, addContainerPropertyRule, addEndpointIdentfierRules, addEndpointRules, addExceptionStrategyRules, addFilePropertiesRule, addFilterGroupRule, addFilterRules, addGlobalEndpointRules, addGlobalReferenceEndpointRules, addInterceptorStackRules, addLeftFilterRule, addMessageRouterRules, addModelRules, addMuleConfigurationRules, addMuleDescriptorRules, addMuleEnvironmentPropertiesRules, addMulePropertiesRule, addPoolingProfileRules, addPropertyFactoryRule, addQueueProfileRules, addRightFilterRule, addRouterRules, addSecurityManagerRules, addSetPropertiesRule, addSetPropertiesRule, addSingleFilterRule, addSystemPropertyRule, addThreadingProfileRules, addTransactionConfigRules, addTransactionManagerRules, addTransformerRules, configure, configure, isConfigured, setContainerProperties, setGlobalEndpoints, setTransformers
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebappMuleXmlConfigurationBuilder

public WebappMuleXmlConfigurationBuilder(ServletContext context)
                                  throws ConfigurationException
Method Detail

loadConfig

protected java.io.InputStream loadConfig(java.lang.String configResource)
                                  throws ConfigurationException
ConfigResource can be a url, a path on the local file system or a resource name on the classpath Finds and loads the configuration resource by doing the following - 1. load it from the servelet context /WEB-INF 2. load it form the classpath 3. load it from from the local file system 4. load it as a url

Overrides:
loadConfig in class MuleXmlConfigurationBuilder
Parameters:
configResource -
Returns:
an inputstream to the resource
Throws:
ConfigurationException


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.