Package org.jboss.as.weld.deployment
Class BeanDeploymentModule
java.lang.Object
org.jboss.as.weld.deployment.BeanDeploymentModule
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
ConstructorsConstructorDescriptionBeanDeploymentModule(String moduleId, org.jboss.as.server.deployment.DeploymentUnit deploymentUnit, Collection<BeanDeploymentArchiveImpl> beanDeploymentArchives) -
Method Summary
Modifier and TypeMethodDescriptionvoidMakes theBeanDeploymentArchiveImplaccessible to all bdas in the modulevoidMakes allBeanDeploymentArchiveImpls in the given module accessible to all bdas in this modulevoidMakes 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 moduleorg.jboss.weld.bootstrap.spi.EEModuleDescriptor
-
Constructor Details
-
BeanDeploymentModule
public BeanDeploymentModule(String moduleId, org.jboss.as.server.deployment.DeploymentUnit deploymentUnit, Collection<BeanDeploymentArchiveImpl> beanDeploymentArchives)
-
-
Method Details
-
addBeanDeploymentArchive
Makes theBeanDeploymentArchiveImplaccessible to all bdas in the module- Parameters:
archive- The archive to make accessible
-
addBeanDeploymentModule
Makes allBeanDeploymentArchiveImpls in the given module accessible to all bdas in this module- Parameters:
module- The module to make accessible
-
addBeanDeploymentModules
Makes allBeanDeploymentArchiveImpls in the given modules accessible to all bdas in this module- Parameters:
modules- The modules to make accessible
-
addService
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
-
getModuleDescriptor
public org.jboss.weld.bootstrap.spi.EEModuleDescriptor getModuleDescriptor()
-