com.caucho.config.program
Class ResourceInjectionTargetProgram

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

public class ResourceInjectionTargetProgram
extends ConfigProgram
implements ObjectProxy

JavaEE resource program


Constructor Summary
ResourceInjectionTargetProgram(ResourceGroupConfig resourceConfig, java.lang.Class<?> targetClass, java.lang.String targetName)
           
 
Method Summary
 java.lang.Object createObject(java.util.Hashtable<?,?> env)
          Creates the object from the proxy.
 java.lang.Class<?> getTargetClass()
           
 java.lang.String getTargetName()
           
<T> void
inject(T bean, CreationalContext<T> env)
          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, create, getDeclaringClass, getName, getPriority, getQName, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceInjectionTargetProgram

public ResourceInjectionTargetProgram(ResourceGroupConfig resourceConfig,
                                      java.lang.Class<?> targetClass,
                                      java.lang.String targetName)
Method Detail

getTargetClass

public java.lang.Class<?> getTargetClass()

getTargetName

public java.lang.String getTargetName()

inject

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

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

createObject

public java.lang.Object createObject(java.util.Hashtable<?,?> env)
                              throws javax.naming.NamingException
Description copied from interface: ObjectProxy
Creates the object from the proxy.

Specified by:
createObject in interface ObjectProxy
Returns:
the object named by the proxy.
Throws:
javax.naming.NamingException

toString

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