public class WeldDeployment extends AbstractWeldDeployment
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ADDITIONAL_BDA_ID |
BEANS_XML, RESOURCES| Constructor and Description |
|---|
WeldDeployment(ResourceLoader resourceLoader,
Bootstrap bootstrap,
java.util.Set<WeldBeanDeploymentArchive> beanDeploymentArchives,
java.lang.Iterable<Metadata<Extension>> extensions) |
| Modifier and Type | Method and Description |
|---|---|
protected WeldBeanDeploymentArchive |
createAdditionalBeanDeploymentArchive(java.lang.Class<?> beanClass)
Additional bean deployment archives are used for extentions, synthetic annotated types and beans which do not come from a bean archive.
|
protected BeanDeploymentArchive |
createAdditionalBeanDeploymentArchiveIfNeeded(java.lang.Class<?> beanClass) |
BeanDeploymentArchive |
getBeanDeploymentArchive(java.lang.Class<?> beanClass)
Returns the
BeanDeploymentArchive containing the given class. |
java.util.Collection<BeanDeploymentArchive> |
getBeanDeploymentArchives()
Get the bean deployment archives which are part of this deployment and adjacent to it in the deployment archive graph.
|
BeanDeploymentArchive |
loadBeanDeploymentArchive(java.lang.Class<?> beanClass)
Load the
BeanDeploymentArchive containing the given class. |
protected void |
setBeanDeploymentArchivesAccessibility()
By default all bean archives see each other.
|
getExtensions, getServicespublic WeldDeployment(ResourceLoader resourceLoader, Bootstrap bootstrap, java.util.Set<WeldBeanDeploymentArchive> beanDeploymentArchives, java.lang.Iterable<Metadata<Extension>> extensions)
resourceLoader - bootstrap - beanDeploymentArchives - The set should be mutable so that additional bean deployment archives can be eventually addedextensions - public java.util.Collection<BeanDeploymentArchive> getBeanDeploymentArchives()
Deploymentpublic BeanDeploymentArchive loadBeanDeploymentArchive(java.lang.Class<?> beanClass)
DeploymentBeanDeploymentArchive containing the given class.
If the deployment archive containing the given class is not currently a bean deployment archive, it must be added to the
bean deployment archive graph and returned. If the deployment archive is currently a bean deployment archive it should be
returned.
If beanClass is the bean class of an EJB session bean, an EjbDescriptor for the bean must be returned by
BeanDeploymentArchive.getEjbs().beanClass - the bean class to loadBeanDeploymentArchive containing the bean classpublic BeanDeploymentArchive getBeanDeploymentArchive(java.lang.Class<?> beanClass)
CDI11Deployment
Returns the BeanDeploymentArchive containing the given class.
If the deployment archive containing the given class is not currently a bean deployment archive, null is returned. Unlike
Deployment.loadBeanDeploymentArchive(Class), invocation of this method never results in a new BeanDeploymentArchive
instance to be created. This method may be called at runtime.
Alternatively, this method may return some kind of a "root" BDA instead of returning null if the class does not come from a known bean archive.
beanClass - the given classBeanDeploymentArchive containing the bean class or null if no such BeanDeploymentArchive
existsprotected BeanDeploymentArchive createAdditionalBeanDeploymentArchiveIfNeeded(java.lang.Class<?> beanClass)
protected WeldBeanDeploymentArchive createAdditionalBeanDeploymentArchive(java.lang.Class<?> beanClass)
beanClass - protected void setBeanDeploymentArchivesAccessibility()
Copyright © 2015. All Rights Reserved.