org.jboss.soa.esb.configure
Class Configurator

java.lang.Object
  extended by org.jboss.soa.esb.configure.Configurator

public class Configurator
extends java.lang.Object

Utility class for processing configuration annotations on an ESB Component class.

Code donated from Smooks project.

Author:
tom.fennelly@gmail.com

Constructor Summary
Configurator()
           
 
Method Summary
static
<U> U
configure(U instance, ConfigTree config)
          Configure the supplied object instance using the supplied ConfigTree instance.
static
<U> void
destroy(U instance)
           
static
<U> void
initialise(U instance, ConfigTree config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configurator

public Configurator()
Method Detail

configure

public static <U> U configure(U instance,
                              ConfigTree config)
                   throws ConfigurationException
Configure the supplied object instance using the supplied ConfigTree instance.

Parameters:
instance - The instance to be configured.
config - The configuration.
Returns:
The configured object instance.
Throws:
ConfigurationException - Invalid field annotations.

initialise

public static <U> void initialise(U instance,
                                  ConfigTree config)
                       throws ActionLifecycleException
Throws:
ActionLifecycleException

destroy

public static <U> void destroy(U instance)
                    throws ActionLifecycleException
Throws:
ActionLifecycleException