org.springframework.ejb.support
Interface SmartSessionBean
- All Superinterfaces:
- javax.ejb.EnterpriseBean, java.io.Serializable, javax.ejb.SessionBean
- All Known Implementing Classes:
- AbstractSessionBean, AbstractStatefulSessionBean, AbstractStatelessSessionBean
public interface SmartSessionBean
- extends javax.ejb.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, such as
AbstractStatelessSessionBean
and AbstractStatefulSessionBean
.
- Since:
- 1.2
- Author:
- Juergen Hoeller
- See Also:
AbstractStatelessSessionBean
,
AbstractStatefulSessionBean
Method Summary |
javax.ejb.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 |
getSessionContext
javax.ejb.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 © 2002-2008 The Spring Framework.