public class PropertyStringProgram extends ConfigProgram
Constructor and Description |
---|
PropertyStringProgram(QName qName,
java.lang.String value) |
PropertyStringProgram(java.lang.String name,
java.lang.String value) |
PropertyStringProgram(java.lang.String name,
java.lang.String value,
boolean isOptional) |
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 PropertyStringProgram(java.lang.String name, java.lang.String value)
public PropertyStringProgram(java.lang.String name, java.lang.String value, boolean isOptional)
public PropertyStringProgram(QName qName, java.lang.String 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