Class Container


  • public class Container
    extends Object
    A Weld application container
    Author:
    pmuir
    • Constructor Detail

      • Container

        public Container​(String contextId,
                         BeanManagerImpl deploymentManager,
                         org.jboss.weld.bootstrap.api.ServiceRegistry deploymentServices)
      • 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()
      • available

        public static boolean available​(String contextId)
      • 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 -
      • initialize

        public static void initialize​(String contextId,
                                      BeanManagerImpl deploymentManager,
                                      org.jboss.weld.bootstrap.api.ServiceRegistry 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​(BeanDeploymentArchiveMapping bdaMapping)
        Add sub-deployment units to the container
        Parameters:
        bdaMapping -