Package org.jboss.as.weld.deployment
Class BeanDeploymentArchiveImpl
java.lang.Object
org.jboss.as.weld.deployment.BeanDeploymentArchiveImpl
- All Implemented Interfaces:
WildFlyBeanDeploymentArchive,org.jboss.weld.bootstrap.spi.BeanDeploymentArchive
Implementation of
BeanDeploymentArchive.
Thread Safety: This class is thread safe and does not require a happens before action between construction and usage
- Author:
- Stuart Douglas
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBeanDeploymentArchiveImpl(Set<String> beanClasses, Set<String> allClasses, org.jboss.weld.bootstrap.spi.BeansXml beansXml, org.jboss.modules.Module module, String id, BeanDeploymentArchiveImpl.BeanArchiveType beanArchiveType) BeanDeploymentArchiveImpl(Set<String> beanClasses, Set<String> allClasses, org.jboss.weld.bootstrap.spi.BeansXml beansXml, org.jboss.modules.Module module, String id, BeanDeploymentArchiveImpl.BeanArchiveType beanArchiveType, boolean root) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBeanClass(Class<?> clazz) voidaddBeanClass(String clazz) voidaddBeanDeploymentArchive(org.jboss.weld.bootstrap.spi.BeanDeploymentArchive archive) Adds an accessibleBeanDeploymentArchive.voidaddBeanDeploymentArchives(Collection<? extends org.jboss.weld.bootstrap.spi.BeanDeploymentArchive> archives) Adds multiple accessibleBeanDeploymentArchivesvoidaddEjbDescriptor(org.jboss.weld.ejb.spi.EjbDescriptor<?> descriptor) returns an unmodifiable copy of the bean classes in this BDACollection<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive>Returns an unmodifiable copy of the bean deployment archives setorg.jboss.weld.bootstrap.spi.BeansXmlCollection<org.jboss.weld.ejb.spi.EjbDescriptor<?>>getEjbs()getId()org.jboss.modules.Moduleorg.jboss.weld.bootstrap.api.ServiceRegistrybooleanisAccessible(org.jboss.weld.bootstrap.spi.BeanDeploymentArchive target) Determines if a class from thisBeanDeploymentArchiveImplinstance can access a class in theBeanDeploymentArchiveinstance represented by the specifiedBeanDeploymentArchiveparameter according to the Jakarta EE class accessibility requirements.booleanisRoot()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jboss.weld.bootstrap.spi.BeanDeploymentArchive
getLoadedBeanClasses
-
Constructor Details
-
BeanDeploymentArchiveImpl
-
BeanDeploymentArchiveImpl
-
-
Method Details
-
addBeanDeploymentArchive
public void addBeanDeploymentArchive(org.jboss.weld.bootstrap.spi.BeanDeploymentArchive archive) Adds an accessibleBeanDeploymentArchive. -
addBeanDeploymentArchives
public void addBeanDeploymentArchives(Collection<? extends org.jboss.weld.bootstrap.spi.BeanDeploymentArchive> archives) Adds multiple accessibleBeanDeploymentArchives -
addBeanClass
- Specified by:
addBeanClassin interfaceWildFlyBeanDeploymentArchive
-
addBeanClass
- Specified by:
addBeanClassin interfaceWildFlyBeanDeploymentArchive
-
getBeanClasses
returns an unmodifiable copy of the bean classes in this BDA- Specified by:
getBeanClassesin interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
getBeanDeploymentArchives
Returns an unmodifiable copy of the bean deployment archives set- Specified by:
getBeanDeploymentArchivesin interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
getBeansXml
public org.jboss.weld.bootstrap.spi.BeansXml getBeansXml()- Specified by:
getBeansXmlin interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
addEjbDescriptor
public void addEjbDescriptor(org.jboss.weld.ejb.spi.EjbDescriptor<?> descriptor) - Specified by:
addEjbDescriptorin interfaceWildFlyBeanDeploymentArchive
-
getEjbs
- Specified by:
getEjbsin interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
getId
- Specified by:
getIdin interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
getServices
public org.jboss.weld.bootstrap.api.ServiceRegistry getServices()- Specified by:
getServicesin interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
getModule
public org.jboss.modules.Module getModule() -
getClassLoader
-
isRoot
public boolean isRoot() -
isAccessible
public boolean isAccessible(org.jboss.weld.bootstrap.spi.BeanDeploymentArchive target) Determines if a class from thisBeanDeploymentArchiveImplinstance can access a class in theBeanDeploymentArchiveinstance represented by the specifiedBeanDeploymentArchiveparameter according to the Jakarta EE class accessibility requirements.- Parameters:
target-- Returns:
- true if an only if a class this archive can access a class from the archive represented by the specified parameter
-
getBeanArchiveType
-
toString
-
getKnownClasses
- Specified by:
getKnownClassesin interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-