com.opensymphony.ejb
Class SessionAdapter

java.lang.Object
  |
  +--com.opensymphony.ejb.SessionAdapter
All Implemented Interfaces:
javax.ejb.EnterpriseBean, java.io.Serializable, javax.ejb.SessionBean

public abstract class SessionAdapter
extends java.lang.Object
implements javax.ejb.SessionBean

Abstract base adapter class to be extended by EJB SessionBeans.
Contains default implementations for all require methods to implement SessionBean.

To create an implementation of an Session, extend this class and add appropriate ejbCreate() and getter/setter methods.

Version:
$Revision: 1.5 $
Author:
Joe Walnes
See Also:
Serialized Form

Field Summary
protected  javax.ejb.SessionContext context
          Reference to SessionContext.
 
Constructor Summary
SessionAdapter()
           
 
Method Summary
 void ejbActivate()
          Required to implement SessionBean.
 void ejbPassivate()
          Required to implement SessionBean.
 void ejbRemove()
          Required to implement SessionBean.
protected  javax.ejb.SessionContext getSessionContext()
          Return SessionContext.
 void setSessionContext(javax.ejb.SessionContext context)
          Required to implement SessionBean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

protected javax.ejb.SessionContext context
Reference to SessionContext.
Constructor Detail

SessionAdapter

public SessionAdapter()
Method Detail

setSessionContext

public void setSessionContext(javax.ejb.SessionContext context)
                       throws java.rmi.RemoteException
Required to implement SessionBean. Sets the SessionContext.
Specified by:
setSessionContext in interface javax.ejb.SessionBean

ejbActivate

public void ejbActivate()
                 throws javax.ejb.EJBException,
                        java.rmi.RemoteException
Required to implement SessionBean. Not implemented.
Specified by:
ejbActivate in interface javax.ejb.SessionBean

ejbPassivate

public void ejbPassivate()
                  throws javax.ejb.EJBException,
                         java.rmi.RemoteException
Required to implement SessionBean. Not implemented.
Specified by:
ejbPassivate in interface javax.ejb.SessionBean

ejbRemove

public void ejbRemove()
               throws javax.ejb.EJBException,
                      java.rmi.RemoteException
Required to implement SessionBean. Not implemented.
Specified by:
ejbRemove in interface javax.ejb.SessionBean

getSessionContext

protected javax.ejb.SessionContext getSessionContext()
                                              throws javax.ejb.EJBException,
                                                     java.rmi.RemoteException
Return SessionContext. To be used by classes extending this.

See www.opensymphony.com for more information.