com.sun.ejb.containers
Class SingletonContextImpl

java.lang.Object
  extended by com.sun.ejb.containers.EJBContextImpl
      extended by com.sun.ejb.containers.AbstractSessionContextImpl
          extended by 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

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, isLocalInterfaceSupported, isRemoteInterfaceSupported, jcdiInjectionContext, optionalEjbLocalBusinessObjectImpl, state, transaction
 
Method Summary
 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()
           
 TimerService getTimerService()
           
 void setRollbackOnly()
           
 
Methods inherited from class com.sun.ejb.containers.AbstractSessionContextImpl
checkAccessToCallerSecurity, getBusinessObject, getCurrentComponentInvocation, getInstanceKey, getInvokedBusinessInterface, getMessageContext, 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, getLastTimeUsed, getResourceList, getTransaction, inActivatePassivate, inActivatePassivate, incrementConcurrentInvokeCount, isCallerInRole, isCallerInRole, lookup, registerResource, setTransaction, unregisterResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.ejb.SessionContext
getBusinessObject, getEJBLocalObject, getEJBObject, getInvokedBusinessInterface, getMessageContext, wasCancelCalled
 
Methods inherited from interface javax.ejb.EJBContext
getCallerIdentity, getCallerPrincipal, getContextData, getEJBHome, getEJBLocalHome, getEnvironment, getUserTransaction, isCallerInRole, isCallerInRole, lookup
 

Method Detail

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.