public class FieldGeneratorProgram extends ConfigProgram
Constructor and Description |
---|
FieldGeneratorProgram(java.lang.reflect.Field field,
ValueGenerator gen) |
Modifier and Type | Method and Description |
---|---|
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.
|
addProgram, bind, compareTo, configure, configure, configure, create, create, create, getPriority, getQName, init
public FieldGeneratorProgram(java.lang.reflect.Field field, ValueGenerator gen)
public java.lang.String getName()
ConfigProgram
getName
in class ConfigProgram
public java.lang.Class<?> getDeclaringClass()
ConfigProgram
getDeclaringClass
in class ConfigProgram
public <T> void inject(T bean, CreationalContext<T> env) throws ConfigException
ConfigProgram
inject
in class ConfigProgram
bean
- the bean to configureConfigException