com.caucho.config.program
Class ConfigProgram

java.lang.Object
  extended by com.caucho.config.program.ConfigProgram
Direct Known Subclasses:
ContainerProgram, FieldComponentProgram, FieldGeneratorProgram, FlowProgram, MethodComponentProgram, MethodGeneratorProgram, NamedProgram, PostConstructProgram, PreDestroyInject, PreDestroyProgram, PropertyStringProgram, PropertyValueProgram, ResourceAdapterAssociationProgram, ResourceGroupConfig

public abstract class ConfigProgram
extends java.lang.Object

A saved program for configuring an object.


Constructor Summary
ConfigProgram()
           
 
Method Summary
 void addProgram(ConfigProgram program)
           
 java.lang.Object configure(java.lang.Class type)
           
protected  java.lang.Object configure(java.lang.Class type, ConfigContext env)
          Configures a bean given a class to instantiate.
 java.lang.Object configure(ConfigType type)
           
 java.lang.Object configure(ConfigType type, ConfigContext env)
           
 void configure(java.lang.Object bean)
          Configures the object.
 void init(java.lang.Object bean)
           
abstract  void inject(java.lang.Object bean, ConfigContext env)
          Configures the bean using the current program.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigProgram

public ConfigProgram()
Method Detail

inject

public abstract void inject(java.lang.Object bean,
                            ConfigContext env)
Configures the bean using the current program.

Parameters:
bean - the bean to configure
env - the Config environment

addProgram

public void addProgram(ConfigProgram program)

configure

public final void configure(java.lang.Object bean)
                     throws ConfigException
Configures the object.

Throws:
ConfigException

configure

public final java.lang.Object configure(java.lang.Class type)
                                 throws ConfigException
Throws:
ConfigException

configure

protected final java.lang.Object configure(java.lang.Class type,
                                           ConfigContext env)
                                    throws ConfigException
Configures a bean given a class to instantiate.

Throws:
ConfigException

configure

public final java.lang.Object configure(ConfigType type)
                                 throws ConfigException
Throws:
ConfigException

configure

public java.lang.Object configure(ConfigType type,
                                  ConfigContext env)
                           throws ConfigException
Throws:
ConfigException

init

public void init(java.lang.Object bean)
          throws ConfigException
Throws:
ConfigException