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.ResourceHandler
The ComponentContext contains context information about an EJB instance. EJBContextImpl implements ComponentContext in addition to EJBContext.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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.
    Get the Container instance which created this Context.
    Get the EJB instance associated with this context.
    Get the resources associated with this Context.
    jakarta.transaction.Transaction
    Get the Transaction object associated with this Context.
  • Method Details

    • 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 IllegalStateException
      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.
      Throws:
      IllegalStateException
    • getResourceList

      List getResourceList()
      Get the resources associated with this Context.
      Specified by:
      getResourceList in interface org.glassfish.api.invocation.ResourceHandler