public class PropertyValueProgram extends ConfigProgram
Constructor and Description |
---|
PropertyValueProgram(java.lang.Class<?> type,
java.lang.String name,
java.lang.Object value) |
PropertyValueProgram(java.lang.String name,
java.lang.Object value) |
Modifier and Type | Method and Description |
---|---|
<T> T |
create(ConfigType<T> type,
CreationalContext<T> env) |
java.lang.String |
getName()
Returns the injection name.
|
<T> void |
inject(T bean,
CreationalContext<T> env)
Injects the bean with the dependencies
|
java.lang.String |
toString() |
addProgram, bind, compareTo, configure, configure, configure, create, create, getDeclaringClass, getPriority, getQName, init
public PropertyValueProgram(java.lang.String name, java.lang.Object value)
public PropertyValueProgram(java.lang.Class<?> type, java.lang.String name, java.lang.Object value)
public java.lang.String getName()
getName
in class ConfigProgram
public <T> void inject(T bean, CreationalContext<T> env)
inject
in class ConfigProgram
bean
- the bean to configurepublic <T> T create(ConfigType<T> type, CreationalContext<T> env) throws ConfigException
create
in class ConfigProgram
ConfigException
public java.lang.String toString()
toString
in class java.lang.Object