Package 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
,jakarta.ejb.EJBContext
,jakarta.ejb.SessionContext
,Serializable
,ResourceHandler
public final class SingletonContextImpl extends AbstractSessionContextImpl
Implementation of EJBContext for Singleton SessionBeans- Author:
- Mahesh Kannan
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.sun.ejb.containers.EJBContextImpl
EJBContextImpl.BeanState
-
-
Field Summary
-
Fields inherited from class com.sun.ejb.containers.EJBContextImpl
container, ejbLocalBusinessObjectImpl, ejbLocalObjectImpl, ejbObjectImpl, ejbRemoteBusinessObjectImpl, ejbStub, inEjbRemove, initialContext, isLocalInterfaceSupported, isRemoteInterfaceSupported, jcdiInjectionContext, optionalEjbLocalBusinessObjectImpl, state, transaction
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkTimerServiceMethodAccess()
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.boolean
getRollbackOnly()
jakarta.ejb.TimerService
getTimerService()
Object
lookup(String name)
void
setRollbackOnly()
-
Methods inherited from class com.sun.ejb.containers.AbstractSessionContextImpl
checkAccessToCallerSecurity, getBusinessObject, getCurrentComponentInvocation, getInstanceKey, getInvokedBusinessInterface, getUserTransaction, setInstanceKey, toString, wasCancelCalled
-
Methods inherited from class com.sun.ejb.containers.EJBContextImpl
checkActivatePassivate, decrementConcurrentInvokeCount, doGetSetRollbackTxAttrCheck, getCallerIdentity, getCallerPrincipal, getConcurrentInvokeCount, getContainer, getContextData, getEJB, getEJBHome, getEJBLocalHome, getEJBLocalObject, getEJBObject, getEnvironment, getInterceptorInstances, getKey, getLastTimeUsed, getResourceList, getState, getTransaction, inActivatePassivate, inActivatePassivate, incrementConcurrentInvokeCount, isCallerInRole, isCallerInRole, registerResource, setTransaction, touch, unregisterResource
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getTimerService
public jakarta.ejb.TimerService getTimerService() throws IllegalStateException
- Specified by:
getTimerService
in interfacejakarta.ejb.EJBContext
- Overrides:
getTimerService
in classAbstractSessionContextImpl
- Throws:
IllegalStateException
-
setRollbackOnly
public void setRollbackOnly() throws IllegalStateException
- Specified by:
setRollbackOnly
in interfacejakarta.ejb.EJBContext
- Overrides:
setRollbackOnly
in classEJBContextImpl
- Throws:
IllegalStateException
-
getRollbackOnly
public boolean getRollbackOnly() throws IllegalStateException
- Specified by:
getRollbackOnly
in interfacejakarta.ejb.EJBContext
- Overrides:
getRollbackOnly
in classEJBContextImpl
- 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 interfaceComponentContext
- Overrides:
checkTimerServiceMethodAccess
in classAbstractSessionContextImpl
- Throws:
IllegalStateException
-
lookup
public Object lookup(String name)
- Specified by:
lookup
in interfacejakarta.ejb.EJBContext
- Overrides:
lookup
in classEJBContextImpl
-
-