org.mule.extras.spring.config
Class SpringConfigurationBuilder

java.lang.Object
  extended byorg.mule.extras.spring.config.SpringConfigurationBuilder
All Implemented Interfaces:
ConfigurationBuilder

public class SpringConfigurationBuilder
extends java.lang.Object
implements ConfigurationBuilder

SpringConfigurationBuilder Enables Mule to be loaded from as Spring context. Multiple configuration files can be loaded from this builder (specified as a comma-separated list) the files can be String Beans documents or Mule Xml Documents or a combination of both. Any Mule Xml documents will be transformed at run-time in to Spring Bean documents before the bean definitions are loaded. Make sure that the DTD definitions for each of the document types are declared in the documents.

Version:
$Revision: 1.6 $
Author:
Ross Mason

Constructor Summary
SpringConfigurationBuilder()
           
 
Method Summary
 UMOManager configure(ReaderResource[] configResources)
          Will configure a UMOManager based on the configurations made available through Readers
 UMOManager configure(java.lang.String configResource)
          Will configure a UMOManager based on the configuration file(s) provided.
 boolean isConfigured()
          Indicate whether this ConfigurationBulder has been configured yet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringConfigurationBuilder

public SpringConfigurationBuilder()
Method Detail

configure

public UMOManager configure(ReaderResource[] configResources)
                     throws ConfigurationException
Will configure a UMOManager based on the configurations made available through Readers

Specified by:
configure in interface ConfigurationBuilder
Parameters:
configResources - an array of Readers
Returns:
A configured UMOManager
Throws:
ConfigurationException

configure

public UMOManager configure(java.lang.String configResource)
                     throws ConfigurationException
Description copied from interface: ConfigurationBuilder
Will configure a UMOManager based on the configuration file(s) provided.

Specified by:
configure in interface ConfigurationBuilder
Parameters:
configResource - a comma separated list of configuration files to load, this should be accessible on the classpath or filesystem
Returns:
A configured UMOManager
Throws:
ConfigurationException

isConfigured

public boolean isConfigured()
Indicate whether this ConfigurationBulder has been configured yet

Specified by:
isConfigured in interface ConfigurationBuilder
Returns:
true if this ConfigurationBulder has been configured


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