Package org.glassfish.weld
Class DeploymentImpl
- java.lang.Object
-
- org.glassfish.weld.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
-
-
Constructor Summary
Constructors Constructor Description DeploymentImpl(ReadableArchive archive, Collection<EjbDescriptor> ejbs, DeploymentContext context, ArchiveFactory archiveFactory, String moduleName, InjectionManager injectionManager)ProduceBeanDeploymentArchives for thisDeploymentfrom information from the providedReadableArchive.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddDeployedEjbs(Collection<EjbDescriptor> ejbs)booleanaddDynamicExtension(org.jboss.weld.bootstrap.spi.Metadata<jakarta.enterprise.inject.spi.Extension> extension)voidbuildDeploymentGraph()Build the accessibility relationship betweenBeanDeploymentArchives for thisDeployment.voidcleanup()voidclearDynamicExtensions()StringgetAppName()org.jboss.weld.bootstrap.spi.BeanDeploymentArchivegetBeanDeploymentArchive(Class<?> beanClass)Get a bda for the specified beanClassorg.jboss.weld.bootstrap.spi.BeanDeploymentArchivegetBeanDeploymentArchiveForArchive(String archiveId)List<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive>getBeanDeploymentArchives()StringgetContextId()Collection<EjbDescriptor>getDeployedEjbs()Iterable<org.jboss.weld.bootstrap.spi.Metadata<jakarta.enterprise.inject.spi.Extension>>getExtensions()Iterator<RootBeanDeploymentArchive>getLibJarRootBdas()Iterator<RootBeanDeploymentArchive>getRarRootBdas()org.jboss.weld.bootstrap.api.ServiceRegistrygetServices()org.glassfish.hk2.classmodel.reflect.TypesgetTypes()Gets theTypesfrom theDeploymentContext's transient metadataorg.jboss.weld.bootstrap.spi.BeanDeploymentArchiveloadBeanDeploymentArchive(Class<?> beanClass)booleanremoveDynamicExtension(org.jboss.weld.bootstrap.spi.Metadata<jakarta.enterprise.inject.spi.Extension> extension)voidscanArchive(ReadableArchive archive, Collection<EjbDescriptor> ejbs, DeploymentContext context, String moduleName)ProduceBeanDeploymentArchives for thisDeploymentfrom information from the providedReadableArchive.StringtoString()
-
-
-
Constructor Detail
-
DeploymentImpl
public DeploymentImpl(ReadableArchive archive, Collection<EjbDescriptor> ejbs, DeploymentContext context, ArchiveFactory archiveFactory, String moduleName, InjectionManager injectionManager)
ProduceBeanDeploymentArchives for thisDeploymentfrom information from the providedReadableArchive.
-
-
Method Detail
-
scanArchive
public void scanArchive(ReadableArchive archive, Collection<EjbDescriptor> ejbs, DeploymentContext context, String moduleName)
ProduceBeanDeploymentArchives for thisDeploymentfrom information from the providedReadableArchive. This method is called for subsequent modules after ThisDeploymenthas been created.
-
buildDeploymentGraph
public void buildDeploymentGraph()
Build the accessibility relationship betweenBeanDeploymentArchives for thisDeployment. This method must be called after allWeldBeanDeploymentArchives have been produced for theDeployment.
-
getBeanDeploymentArchives
public List<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive> getBeanDeploymentArchives()
- Specified by:
getBeanDeploymentArchivesin interfaceorg.jboss.weld.bootstrap.spi.Deployment
-
loadBeanDeploymentArchive
public org.jboss.weld.bootstrap.spi.BeanDeploymentArchive loadBeanDeploymentArchive(Class<?> beanClass)
- Specified by:
loadBeanDeploymentArchivein interfaceorg.jboss.weld.bootstrap.spi.Deployment
-
getServices
public org.jboss.weld.bootstrap.api.ServiceRegistry getServices()
- Specified by:
getServicesin interfaceorg.jboss.weld.bootstrap.spi.Deployment
-
getExtensions
public Iterable<org.jboss.weld.bootstrap.spi.Metadata<jakarta.enterprise.inject.spi.Extension>> getExtensions()
- Specified by:
getExtensionsin interfaceorg.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()
-
addDeployedEjbs
protected void addDeployedEjbs(Collection<EjbDescriptor> ejbs)
-
getDeployedEjbs
public Collection<EjbDescriptor> getDeployedEjbs()
-
getBeanDeploymentArchive
public org.jboss.weld.bootstrap.spi.BeanDeploymentArchive getBeanDeploymentArchive(Class<?> beanClass)
Get a bda for the specified beanClass- Specified by:
getBeanDeploymentArchivein interfaceorg.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.
-
getLibJarRootBdas
public Iterator<RootBeanDeploymentArchive> getLibJarRootBdas()
-
getRarRootBdas
public Iterator<RootBeanDeploymentArchive> getRarRootBdas()
-
getAppName
public String getAppName()
-
getContextId
public String getContextId()
-
getTypes
public org.glassfish.hk2.classmodel.reflect.Types getTypes()
Gets theTypesfrom theDeploymentContext's transient metadata- Returns:
- The
Typesfrom theDeploymentContext's transient metadata
-
-