org.mule.extras.groovy.config
Class GroovyConfigurationBuilder

java.lang.Object
  extended byorg.mule.extras.groovy.config.GroovyConfigurationBuilder
All Implemented Interfaces:
ConfigurationBuilder

public class GroovyConfigurationBuilder
extends java.lang.Object
implements ConfigurationBuilder

GroovyConfigurationBuilder can be used to configure a Mule Instance from Groovy. The user can parse in a comma separated lst of groovy scripts to execute, which will be executed in the order they are parsed in. The scripts are assumed to be 'scripts' rather than Grooy obejects.

Version:
$Revision: 1.2 $
Author:
Ross Mason

Constructor Summary
GroovyConfigurationBuilder()
           
 
Method Summary
 UMOManager configure(java.io.Reader[] configResources)
          Will configure a UMOManager based on the configurations made available through Readers
 UMOManager configure(java.lang.String configResources)
          Will configure a UMOManager based on the configuration file(s) provided.
 boolean isConfigured()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyConfigurationBuilder

public GroovyConfigurationBuilder()
Method Detail

configure

public UMOManager configure(java.lang.String configResources)
                     throws ConfigurationException
Will configure a UMOManager based on the configuration file(s) provided.

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

configure

public UMOManager configure(java.io.Reader[] 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

isConfigured

public boolean isConfigured()
Specified by:
isConfigured in interface ConfigurationBuilder


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