|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Deployment
Represents a deployment of a CDI application.
Web Beans will request the bean archive deployment structure during the bean
discovery initialization step. After this step, CDI allows users to define
bean's programmatically, possibly with bean classes from a deployment archive
which is currently not a bean deployment archive. Web Beans will request the
BeanDeploymentArchive for each programmatically using
loadBeanDeploymentArchive(Class). If any unknown
BeanDeploymentArchives are loaded, before Web Beans proceeds to
validating the deployment, the bean archive deployment structure will
re-requested.
For an application deployed as an ear to a Java EE container, all library
jars, EJB jars, rars and war WEB-INF/classes directories should be searched,
and the bean deployment archive structure built.
For an application deployed as a war to a Java EE or Servlet container, all
library jars and the WEB-INF/classes directory should be searched, and the
bean deployment archive structure built.
TODO Java SE structure
BeanDeploymentArchive,
EJBModule| Method Summary | |
|---|---|
java.util.List<BeanDeploymentArchive> |
getBeanDeploymentArchives()
Get the bean deployment archives which are accessible by this deployment and adjacent to it in the deployment archive graph. |
BeanDeploymentArchive |
loadBeanDeploymentArchive(java.lang.Class<?> beanClass)
Load the BeanDeploymentArchive containing the given class. |
| Method Detail |
|---|
java.util.List<BeanDeploymentArchive> getBeanDeploymentArchives()
BeanDeploymentArchive loadBeanDeploymentArchive(java.lang.Class<?> beanClass)
BeanDeploymentArchive containing the given class.
If the deployment archive containing the given class is not currently a
bean deployment archive, it should be added to the bean deployment archive
graph and returned. If the deployment archive is currently a bean
deployment archive it should be returned.
beanClass - the bean class to load
BeanDeploymentArchive containing the bean class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||