public class WeldDeployment extends AbstractWeldDeployment
| Modifier and Type | Field and Description |
|---|---|
static String |
ADDITIONAL_BDA_ID |
BEANS_XML, RESOURCES| Constructor and Description |
|---|
WeldDeployment(ResourceLoader resourceLoader,
Bootstrap bootstrap,
Set<WeldBeanDeploymentArchive> beanDeploymentArchives,
Iterable<Metadata<Extension>> extensions) |
| Modifier and Type | Method and Description |
|---|---|
protected WeldBeanDeploymentArchive |
createAdditionalBeanDeploymentArchive(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(Class<?> beanClass) |
BeanDeploymentArchive |
getBeanDeploymentArchive(Class<?> beanClass)
Returns the
BeanDeploymentArchive containing the given class. |
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(Class<?> beanClass)
Load the
BeanDeploymentArchive containing the given class. |
getExtensions, getServicespublic static final String ADDITIONAL_BDA_ID
public WeldDeployment(ResourceLoader resourceLoader, Bootstrap bootstrap, Set<WeldBeanDeploymentArchive> beanDeploymentArchives, Iterable<Metadata<Extension>> extensions)
resourceLoader - bootstrap - beanDeploymentArchives - The set should be mutable so that additional bean deployment archives can be eventually addedextensions - public Collection<BeanDeploymentArchive> getBeanDeploymentArchives()
Deploymentpublic BeanDeploymentArchive loadBeanDeploymentArchive(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(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(Class<?> beanClass)
protected WeldBeanDeploymentArchive createAdditionalBeanDeploymentArchive(Class<?> beanClass)
beanClass - Copyright © 2015. All Rights Reserved.