Package com.sun.ejb
Interface ComponentContext
-
- All Superinterfaces:
org.glassfish.api.invocation.ResourceHandler
- All Known Implementing Classes:
AbstractSessionContextImpl,EJBContextImpl,SessionContextImpl,SingletonContextImpl
public interface ComponentContext extends org.glassfish.api.invocation.ResourceHandlerThe ComponentContext contains context information about an EJB instance. EJBContextImpl implements ComponentContext in addition to EJBContext.
-
-
Method Summary
All Methods Instance Methods Abstract 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.ContainergetContainer()Get the Container instance which created this Context.ObjectgetEJB()Get the EJB instance associated with this context.ListgetResourceList()Get the resources associated with this Context.jakarta.transaction.TransactiongetTransaction()Get the Transaction object associated with this Context.
-
-
-
Method Detail
-
getEJB
Object getEJB()
Get the EJB instance associated with this context.
-
getContainer
Container getContainer()
Get the Container instance which created this Context.
-
getTransaction
jakarta.transaction.Transaction getTransaction()
Get the Transaction object associated with this Context.
-
checkTimerServiceMethodAccess
void checkTimerServiceMethodAccess() throws IllegalStateExceptionThe 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.- Throws:
IllegalStateException
-
getResourceList
List getResourceList()
Get the resources associated with this Context.- Specified by:
getResourceListin interfaceorg.glassfish.api.invocation.ResourceHandler
-
-