public class WeldSEUrlDeployment extends AbstractWeldSEDeployment
BEANS_XML, RESOURCES
Constructor and Description |
---|
WeldSEUrlDeployment(ResourceLoader resourceLoader,
Bootstrap bootstrap,
Set<WeldSEBeanDeploymentArchive> beanDeploymentArchives,
Iterable<Metadata<Extension>> extensions) |
Modifier and Type | Method and Description |
---|---|
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, getServices
public WeldSEUrlDeployment(ResourceLoader resourceLoader, Bootstrap bootstrap, Set<WeldSEBeanDeploymentArchive> beanDeploymentArchives, Iterable<Metadata<Extension>> extensions)
public Collection<BeanDeploymentArchive> getBeanDeploymentArchives()
Deployment
public BeanDeploymentArchive loadBeanDeploymentArchive(Class<?> beanClass)
Deployment
BeanDeploymentArchive
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.
BeanDeploymentArchive
containing the bean class or null if no such BeanDeploymentArchive
existsCopyright © 2014. All Rights Reserved.