|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.config.program.ConfigProgram
public abstract class ConfigProgram
A saved program for configuring an object.
Constructor Summary | |
---|---|
ConfigProgram()
|
Method Summary | ||
---|---|---|
void |
addProgram(ConfigProgram program)
|
|
void |
bind()
Binds the injection point |
|
int |
compareTo(ConfigProgram peer)
|
|
|
configure(java.lang.Class<T> type)
|
|
protected
|
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
|
create(java.lang.Class<T> type,
CreationalContext<T> env)
Configures a bean given a class to instantiate. |
|
|
create(ConfigType<T> type)
|
|
|
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
|
inject(T bean,
CreationalContext<T> createContext)
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 |
---|
public ConfigProgram()
Method Detail |
---|
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>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |