org.jboss.weld
Class Container

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

public class Container
extends Object

A Weld application container

Author:
pmuir

Constructor Summary
Container(BeanManagerImpl deploymentManager, org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices)
           
 
Method Summary
 BeanManagerImpl activityManager(String key)
          Get the activity manager for a given key
 String addActivity(BeanManagerImpl manager)
          Add an activity
static boolean available()
           
 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
 ContainerState getState()
           
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
 void putBeanDeployments(Map<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive,BeanDeployment> beanDeployments)
          Add sub-deployment units to the container
 org.jboss.weld.bootstrap.api.ServiceRegistry services()
          Get the services for this application deployment
 void setState(ContainerState 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:

available

public static boolean available()

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 Map<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive,BeanManagerImpl> beanDeploymentArchives()

activityManager

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

Parameters:
key -
Returns:

addActivity

public String addActivity(BeanManagerImpl manager)
Add an activity

Parameters:
manager -
Returns:

services

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

Returns:
the deploymentServices

putBeanDeployments

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

Parameters:
beanDeployments -

getState

public ContainerState getState()

setState

public void setState(ContainerState state)


Copyright © 2013 Seam Framework. All Rights Reserved.