Class BeanDeploymentModule

java.lang.Object
org.jboss.as.weld.deployment.BeanDeploymentModule

public class BeanDeploymentModule extends Object
A collection of Bean Deployment archives that share similar bean visibility.

When the module is created all BDA's are given visibility to each other. They can then be given visibility to other bda's or bean modules with one operation.

Author:
Stuart Douglas
  • Constructor Details

  • Method Details

    • addBeanDeploymentArchive

      public void addBeanDeploymentArchive(BeanDeploymentArchiveImpl archive)
      Makes the BeanDeploymentArchiveImpl accessible to all bdas in the module
      Parameters:
      archive - The archive to make accessible
    • addBeanDeploymentModule

      public void addBeanDeploymentModule(BeanDeploymentModule module)
      Makes all BeanDeploymentArchiveImpls in the given module accessible to all bdas in this module
      Parameters:
      module - The module to make accessible
    • addBeanDeploymentModules

      public void addBeanDeploymentModules(Collection<BeanDeploymentModule> modules)
      Makes all BeanDeploymentArchiveImpls in the given modules accessible to all bdas in this module
      Parameters:
      modules - The modules to make accessible
    • addService

      public <S extends org.jboss.weld.bootstrap.api.Service> void addService(Class<S> clazz, S service)
      Adds a service to all bean deployment archives in the module
      Type Parameters:
      S - The service type
      Parameters:
      clazz - The service type
      service - The service
    • getBeanDeploymentArchives

      public Set<BeanDeploymentArchiveImpl> getBeanDeploymentArchives()
    • getModuleDescriptor

      public org.jboss.weld.bootstrap.spi.EEModuleDescriptor getModuleDescriptor()