com.caucho.ejb.server
Class EjbInjectionTarget<T>

java.lang.Object
  extended by com.caucho.ejb.server.EjbInjectionTarget<T>
Direct Known Subclasses:
SingletonInjectionTarget, StatelessInjectionTarget

public class EjbInjectionTarget<T>
extends java.lang.Object

Creates an configures an ejb instance


Method Summary
 void bindInjection()
           
 void destroyInstance(T instance)
          Remove an object.
 InjectionTarget<T> getInjectionTarget()
          Gets the injection target
 PostConstructConfig getPostConstruct()
           
 PreDestroyConfig getPreDestroy()
           
 java.lang.reflect.Method getTimeoutMethod()
           
 TimerService getTimerService()
           
<X> void
initInstance(T instance, InjectionTarget<T> target, X proxy, CreationalContextImpl<X> proxyEnv)
          Initialize an instance
 T newInstance()
           
 T newInstance(CreationalContextImpl<?> parentEnv)
           
protected  void postConstruct(T instance)
           
 void registerInjection()
           
 void setEnvLoader(java.lang.ClassLoader envLoader)
          Sets the classloader for the EJB's private environment
 void setInjectionTarget(InjectionTarget<T> injectionTarget)
          Sets the injection target
 void setPostConstruct(PostConstructConfig postConstruct)
           
 void setPreDestroy(PreDestroyConfig preDestroy)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

setEnvLoader

public void setEnvLoader(java.lang.ClassLoader envLoader)
Sets the classloader for the EJB's private environment

Parameters:
loader - the environment classloader

setInjectionTarget

public void setInjectionTarget(InjectionTarget<T> injectionTarget)
Sets the injection target


getInjectionTarget

public InjectionTarget<T> getInjectionTarget()
Gets the injection target


getPostConstruct

public PostConstructConfig getPostConstruct()

getPreDestroy

public PreDestroyConfig getPreDestroy()

setPostConstruct

public void setPostConstruct(PostConstructConfig postConstruct)

setPreDestroy

public void setPreDestroy(PreDestroyConfig preDestroy)

getTimerService

public TimerService getTimerService()

getTimeoutMethod

public java.lang.reflect.Method getTimeoutMethod()

registerInjection

public void registerInjection()

bindInjection

public void bindInjection()

newInstance

public T newInstance()

newInstance

public T newInstance(CreationalContextImpl<?> parentEnv)

postConstruct

protected void postConstruct(T instance)

initInstance

public <X> void initInstance(T instance,
                             InjectionTarget<T> target,
                             X proxy,
                             CreationalContextImpl<X> proxyEnv)
Initialize an instance


destroyInstance

public void destroyInstance(T instance)
Remove an object.


toString

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