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,org.glassfish.api.invocation.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.AbstractSessionContextImpl
ejbName, instanceKey
-
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 voidcheckTimerServiceMethodAccess()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.booleangetRollbackOnly()jakarta.ejb.TimerServicegetTimerService()Objectlookup(String name)voidsetRollbackOnly()-
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:
getTimerServicein interfacejakarta.ejb.EJBContext- Overrides:
getTimerServicein classAbstractSessionContextImpl- Throws:
IllegalStateException
-
setRollbackOnly
public void setRollbackOnly() throws IllegalStateException- Specified by:
setRollbackOnlyin interfacejakarta.ejb.EJBContext- Overrides:
setRollbackOnlyin classEJBContextImpl- Throws:
IllegalStateException
-
getRollbackOnly
public boolean getRollbackOnly() throws IllegalStateException- Specified by:
getRollbackOnlyin interfacejakarta.ejb.EJBContext- Overrides:
getRollbackOnlyin classEJBContextImpl- Throws:
IllegalStateException
-
checkTimerServiceMethodAccess
public void checkTimerServiceMethodAccess() throws IllegalStateExceptionDescription copied from class:EJBContextImplThe 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:
checkTimerServiceMethodAccessin interfaceComponentContext- Overrides:
checkTimerServiceMethodAccessin classAbstractSessionContextImpl- Throws:
IllegalStateException
-
lookup
public Object lookup(String name)
- Specified by:
lookupin interfacejakarta.ejb.EJBContext- Overrides:
lookupin classEJBContextImpl
-
-