public class ServletDeployment extends Object implements CDI11Deployment
| Constructor and Description |
|---|
ServletDeployment(ServletContext servletContext,
Bootstrap bootstrap) |
| Modifier and Type | Method and Description |
|---|---|
protected WebAppBeanDeploymentArchive |
createWebAppBeanDeploymentArchive(ServletContext servletContext,
Bootstrap bootstrap) |
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.
|
Iterable<Metadata<Extension>> |
getExtensions()
Specifies the extensions this deployment should call observer methods on.
|
ServiceRegistry |
getServices()
Get the services available to this deployment
|
WebAppBeanDeploymentArchive |
getWebAppBeanDeploymentArchive() |
BeanDeploymentArchive |
loadBeanDeploymentArchive(Class<?> beanClass)
Load the
BeanDeploymentArchive containing the given class. |
public ServletDeployment(ServletContext servletContext,
Bootstrap bootstrap)
protected WebAppBeanDeploymentArchive createWebAppBeanDeploymentArchive(ServletContext servletContext, Bootstrap bootstrap)
public Collection<BeanDeploymentArchive> getBeanDeploymentArchives()
DeploymentgetBeanDeploymentArchives in interface Deploymentpublic ServiceRegistry getServices()
DeploymentgetServices in interface 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().loadBeanDeploymentArchive in interface DeploymentbeanClass - 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.
getBeanDeploymentArchive in interface CDI11DeploymentBeanDeploymentArchive containing the bean class or null if no such BeanDeploymentArchive
existspublic WebAppBeanDeploymentArchive getWebAppBeanDeploymentArchive()
public Iterable<Metadata<Extension>> getExtensions()
DeploymentServiceLoader available in the JDK (since Java 6). In pre Java 6
environments, the container must provide the ServiceLoader itself. We provide an example Service Loader here.getExtensions in interface DeploymentCopyright © 2013 Seam Framework. All Rights Reserved.