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

      All Methods Instance Methods Abstract 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.
      Container getContainer()
      Get the Container instance which created this Context.
      Object getEJB()
      Get the EJB instance associated with this context.
      List getResourceList()
      Get the resources associated with this Context.
      jakarta.transaction.Transaction getTransaction()
      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 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