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
public class BeanDeploymentArchiveImpl extends Object implements WildFlyBeanDeploymentArchive
Implementation ofBeanDeploymentArchive
.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 Modifier and Type Class Description static class
BeanDeploymentArchiveImpl.BeanArchiveType
-
Constructor Summary
Constructors Constructor Description BeanDeploymentArchiveImpl(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBeanClass(Class<?> clazz)
void
addBeanClass(String clazz)
void
addBeanDeploymentArchive(org.jboss.weld.bootstrap.spi.BeanDeploymentArchive archive)
Adds an accessibleBeanDeploymentArchive
.void
addBeanDeploymentArchives(Collection<? extends org.jboss.weld.bootstrap.spi.BeanDeploymentArchive> archives)
Adds multiple accessibleBeanDeploymentArchive
svoid
addEjbDescriptor(org.jboss.weld.ejb.spi.EjbDescriptor<?> descriptor)
BeanDeploymentArchiveImpl.BeanArchiveType
getBeanArchiveType()
Collection<String>
getBeanClasses()
returns an unmodifiable copy of the bean classes in this BDACollection<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive>
getBeanDeploymentArchives()
Returns an unmodifiable copy of the bean deployment archives setorg.jboss.weld.bootstrap.spi.BeansXml
getBeansXml()
ClassLoader
getClassLoader()
Collection<org.jboss.weld.ejb.spi.EjbDescriptor<?>>
getEjbs()
String
getId()
Collection<String>
getKnownClasses()
org.jboss.modules.Module
getModule()
org.jboss.weld.bootstrap.api.ServiceRegistry
getServices()
boolean
isAccessible(org.jboss.weld.bootstrap.spi.BeanDeploymentArchive target)
Determines if a class from thisBeanDeploymentArchiveImpl
instance can access a class in theBeanDeploymentArchive
instance represented by the specifiedBeanDeploymentArchive
parameter according to the Jakarta EE class accessibility requirements.boolean
isRoot()
String
toString()
-
-
-
Method Detail
-
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 accessibleBeanDeploymentArchive
s
-
addBeanClass
public void addBeanClass(String clazz)
- Specified by:
addBeanClass
in interfaceWildFlyBeanDeploymentArchive
-
addBeanClass
public void addBeanClass(Class<?> clazz)
- Specified by:
addBeanClass
in interfaceWildFlyBeanDeploymentArchive
-
getBeanClasses
public Collection<String> getBeanClasses()
returns an unmodifiable copy of the bean classes in this BDA- Specified by:
getBeanClasses
in interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
getBeanDeploymentArchives
public Collection<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive> getBeanDeploymentArchives()
Returns an unmodifiable copy of the bean deployment archives set- Specified by:
getBeanDeploymentArchives
in interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
getBeansXml
public org.jboss.weld.bootstrap.spi.BeansXml getBeansXml()
- Specified by:
getBeansXml
in interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
addEjbDescriptor
public void addEjbDescriptor(org.jboss.weld.ejb.spi.EjbDescriptor<?> descriptor)
- Specified by:
addEjbDescriptor
in interfaceWildFlyBeanDeploymentArchive
-
getEjbs
public Collection<org.jboss.weld.ejb.spi.EjbDescriptor<?>> getEjbs()
- Specified by:
getEjbs
in interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
getId
public String getId()
- Specified by:
getId
in interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
getServices
public org.jboss.weld.bootstrap.api.ServiceRegistry getServices()
- Specified by:
getServices
in interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
getModule
public org.jboss.modules.Module getModule()
-
getClassLoader
public ClassLoader getClassLoader()
-
isRoot
public boolean isRoot()
-
isAccessible
public boolean isAccessible(org.jboss.weld.bootstrap.spi.BeanDeploymentArchive target)
Determines if a class from thisBeanDeploymentArchiveImpl
instance can access a class in theBeanDeploymentArchive
instance represented by the specifiedBeanDeploymentArchive
parameter 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
public BeanDeploymentArchiveImpl.BeanArchiveType getBeanArchiveType()
-
getKnownClasses
public Collection<String> getKnownClasses()
- Specified by:
getKnownClasses
in interfaceorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
-
-