com.caucho.config.program
Class FieldGeneratorProgram

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

public class FieldGeneratorProgram
extends ConfigProgram


Constructor Summary
FieldGeneratorProgram(java.lang.reflect.Field field, ValueGenerator gen)
           
 
Method Summary
 java.lang.Class<?> getDeclaringClass()
          Returns the declaring class.
 java.lang.String getName()
          Returns the name.
<T> void
inject(T bean, CreationalContext<T> env)
          Configures the bean using the current program.
 
Methods inherited from class com.caucho.config.program.ConfigProgram
addProgram, bind, compareTo, configure, configure, configure, create, create, create, getPriority, getQName, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldGeneratorProgram

public FieldGeneratorProgram(java.lang.reflect.Field field,
                             ValueGenerator gen)
Method Detail

getName

public java.lang.String getName()
Description copied from class: ConfigProgram
Returns the name.

Overrides:
getName in class ConfigProgram

getDeclaringClass

public java.lang.Class<?> getDeclaringClass()
Description copied from class: ConfigProgram
Returns the declaring class.

Overrides:
getDeclaringClass in class ConfigProgram

inject

public <T> void inject(T bean,
                       CreationalContext<T> env)
            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