Class DeploymentImpl

  • All Implemented Interfaces:
    org.jboss.weld.bootstrap.spi.CDI11Deployment, org.jboss.weld.bootstrap.spi.Deployment

    public class DeploymentImpl
    extends Object
    implements org.jboss.weld.bootstrap.spi.CDI11Deployment
    • Method Detail

      • scanArchive

        public void scanArchive​(ReadableArchive archive,
                                Collection<EjbDescriptor> ejbs,
                                DeploymentContext context,
                                String moduleName)
        Produce BeanDeploymentArchives for this Deployment from information from the provided ReadableArchive. This method is called for subsequent modules after This Deployment has been created.
      • buildDeploymentGraph

        public void buildDeploymentGraph()
        Build the accessibility relationship between BeanDeploymentArchives for this Deployment. This method must be called after all Weld BeanDeploymentArchives have been produced for the Deployment.
      • getBeanDeploymentArchives

        public List<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive> getBeanDeploymentArchives()
        Specified by:
        getBeanDeploymentArchives in interface org.jboss.weld.bootstrap.spi.Deployment
      • loadBeanDeploymentArchive

        public org.jboss.weld.bootstrap.spi.BeanDeploymentArchive loadBeanDeploymentArchive​(Class<?> beanClass)
        Specified by:
        loadBeanDeploymentArchive in interface org.jboss.weld.bootstrap.spi.Deployment
      • getServices

        public org.jboss.weld.bootstrap.api.ServiceRegistry getServices()
        Specified by:
        getServices in interface org.jboss.weld.bootstrap.spi.Deployment
      • getExtensions

        public Iterable<org.jboss.weld.bootstrap.spi.Metadata<jakarta.enterprise.inject.spi.Extension>> getExtensions()
        Specified by:
        getExtensions in interface org.jboss.weld.bootstrap.spi.Deployment
      • addDynamicExtension

        public boolean addDynamicExtension​(org.jboss.weld.bootstrap.spi.Metadata<jakarta.enterprise.inject.spi.Extension> extension)
      • removeDynamicExtension

        public boolean removeDynamicExtension​(org.jboss.weld.bootstrap.spi.Metadata<jakarta.enterprise.inject.spi.Extension> extension)
      • clearDynamicExtensions

        public void clearDynamicExtensions()
      • getBeanDeploymentArchiveForArchive

        public org.jboss.weld.bootstrap.spi.BeanDeploymentArchive getBeanDeploymentArchiveForArchive​(String archiveId)
      • cleanup

        public void cleanup()
      • getBeanDeploymentArchive

        public org.jboss.weld.bootstrap.spi.BeanDeploymentArchive getBeanDeploymentArchive​(Class<?> beanClass)
        Get a bda for the specified beanClass
        Specified by:
        getBeanDeploymentArchive in interface org.jboss.weld.bootstrap.spi.CDI11Deployment
        Parameters:
        beanClass - The beanClass to get the bda for.
        Returns:
        If the beanClass is in the archive represented by the bda then return that bda. Otherwise if the class loader of the beanClass matches the module class loader of any of the root bdas then return that root bda. Otherwise return null.
      • getAppName

        public String getAppName()
      • getContextId

        public String getContextId()
      • getTypes

        public org.glassfish.hk2.classmodel.reflect.Types getTypes()
        Gets the Types from the DeploymentContext's transient metadata
        Returns:
        The Types from the DeploymentContext's transient metadata