com.caucho.config.program
Class RecoverableProgram

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

public class RecoverableProgram
extends FlowProgram

Stored configuration program for an attribute.


Field Summary
static java.lang.String ATTR
           
 
Constructor Summary
RecoverableProgram(ConfigProgram program)
           
 
Method Summary
<T> T
create(ConfigType<T> type, CreationalContext<T> cxt)
           
 QName getQName()
          Returns the program's QName
<T> void
inject(T bean, CreationalContext<T> cxt)
          Configures the bean using the current program.
 java.lang.String toString()
           
 
Methods inherited from class com.caucho.config.program.ConfigProgram
addProgram, bind, compareTo, configure, configure, configure, create, create, getDeclaringClass, getName, getPriority, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ATTR

public static final java.lang.String ATTR
See Also:
Constant Field Values
Constructor Detail

RecoverableProgram

public RecoverableProgram(ConfigProgram program)
Method Detail

getQName

public QName getQName()
Description copied from class: ConfigProgram
Returns the program's QName

Overrides:
getQName in class ConfigProgram

inject

public <T> void inject(T bean,
                       CreationalContext<T> cxt)
            throws ConfigException
Description copied from class: ConfigProgram
Configures the bean using the current program.

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

create

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

toString

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