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 of BeanDeploymentArchive.

Thread Safety: This class is thread safe and does not require a happens before action between construction and usage

Author:
Stuart Douglas
  • Constructor Details

  • Method Details

    • addBeanDeploymentArchive

      public void addBeanDeploymentArchive(org.jboss.weld.bootstrap.spi.BeanDeploymentArchive archive)
      Adds an accessible BeanDeploymentArchive.
    • addBeanDeploymentArchives

      public void addBeanDeploymentArchives(Collection<? extends org.jboss.weld.bootstrap.spi.BeanDeploymentArchive> archives)
      Adds multiple accessible BeanDeploymentArchives
    • addBeanClass

      public void addBeanClass(String clazz)
      Specified by:
      addBeanClass in interface WildFlyBeanDeploymentArchive
    • addBeanClass

      public void addBeanClass(Class<?> clazz)
      Specified by:
      addBeanClass in interface WildFlyBeanDeploymentArchive
    • getBeanClasses

      public Collection<String> getBeanClasses()
      returns an unmodifiable copy of the bean classes in this BDA
      Specified by:
      getBeanClasses in interface org.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 interface org.jboss.weld.bootstrap.spi.BeanDeploymentArchive
    • getBeansXml

      public org.jboss.weld.bootstrap.spi.BeansXml getBeansXml()
      Specified by:
      getBeansXml in interface org.jboss.weld.bootstrap.spi.BeanDeploymentArchive
    • addEjbDescriptor

      public void addEjbDescriptor(org.jboss.weld.ejb.spi.EjbDescriptor<?> descriptor)
      Specified by:
      addEjbDescriptor in interface WildFlyBeanDeploymentArchive
    • getEjbs

      public Collection<org.jboss.weld.ejb.spi.EjbDescriptor<?>> getEjbs()
      Specified by:
      getEjbs in interface org.jboss.weld.bootstrap.spi.BeanDeploymentArchive
    • getId

      public String getId()
      Specified by:
      getId in interface org.jboss.weld.bootstrap.spi.BeanDeploymentArchive
    • getServices

      public org.jboss.weld.bootstrap.api.ServiceRegistry getServices()
      Specified by:
      getServices in interface org.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 this BeanDeploymentArchiveImpl instance can access a class in the BeanDeploymentArchive instance represented by the specified BeanDeploymentArchive 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()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getKnownClasses

      public Collection<String> getKnownClasses()
      Specified by:
      getKnownClasses in interface org.jboss.weld.bootstrap.spi.BeanDeploymentArchive