当前页面:
在线文档首页 >
Spring Framework 1.2.9 API 文档英文版
AbstractSessionBean (Spring Framework) - Spring Framework 1.2.9 API 文档英文版
org.springframework.ejb.support
Class AbstractSessionBean
java.lang.Object
org.springframework.ejb.support.AbstractEnterpriseBean
org.springframework.ejb.support.AbstractSessionBean
- All Implemented Interfaces:
- Serializable, EnterpriseBean, SessionBean, SmartSessionBean
- Direct Known Subclasses:
- AbstractStatefulSessionBean, AbstractStatelessSessionBean
abstract class AbstractSessionBean
- extends AbstractEnterpriseBean
- implements SmartSessionBean
Superclass for all session beans. Not intended for direct client subclassing;
derive from AbstractStatelessSessionBean or AbstractStatefulSessionBean instead.
This class saves the session context provided by the EJB container in an instance
variable and provides a NOP implementation of the ejbRemove() lifecycle method.
- Author:
- Rod Johnson
- See Also:
AbstractStatelessSessionBean
,
AbstractStatefulSessionBean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractSessionBean
AbstractSessionBean()
setSessionContext
public void setSessionContext(SessionContext sessionContext)
- Set the session context.
If overriding this method, be sure to invoke this form of it first.
- Specified by:
setSessionContext
in interface SessionBean
- Parameters:
sessionContext
- SessionContext context for session
getSessionContext
public final SessionContext getSessionContext()
- Convenience method for subclasses.
Return the EJB context saved on initialization.
- Specified by:
getSessionContext
in interface SmartSessionBean
- Returns:
- the SessionContext saved on initialization by this class's
implementation of the setSessionContext() method.
Copyright (c) 2002-2007 The Spring Framework Project.