public class ContainerProgram extends ConfigProgram
Constructor and Description |
---|
ContainerProgram() |
Modifier and Type | Method and Description |
---|---|
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() |
bind, compareTo, configure, configure, configure, create, create, create, getDeclaringClass, getName, getPriority, getQName, init
public java.util.ArrayList<ConfigProgram> getProgramList()
public void addProgram(ConfigProgram program)
addProgram
in class ConfigProgram
program
- the new programpublic void addProgram(int index, ConfigProgram program)
program
- the new programpublic <T> void inject(T bean, CreationalContext<T> env) throws ConfigException
inject
in class ConfigProgram
bean
- the bean to configureenv
- the configuration environmentConfigException
public java.lang.String toString()
toString
in class java.lang.Object