Package org.glassfish.weld
Class RootBeanDeploymentArchive
- java.lang.Object
-
- org.glassfish.weld.BeanDeploymentArchiveImpl
-
- org.glassfish.weld.RootBeanDeploymentArchive
-
- All Implemented Interfaces:
org.jboss.weld.bootstrap.spi.BeanDeploymentArchive
public class RootBeanDeploymentArchive extends BeanDeploymentArchiveImpl
A root BDA represents the root of a module where a module is a war, ejb, rar, ear lib A root BDA of each module follows accessibility of the module (can only see BDAs, including root ones, in accessible modules). A root BDA contains no bean classes. All bdas of the module are visible to the root bda. And the root bda is visible to all bdas of the module. (Alternatively creating one root BDA per deployment has the disadvantage that you need to be careful about accessibility rules. If you allow every BDA to see the root BDA - return it from BDA.getBeanDeploymentArchives() - and allow the root BDA to see all other BDAs - return all other BDAs from root BDA.getDeployemtArchive(). Due to transitivity you make any BDA accessible to any other BDA and break the accessibility rules. One way is to only allow the root BDA to see all the other BDAs (but not vice versa). This may work for the InjectionTarget case but may be a limitation elsewhere.)- Author:
- JJ Snyder
-
-
Constructor Summary
Constructors Constructor Description RootBeanDeploymentArchive(ReadableArchive archive, Collection<EjbDescriptor> ejbs, DeploymentContext deploymentContext)
RootBeanDeploymentArchive(ReadableArchive archive, Collection<EjbDescriptor> ejbs, DeploymentContext deploymentContext, String moduleBdaID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WeldUtils.BDAType
getBDAType()
Gets the Bean Deployment Archive typeCollection<String>
getBeanClasses()
Collection<Class<?>>
getBeanClassObjects()
org.jboss.weld.bootstrap.spi.BeansXml
getBeansXml()
org.jboss.weld.bootstrap.spi.BeanDeploymentArchive
getModuleBda()
WeldUtils.BDAType
getModuleBDAType()
Collection<String>
getModuleBeanClasses()
Collection<Class<?>>
getModuleBeanClassObjects()
ClassLoader
getModuleClassLoaderForBDA()
-
Methods inherited from class org.glassfish.weld.BeanDeploymentArchiveImpl
addBeanClass, getBeanDeploymentArchives, getEjbDescriptor, getEjbs, getFriendlyId, getId, getInjectionTarget, getKnownClasses, getLoadedBeanClasses, getServices, isDeploymentComplete, parseBeansXML, setDeploymentComplete, toString
-
-
-
-
Constructor Detail
-
RootBeanDeploymentArchive
public RootBeanDeploymentArchive(ReadableArchive archive, Collection<EjbDescriptor> ejbs, DeploymentContext deploymentContext)
-
RootBeanDeploymentArchive
public RootBeanDeploymentArchive(ReadableArchive archive, Collection<EjbDescriptor> ejbs, DeploymentContext deploymentContext, String moduleBdaID)
-
-
Method Detail
-
getBeanClasses
public Collection<String> getBeanClasses()
- Specified by:
getBeanClasses
in interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
- Overrides:
getBeanClasses
in classBeanDeploymentArchiveImpl
-
getBeanClassObjects
public Collection<Class<?>> getBeanClassObjects()
- Overrides:
getBeanClassObjects
in classBeanDeploymentArchiveImpl
-
getModuleBeanClasses
public Collection<String> getModuleBeanClasses()
- Overrides:
getModuleBeanClasses
in classBeanDeploymentArchiveImpl
-
getModuleBeanClassObjects
public Collection<Class<?>> getModuleBeanClassObjects()
- Overrides:
getModuleBeanClassObjects
in classBeanDeploymentArchiveImpl
-
getBeansXml
public org.jboss.weld.bootstrap.spi.BeansXml getBeansXml()
- Specified by:
getBeansXml
in interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
- Overrides:
getBeansXml
in classBeanDeploymentArchiveImpl
-
getBDAType
public WeldUtils.BDAType getBDAType()
Description copied from class:BeanDeploymentArchiveImpl
Gets the Bean Deployment Archive type- Overrides:
getBDAType
in classBeanDeploymentArchiveImpl
- Returns:
- WAR, RAR, JAR or UNKNOWN
-
getModuleClassLoaderForBDA
public ClassLoader getModuleClassLoaderForBDA()
- Overrides:
getModuleClassLoaderForBDA
in classBeanDeploymentArchiveImpl
-
getModuleBda
public org.jboss.weld.bootstrap.spi.BeanDeploymentArchive getModuleBda()
-
getModuleBDAType
public WeldUtils.BDAType getModuleBDAType()
-
-