org.jboss.webbeans.bootstrap.spi
Interface Deployment

All Superinterfaces:
Service

public interface Deployment
extends Service

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

Author:
Pete Muir
See Also:
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

getBeanDeploymentArchives

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. The bean deployment archives will be processed in the order specified. Circular dependencies will be detected and ignored by the container

Returns:
the ordered accessible bean deployment archives

loadBeanDeploymentArchive

BeanDeploymentArchive loadBeanDeploymentArchive(java.lang.Class<?> beanClass)
Load the 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.

Parameters:
beanClass - the bean class to load
Returns:
the BeanDeploymentArchive containing the bean class


Copyright © 2008-2009. All Rights Reserved.