Package org.jboss.as.weld.deployment
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 Summary
Constructors Constructor Description BeanDeploymentModule(String moduleId, org.jboss.as.server.deployment.DeploymentUnit deploymentUnit, Collection<BeanDeploymentArchiveImpl> beanDeploymentArchives)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddBeanDeploymentArchive(BeanDeploymentArchiveImpl archive)Makes theBeanDeploymentArchiveImplaccessible to all bdas in the modulevoidaddBeanDeploymentModule(BeanDeploymentModule module)Makes allBeanDeploymentArchiveImpls in the given module accessible to all bdas in this modulevoidaddBeanDeploymentModules(Collection<BeanDeploymentModule> modules)Makes allBeanDeploymentArchiveImpls in the given modules accessible to all bdas in this module<S extends org.jboss.weld.bootstrap.api.Service>
voidaddService(Class<S> clazz, S service)Adds a service to all bean deployment archives in the moduleSet<BeanDeploymentArchiveImpl>getBeanDeploymentArchives()org.jboss.weld.bootstrap.spi.EEModuleDescriptorgetModuleDescriptor()
-
-
-
Constructor Detail
-
BeanDeploymentModule
public BeanDeploymentModule(String moduleId, org.jboss.as.server.deployment.DeploymentUnit deploymentUnit, Collection<BeanDeploymentArchiveImpl> beanDeploymentArchives)
-
-
Method Detail
-
addBeanDeploymentArchive
public void addBeanDeploymentArchive(BeanDeploymentArchiveImpl archive)
Makes theBeanDeploymentArchiveImplaccessible to all bdas in the module- Parameters:
archive- The archive to make accessible
-
addBeanDeploymentModule
public void addBeanDeploymentModule(BeanDeploymentModule module)
Makes allBeanDeploymentArchiveImpls 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 allBeanDeploymentArchiveImpls 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 typeservice- The service
-
getBeanDeploymentArchives
public Set<BeanDeploymentArchiveImpl> getBeanDeploymentArchives()
-
getModuleDescriptor
public org.jboss.weld.bootstrap.spi.EEModuleDescriptor getModuleDescriptor()
-
-