站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Spring Framework 1.2.9 API 文档英文版

SmartSessionBean (Spring Framework) - Spring Framework 1.2.9 API 文档英文版


org.springframework.ejb.support
Interface SmartSessionBean

All Superinterfaces:
EnterpriseBean, Serializable, SessionBean
All Known Implementing Classes:
AbstractSessionBean, AbstractStatefulSessionBean, AbstractStatelessSessionBean

public interface SmartSessionBean
extends SessionBean

Interface to be implemented by Session Beans that want to expose important state to cooperating classes.

Implemented by Spring's AbstractSessionBean class and hence by all of Spring's specific Session Bean support classes.

Since:
1.2
Author:
Juergen Hoeller
See Also:
AbstractStatelessSessionBean, AbstractStatefulSessionBean

Method Summary
 SessionContext getSessionContext()
          Return the SessionContext that was passed to the Session Bean by the EJB container.
 
Methods inherited from interface javax.ejb.SessionBean
ejbActivate, ejbPassivate, ejbRemove, setSessionContext
 

Method Detail

getSessionContext

SessionContext getSessionContext()
Return the SessionContext that was passed to the Session Bean by the EJB container. Can be used by cooperating infrastructure code to get access to the user credentials, for example.



Copyright (c) 2002-2007 The Spring Framework Project.