com.caucho.config.program
Class PropertyStringProgram

java.lang.Object
  extended by com.caucho.config.program.ConfigProgram
      extended by com.caucho.config.program.PropertyStringProgram
All Implemented Interfaces:
java.lang.Comparable<ConfigProgram>

public class PropertyStringProgram
extends ConfigProgram

A saved program for configuring an object.


Constructor Summary
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)
           
 
Method Summary
<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()
           
 
Methods inherited from class com.caucho.config.program.ConfigProgram
addProgram, bind, compareTo, configure, configure, configure, create, create, getDeclaringClass, getPriority, getQName, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyStringProgram

public PropertyStringProgram(java.lang.String name,
                             java.lang.String value)

PropertyStringProgram

public PropertyStringProgram(java.lang.String name,
                             java.lang.String value,
                             boolean isOptional)

PropertyStringProgram

public PropertyStringProgram(QName qName,
                             java.lang.String value)
Method Detail

getName

public java.lang.String getName()
Returns the injection name.

Overrides:
getName in class ConfigProgram

inject

public <T> void inject(T bean,
                       CreationalContext<T> env)
Injects the bean with the dependencies

Specified by:
inject in class ConfigProgram
Parameters:
bean - the bean to configure

create

public <T> T create(ConfigType<T> type,
                    CreationalContext<T> env)
         throws ConfigException
Overrides:
create in class ConfigProgram
Throws:
ConfigException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object