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, initpublic 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 ConfigProgrampublic <T> void inject(T bean,
CreationalContext<T> env)
inject in class ConfigProgrambean - the bean to configurepublic <T> T create(ConfigType<T> type, CreationalContext<T> env) throws ConfigException
create in class ConfigProgramConfigExceptionpublic java.lang.String toString()
toString in class java.lang.Object