com.caucho.ejb.session
Class StatefulComponent<X>

java.lang.Object
  extended by com.caucho.ejb.session.StatefulComponent<X>
All Implemented Interfaces:
InjectionTarget<X>, Producer<X>

public class StatefulComponent<X>
extends java.lang.Object
implements InjectionTarget<X>

Component for session beans


Constructor Summary
StatefulComponent(StatefulProvider provider, java.lang.Class beanClass)
           
 
Method Summary
 void dispose(X instance)
          Call pre-destroy
 java.util.Set<InjectionPoint> getInjectionPoints()
          Returns the injection points.
 void inject(X instance, CreationalContext<X> ctx)
          Inject the bean.
 void postConstruct(X instance)
          PostConstruct initialization
 void preDestroy(X instance)
          Call destroy
 X produce(CreationalContext<X> env)
          Creates a new instance of the component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatefulComponent

public StatefulComponent(StatefulProvider provider,
                         java.lang.Class beanClass)
Method Detail

produce

public X produce(CreationalContext<X> env)
Creates a new instance of the component

Specified by:
produce in interface Producer<X>

inject

public void inject(X instance,
                   CreationalContext<X> ctx)
Inject the bean.

Specified by:
inject in interface InjectionTarget<X>

postConstruct

public void postConstruct(X instance)
PostConstruct initialization

Specified by:
postConstruct in interface InjectionTarget<X>

dispose

public void dispose(X instance)
Call pre-destroy

Specified by:
dispose in interface Producer<X>

preDestroy

public void preDestroy(X instance)
Call destroy

Specified by:
preDestroy in interface InjectionTarget<X>

getInjectionPoints

public java.util.Set<InjectionPoint> getInjectionPoints()
Returns the injection points.

Specified by:
getInjectionPoints in interface Producer<X>