public class ResourceInjectionTargetProgram extends ConfigProgram implements ObjectProxy
Constructor and Description |
---|
ResourceInjectionTargetProgram(ResourceGroupConfig resourceConfig,
java.lang.Class<?> targetClass,
java.lang.String targetName) |
Modifier and Type | Method and Description |
---|---|
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() |
addProgram, bind, compareTo, configure, configure, configure, create, create, create, getDeclaringClass, getName, getPriority, getQName, init
public ResourceInjectionTargetProgram(ResourceGroupConfig resourceConfig, java.lang.Class<?> targetClass, java.lang.String targetName)
public java.lang.Class<?> getTargetClass()
public java.lang.String getTargetName()
public <T> void inject(T bean, CreationalContext<T> env)
ConfigProgram
inject
in class ConfigProgram
bean
- the bean to configurepublic java.lang.Object createObject(java.util.Hashtable<?,?> env) throws javax.naming.NamingException
ObjectProxy
createObject
in interface ObjectProxy
javax.naming.NamingException
public java.lang.String toString()
toString
in class java.lang.Object