org.jboss.ejb3
Interface Container

All Superinterfaces:
org.jboss.ejb3.context.spi.BeanManager
All Known Implementing Classes:
ConsumerContainer, EJBContainer, MDB, MessagingContainer, ServiceContainer, SessionContainer, SessionSpecContainer, StatefulContainer, StatelessContainer, TimerServiceContainer

public interface Container
extends org.jboss.ejb3.context.spi.BeanManager

Comment A container is optionally associated with a security manager. If it is the container is running in secured mode, if not the container is running in unchecked mode.


Field Summary
static java.lang.String ENC_CTX_NAME
           
 
Method Summary
 void create()
           
 BeanContext<?> createBeanContext()
          Create a bean context for use in a pool.
 void destroy()
           
 java.lang.Class getBeanClass()
           
 DependencyPolicy getDependencyPolicy()
           
 java.lang.String getEjbName()
           
 javax.naming.Context getEnc()
           
 javax.naming.InitialContext getInitialContext()
           
 java.util.Hashtable getInitialContextProperties()
           
 InvocationStatistics getInvokeStats()
           
 java.lang.Object getMBean()
           
 java.lang.String getName()
           
 javax.management.ObjectName getObjectName()
           
 Pool getPool()
           
<T> T
getSecurityManager(java.lang.Class<T> type)
          Get the security manager associated with a container.
 javax.ejb.TimerService getTimerService()
           
 javax.ejb.TimerService getTimerService(java.lang.Object pKey)
          This method is called by EJBTimerServiceImpl to re-establish a persistent timer.
 void injectBeanContext(BeanContext<?> beanContext)
           
 void invokePostActivate(BeanContext beanContext)
           
 void invokePostConstruct(BeanContext beanContext, java.lang.Object[] params)
           
 void invokePreDestroy(BeanContext beanContext)
           
 void invokePrePassivate(BeanContext beanContext)
           
 boolean isClustered()
           
 BeanContext<?> peekContext()
           
 BeanContext<?> popContext()
           
 void processMetadata()
           
 void pushContext(BeanContext<?> ctx)
           
 void start()
           
 void stop()
           
 
Methods inherited from interface org.jboss.ejb3.context.spi.BeanManager
getEJBHome, getEJBLocalHome, getRollbackOnly, getUserTransaction, isCallerInRole, lookup, setRollbackOnly
 

Field Detail

ENC_CTX_NAME

static final java.lang.String ENC_CTX_NAME
See Also:
Constant Field Values
Method Detail

createBeanContext

BeanContext<?> createBeanContext()
Create a bean context for use in a pool.

Returns:
a ready to use bean context

getMBean

java.lang.Object getMBean()

getBeanClass

java.lang.Class getBeanClass()

getEjbName

java.lang.String getEjbName()

getName

java.lang.String getName()

getObjectName

javax.management.ObjectName getObjectName()

getTimerService

javax.ejb.TimerService getTimerService()
Specified by:
getTimerService in interface org.jboss.ejb3.context.spi.BeanManager

getTimerService

javax.ejb.TimerService getTimerService(java.lang.Object pKey)
This method is called by EJBTimerServiceImpl to re-establish a persistent timer.


getPool

Pool getPool()

injectBeanContext

void injectBeanContext(BeanContext<?> beanContext)

invokePostConstruct

void invokePostConstruct(BeanContext beanContext,
                         java.lang.Object[] params)

invokePreDestroy

void invokePreDestroy(BeanContext beanContext)

invokePostActivate

void invokePostActivate(BeanContext beanContext)

invokePrePassivate

void invokePrePassivate(BeanContext beanContext)

peekContext

BeanContext<?> peekContext()

popContext

BeanContext<?> popContext()

pushContext

void pushContext(BeanContext<?> ctx)

create

void create()
            throws java.lang.Exception
Throws:
java.lang.Exception

start

void start()
           throws java.lang.Exception
Throws:
java.lang.Exception

stop

void stop()
          throws java.lang.Exception
Throws:
java.lang.Exception

destroy

void destroy()
             throws java.lang.Exception
Throws:
java.lang.Exception

getInitialContext

javax.naming.InitialContext getInitialContext()

getInitialContextProperties

java.util.Hashtable getInitialContextProperties()

getEnc

javax.naming.Context getEnc()

processMetadata

void processMetadata()

getDependencyPolicy

DependencyPolicy getDependencyPolicy()

getInvokeStats

InvocationStatistics getInvokeStats()

getSecurityManager

<T> T getSecurityManager(java.lang.Class<T> type)
Get the security manager associated with a container.

Parameters:
type - the type to cast to
Returns:
the security manager or null if there is no manager associated

isClustered

boolean isClustered()