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
ENC_CTX_NAME
static final String ENC_CTX_NAME
- See Also:
- Constant Field Values
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.