org.jboss.weld
Class Container

java.lang.Object
  extended by org.jboss.weld.Container

public class Container
extends java.lang.Object

A Weld application container

Author:
pmuir

Constructor Summary
Container(BeanManagerImpl deploymentManager, org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices)
           
 
Method Summary
 BeanManagerImpl activityManager(java.lang.String key)
          Get the activity manager for a given key
 java.lang.String addActivity(BeanManagerImpl manager)
          Add an activity
 java.util.Map<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive,BeanManagerImpl> beanDeploymentArchives()
           
 void cleanup()
          Cause the container to be cleaned up, including all registered bean managers, and all deployment services
 BeanManagerImpl deploymentManager()
          Gets the manager for this application deployment
 org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices()
          Get the services for this application deployment
static void initialize(BeanManagerImpl deploymentManager, org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices)
          Initialize the container for the current application deployment
static Container instance()
          Get the container for the current application deployment
 boolean isInitialized()
          Check if the application container is fully initialized
 void putBeanDeployments(java.util.Map<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive,BeanDeployment> beanDeployments)
          Add sub-deployment units to the container
 void setInitialized(boolean initialized)
          Put the application container into an initialized state
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Container

public Container(BeanManagerImpl deploymentManager,
                 org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices)
Method Detail

instance

public static Container instance()
Get the container for the current application deployment

Returns:

initialize

public static void initialize(BeanManagerImpl deploymentManager,
                              org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices)
Initialize the container for the current application deployment

Parameters:
deploymentManager -
deploymentServices -

cleanup

public void cleanup()
Cause the container to be cleaned up, including all registered bean managers, and all deployment services


deploymentManager

public BeanManagerImpl deploymentManager()
Gets the manager for this application deployment


beanDeploymentArchives

public java.util.Map<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive,BeanManagerImpl> beanDeploymentArchives()

activityManager

public BeanManagerImpl activityManager(java.lang.String key)
Get the activity manager for a given key

Parameters:
key -
Returns:

addActivity

public java.lang.String addActivity(BeanManagerImpl manager)
Add an activity

Parameters:
manager -
Returns:

deploymentServices

public org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices()
Get the services for this application deployment

Returns:
the deploymentServices

putBeanDeployments

public void putBeanDeployments(java.util.Map<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive,BeanDeployment> beanDeployments)
Add sub-deployment units to the container

Parameters:
beanDeployments -

isInitialized

public boolean isInitialized()
Check if the application container is fully initialized

Returns:
the initialized

setInitialized

public void setInitialized(boolean initialized)
Put the application container into an initialized state

Parameters:
initialized - the initialized to set


Copyright © 2008-2009 Seam Framework. All Rights Reserved.