org.jboss.ejb3
Interface Container

All Known Implementing Classes:
ConsumerContainer, EJBContainer, MDB, MessagingContainer, ServiceContainer, SessionContainer, SessionSpecContainer, StatefulContainer, StatelessContainer

public interface Container

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.

Version:
$Revision: 77542 $
Author:
Bill Burke

Field Summary
static String ENC_CTX_NAME
           
 
Method Summary
 void create()
           
 BeanContext<?> createBeanContext()
          Create a bean context for use in a pool.
 void destroy()
           
 Class getBeanClass()
           
 DependencyPolicy getDependencyPolicy()
           
 String getEjbName()
           
 Context getEnc()
           
 InitialContext getInitialContext()
           
 Hashtable getInitialContextProperties()
           
 InvocationStatistics getInvokeStats()
           
 Object getMBean()
           
 String getName()
           
 ObjectName getObjectName()
           
 Pool getPool()
           
<T> T
getSecurityManager(Class<T> type)
          Get the security manager associated with a container.
 javax.ejb.TimerService getTimerService()
           
 javax.ejb.TimerService getTimerService(Object pKey)
          This method is called by EJBTimerServiceImpl to re-establish a persistent timer.
 void injectBeanContext(BeanContext<?> beanContext)
           
 void invokeInit(Object bean, Class[] initTypes, Object[] initValues)
           
 void invokePostActivate(BeanContext beanContext)
           
 void invokePostConstruct(BeanContext beanContext, 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()
           
 

Field Detail

ENC_CTX_NAME

static final 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

Object getMBean()

getBeanClass

Class getBeanClass()

getEjbName

String getEjbName()

getName

String getName()

getObjectName

ObjectName getObjectName()

getTimerService

javax.ejb.TimerService getTimerService()

getTimerService

javax.ejb.TimerService getTimerService(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,
                         Object[] params)

invokePreDestroy

void invokePreDestroy(BeanContext beanContext)

invokePostActivate

void invokePostActivate(BeanContext beanContext)

invokePrePassivate

void invokePrePassivate(BeanContext beanContext)

invokeInit

void invokeInit(Object bean,
                Class[] initTypes,
                Object[] initValues)

peekContext

BeanContext<?> peekContext()

popContext

BeanContext<?> popContext()

pushContext

void pushContext(BeanContext<?> ctx)

create

void create()
            throws Exception
Throws:
Exception

start

void start()
           throws Exception
Throws:
Exception

stop

void stop()
          throws Exception
Throws:
Exception

destroy

void destroy()
             throws Exception
Throws:
Exception

getInitialContext

InitialContext getInitialContext()

getInitialContextProperties

Hashtable getInitialContextProperties()

getEnc

Context getEnc()

processMetadata

void processMetadata()

getDependencyPolicy

DependencyPolicy getDependencyPolicy()

getInvokeStats

InvocationStatistics getInvokeStats()

getSecurityManager

<T> T getSecurityManager(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()


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.