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)
ProduceBeanDeploymentArchive
s for thisDeployment
from information from the providedReadableArchive
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addDeployedEjbs(Collection<EjbDescriptor> ejbs)
boolean
addDynamicExtension(org.jboss.weld.bootstrap.spi.Metadata<jakarta.enterprise.inject.spi.Extension> extension)
void
buildDeploymentGraph()
Build the accessibility relationship betweenBeanDeploymentArchive
s for thisDeployment
.void
cleanup()
void
clearDynamicExtensions()
String
getAppName()
org.jboss.weld.bootstrap.spi.BeanDeploymentArchive
getBeanDeploymentArchive(Class<?> beanClass)
Get a bda for the specified beanClassorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
getBeanDeploymentArchiveForArchive(String archiveId)
List<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive>
getBeanDeploymentArchives()
String
getContextId()
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.ServiceRegistry
getServices()
org.glassfish.hk2.classmodel.reflect.Types
getTypes()
Gets theTypes
from theDeploymentContext
's transient metadataorg.jboss.weld.bootstrap.spi.BeanDeploymentArchive
loadBeanDeploymentArchive(Class<?> beanClass)
boolean
removeDynamicExtension(org.jboss.weld.bootstrap.spi.Metadata<jakarta.enterprise.inject.spi.Extension> extension)
void
scanArchive(ReadableArchive archive, Collection<EjbDescriptor> ejbs, DeploymentContext context, String moduleName)
ProduceBeanDeploymentArchive
s for thisDeployment
from information from the providedReadableArchive
.String
toString()
-
-
-
Constructor Detail
-
DeploymentImpl
public DeploymentImpl(ReadableArchive archive, Collection<EjbDescriptor> ejbs, DeploymentContext context, ArchiveFactory archiveFactory, String moduleName, InjectionManager injectionManager)
ProduceBeanDeploymentArchive
s for thisDeployment
from information from the providedReadableArchive
.
-
-
Method Detail
-
scanArchive
public void scanArchive(ReadableArchive archive, Collection<EjbDescriptor> ejbs, DeploymentContext context, String moduleName)
ProduceBeanDeploymentArchive
s for thisDeployment
from information from the providedReadableArchive
. This method is called for subsequent modules after ThisDeployment
has been created.
-
buildDeploymentGraph
public void buildDeploymentGraph()
Build the accessibility relationship betweenBeanDeploymentArchive
s for thisDeployment
. This method must be called after allWeld
BeanDeploymentArchive
s have been produced for theDeployment
.
-
getBeanDeploymentArchives
public List<org.jboss.weld.bootstrap.spi.BeanDeploymentArchive> getBeanDeploymentArchives()
- Specified by:
getBeanDeploymentArchives
in interfaceorg.jboss.weld.bootstrap.spi.Deployment
-
loadBeanDeploymentArchive
public org.jboss.weld.bootstrap.spi.BeanDeploymentArchive loadBeanDeploymentArchive(Class<?> beanClass)
- Specified by:
loadBeanDeploymentArchive
in interfaceorg.jboss.weld.bootstrap.spi.Deployment
-
getServices
public org.jboss.weld.bootstrap.api.ServiceRegistry getServices()
- Specified by:
getServices
in interfaceorg.jboss.weld.bootstrap.spi.Deployment
-
getExtensions
public Iterable<org.jboss.weld.bootstrap.spi.Metadata<jakarta.enterprise.inject.spi.Extension>> getExtensions()
- Specified by:
getExtensions
in 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:
getBeanDeploymentArchive
in 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 theTypes
from theDeploymentContext
's transient metadata- Returns:
- The
Types
from theDeploymentContext
's transient metadata
-
-