com.caucho.config.program
Class ContainerProgram

java.lang.Object
  extended by com.caucho.config.program.ConfigProgram
      extended by com.caucho.config.program.ContainerProgram
All Implemented Interfaces:
java.lang.Comparable<ConfigProgram>

public class ContainerProgram
extends ConfigProgram


Constructor Summary
ContainerProgram()
           
 
Method Summary
 void addProgram(ConfigProgram program)
          Adds a new program to the container
 void addProgram(int index, ConfigProgram program)
          Adds a new program to the container
 java.util.ArrayList<ConfigProgram> getProgramList()
           
<T> void
inject(T bean, CreationalContext<T> env)
          Invokes the child programs on the bean
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.config.program.ConfigProgram
bind, compareTo, configure, configure, configure, create, create, create, getDeclaringClass, getName, getPriority, getQName, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContainerProgram

public ContainerProgram()
Method Detail

getProgramList

public java.util.ArrayList<ConfigProgram> getProgramList()

addProgram

public void addProgram(ConfigProgram program)
Adds a new program to the container

Overrides:
addProgram in class ConfigProgram
Parameters:
program - the new program

addProgram

public void addProgram(int index,
                       ConfigProgram program)
Adds a new program to the container

Parameters:
program - the new program

inject

public <T> void inject(T bean,
                       CreationalContext<T> env)
            throws ConfigException
Invokes the child programs on the bean

Specified by:
inject in class ConfigProgram
Parameters:
bean - the bean to configure
env - the configuration environment
Throws:
ConfigException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object