com.sun.ejb
Interface ComponentContext

All Superinterfaces:
ResourceHandler
All Known Implementing Classes:
AbstractSessionContextImpl, EJBContextImpl, EntityContextImpl, MessageBeanContextImpl, ReadOnlyContextImpl, SessionContextImpl, SingletonContextImpl

public interface ComponentContext
extends ResourceHandler

The ComponentContext contains context information about an EJB instance. EJBContextImpl implements ComponentContext in addition to EJBContext.


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.
 Container getContainer()
          Get the Container instance which created this Context.
 java.lang.Object getEJB()
          Get the EJB instance associated with this context.
 java.util.List getResourceList()
          Get the resources associated with this Context.
 Transaction getTransaction()
          Get the Transaction object associated with this Context.
 

Method Detail

getEJB

java.lang.Object getEJB()
Get the EJB instance associated with this context.


getContainer

Container getContainer()
Get the Container instance which created this Context.


getTransaction

Transaction getTransaction()
Get the Transaction object associated with this Context.


checkTimerServiceMethodAccess

void checkTimerServiceMethodAccess()
                                   throws java.lang.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:
java.lang.IllegalStateException

getResourceList

java.util.List getResourceList()
Get the resources associated with this Context.

Specified by:
getResourceList in interface ResourceHandler


Copyright © 2012 GlassFish Community. All Rights Reserved.