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.BDATypegetBDAType()Gets the Bean Deployment Archive typeCollection<String>getBeanClasses()Collection<Class<?>>getBeanClassObjects()org.jboss.weld.bootstrap.spi.BeansXmlgetBeansXml()org.jboss.weld.bootstrap.spi.BeanDeploymentArchivegetModuleBda()WeldUtils.BDATypegetModuleBDAType()Collection<String>getModuleBeanClasses()Collection<Class<?>>getModuleBeanClassObjects()ClassLoadergetModuleClassLoaderForBDA()-
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:
getBeanClassesin interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive- Overrides:
getBeanClassesin classBeanDeploymentArchiveImpl
-
getBeanClassObjects
public Collection<Class<?>> getBeanClassObjects()
- Overrides:
getBeanClassObjectsin classBeanDeploymentArchiveImpl
-
getModuleBeanClasses
public Collection<String> getModuleBeanClasses()
- Overrides:
getModuleBeanClassesin classBeanDeploymentArchiveImpl
-
getModuleBeanClassObjects
public Collection<Class<?>> getModuleBeanClassObjects()
- Overrides:
getModuleBeanClassObjectsin classBeanDeploymentArchiveImpl
-
getBeansXml
public org.jboss.weld.bootstrap.spi.BeansXml getBeansXml()
- Specified by:
getBeansXmlin interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive- Overrides:
getBeansXmlin classBeanDeploymentArchiveImpl
-
getBDAType
public WeldUtils.BDAType getBDAType()
Description copied from class:BeanDeploymentArchiveImplGets the Bean Deployment Archive type- Overrides:
getBDATypein classBeanDeploymentArchiveImpl- Returns:
- WAR, RAR, JAR or UNKNOWN
-
getModuleClassLoaderForBDA
public ClassLoader getModuleClassLoaderForBDA()
- Overrides:
getModuleClassLoaderForBDAin classBeanDeploymentArchiveImpl
-
getModuleBda
public org.jboss.weld.bootstrap.spi.BeanDeploymentArchive getModuleBda()
-
getModuleBDAType
public WeldUtils.BDAType getModuleBDAType()
-
-