com.sun.ejb.containers
Class SingletonContextImpl
java.lang.Object
com.sun.ejb.containers.EJBContextImpl
com.sun.ejb.containers.AbstractSessionContextImpl
com.sun.ejb.containers.SingletonContextImpl
- All Implemented Interfaces:
- ComponentContext, Serializable, EJBContext, SessionContext, ResourceHandler
public final class SingletonContextImpl
- extends AbstractSessionContextImpl
- implements SessionContext
Implementation of EJBContext for Singleton SessionBeans
- Author:
- Mahesh Kannan
- See Also:
- Serialized Form
| Fields inherited from class com.sun.ejb.containers.EJBContextImpl |
container, ejbLocalBusinessObjectImpl, ejbLocalObjectImpl, ejbObjectImpl, ejbRemoteBusinessObjectImpl, ejbStub, inEjbRemove, isLocalInterfaceSupported, isRemoteInterfaceSupported, jcdiInjectionContext, optionalEjbLocalBusinessObjectImpl, state, transaction |
| Methods inherited from class com.sun.ejb.containers.EJBContextImpl |
checkActivatePassivate, decrementConcurrentInvokeCount, doGetSetRollbackTxAttrCheck, getCallerIdentity, getCallerPrincipal, getConcurrentInvokeCount, getContainer, getContextData, getEJB, getEJBHome, getEJBLocalHome, getEJBLocalObject, getEJBObject, getEnvironment, getInterceptorInstances, getLastTimeUsed, getResourceList, getTransaction, inActivatePassivate, inActivatePassivate, incrementConcurrentInvokeCount, isCallerInRole, isCallerInRole, lookup, registerResource, setTransaction, unregisterResource |
getTimerService
public TimerService getTimerService()
throws IllegalStateException
- Specified by:
getTimerService in interface EJBContext- Overrides:
getTimerService in class AbstractSessionContextImpl
- Throws:
IllegalStateException
setRollbackOnly
public void setRollbackOnly()
throws IllegalStateException
- Specified by:
setRollbackOnly in interface EJBContext- Overrides:
setRollbackOnly in class EJBContextImpl
- Throws:
IllegalStateException
getRollbackOnly
public boolean getRollbackOnly()
throws IllegalStateException
- Specified by:
getRollbackOnly in interface EJBContext- Overrides:
getRollbackOnly in class EJBContextImpl
- Throws:
IllegalStateException
checkTimerServiceMethodAccess
public void checkTimerServiceMethodAccess()
throws IllegalStateException
- Description copied from class:
EJBContextImpl
- The EJB spec makes a distinction between access to the TimerService
object itself (via EJBContext.getTimerService) and access to the
methods on TimerService, Timer, and TimerHandle. The latter case
is covered by this check. It is overridden in the applicable concrete
context impl subclasses.
- Specified by:
checkTimerServiceMethodAccess in interface ComponentContext- Overrides:
checkTimerServiceMethodAccess in class AbstractSessionContextImpl
- Throws:
IllegalStateException
Copyright © 2012 GlassFish Community. All Rights Reserved.