com.caucho.config.program
Class PropertyStringProgram
java.lang.Object
com.caucho.config.program.ConfigProgram
com.caucho.config.program.PropertyStringProgram
public class PropertyStringProgram
- extends ConfigProgram
A saved program for configuring an object.
|
Method Summary |
java.lang.String |
getName()
Returns the injection name. |
void |
inject(java.lang.Object bean,
ConfigContext env)
Injects the bean with the dependencies |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PropertyStringProgram
public PropertyStringProgram(java.lang.String name,
java.lang.String value)
PropertyStringProgram
public PropertyStringProgram(java.lang.String name,
java.lang.String value,
boolean isOptional)
getName
public java.lang.String getName()
- Returns the injection name.
inject
public void inject(java.lang.Object bean,
ConfigContext env)
- Injects the bean with the dependencies
- Specified by:
inject in class ConfigProgram
- Parameters:
bean - the bean to configureenv - the Config environment
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object