com.caucho.config.program
Class MethodValueProgram

java.lang.Object
  extended by com.caucho.config.program.ConfigProgram
      extended by com.caucho.config.program.NamedProgram
          extended by com.caucho.config.program.MethodValueProgram

public class MethodValueProgram
extends NamedProgram

Injects a method with a constant value


Constructor Summary
MethodValueProgram(java.lang.reflect.Method method, java.lang.Object value)
           
 
Method Summary
 java.lang.String getName()
          Returns the injection name.
 void inject(java.lang.Object bean, ConfigContext env)
          Injects the bean with the dependencies
 
Methods inherited from class com.caucho.config.program.NamedProgram
toString
 
Methods inherited from class com.caucho.config.program.ConfigProgram
addProgram, configure, configure, configure, configure, configure, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodValueProgram

public MethodValueProgram(java.lang.reflect.Method method,
                          java.lang.Object value)
Method Detail

getName

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

Specified by:
getName in class NamedProgram

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 configure
env - the Config environment