public abstract class ConfigProgram extends java.lang.Object implements java.lang.Comparable<ConfigProgram>
Constructor and Description |
---|
ConfigProgram() |
Modifier and Type | Method and Description |
---|---|
void |
addProgram(ConfigProgram program) |
void |
bind()
Binds the injection point
|
int |
compareTo(ConfigProgram peer) |
<T> T |
configure(java.lang.Class<T> type) |
protected <T> T |
configure(java.lang.Class<T> type,
XmlConfigContext env)
Configures a bean given a class to instantiate.
|
void |
configure(java.lang.Object bean)
Configures the object.
|
protected <T> T |
create(java.lang.Class<T> type,
CreationalContext<T> env)
Configures a bean given a class to instantiate.
|
<T> T |
create(ConfigType<T> type) |
<T> T |
create(ConfigType<T> type,
CreationalContext<T> env) |
java.lang.Class<?> |
getDeclaringClass()
Returns the declaring class.
|
java.lang.String |
getName()
Returns the name.
|
int |
getPriority() |
QName |
getQName()
Returns the program's QName
|
void |
init(java.lang.Object bean) |
abstract <T> void |
inject(T bean,
CreationalContext<T> createContext)
Configures the bean using the current program.
|
public QName getQName()
public int getPriority()
public java.lang.Class<?> getDeclaringClass()
public java.lang.String getName()
public abstract <T> void inject(T bean, CreationalContext<T> createContext)
bean
- the bean to configureenv
- the Config environmentpublic void bind()
public void addProgram(ConfigProgram program)
public final void configure(java.lang.Object bean) throws ConfigException
ConfigException
public final <T> T configure(java.lang.Class<T> type) throws ConfigException
ConfigException
protected final <T> T configure(java.lang.Class<T> type, XmlConfigContext env) throws ConfigException
ConfigException
protected final <T> T create(java.lang.Class<T> type, CreationalContext<T> env) throws ConfigException
ConfigException
public final <T> T create(ConfigType<T> type) throws ConfigException
ConfigException
public <T> T create(ConfigType<T> type, CreationalContext<T> env) throws ConfigException
ConfigException
public void init(java.lang.Object bean) throws ConfigException
ConfigException
public int compareTo(ConfigProgram peer)
compareTo
in interface java.lang.Comparable<ConfigProgram>