<?xml version="1.0" encoding="UTF-8"?>

<!--
    Web Beans RI + JBossAS integration
-->
<deployment xmlns="urn:jboss:bean-deployer:2.0">

  <!-- Web Beans deployers -->
  
  <!-- Responsible for discovering Web Bean files -->
  <bean name="WebBeansFilesDeployer" class="org.jboss.webbeans.integration.deployer.metadata.WebBeansFilesDeployer"/>

  <!-- Responsible for discovering Web Bean classes -->
  <bean name="WebBeansDiscoveryDeployer" class="org.jboss.webbeans.integration.deployer.env.WebBeanDiscoveryDeployer"/>

  <!-- Responsible for dynamic ejb dependency creation -->
  <bean name="DynamicDependencyCreator" class="org.jboss.webbeans.integration.deployer.env.DynamicDependencyCreator"/>

  <!-- Responsible for booting Web Beans -->
  <bean name="WebBeansBootstrapDeployer" class="org.jboss.webbeans.integration.deployer.env.WebBeansBootstrapDeployer"/>
  
  <!-- Responsible for pushing the Web Beans RI onto the application classpath -->
  <bean name="WebBeansWebUrlIntegrationDeployer" class="org.jboss.webbeans.integration.deployer.cl.WebBeansWebUrlIntegrationDeployer"/>
  
  <!-- Responsible for inserting the Web Beans RI EJB interceptor -->
  <bean name="PostEjbJarMetadataDeployer" class="org.jboss.webbeans.integration.deployer.metadata.WBEjbInterceptorMetadataDeployer"/>
  
  <!-- Responsible for enabling classloader isolation for Web Bean jars -->
  <bean name="PostJBossMetadataDeployer" class="org.jboss.webbeans.integration.deployer.metadata.PostJBossMetadataDeployer"/>
  
  <!-- Responsible for enabling classloader isolation for Web Bean wars -->
  <bean name="PostJBossWebMetadataDeployer" class="org.jboss.webbeans.integration.deployer.metadata.PostJBossWebMetadataDeployer"/>
  
  <!-- Responsible for adding the Web Beans RI listener to the Servlet -->
  <bean name="PostWebMetadataDeployer" class="org.jboss.webbeans.integration.deployer.metadata.PostWebMetadataDeployer"/>

  <!-- Responsible for adding the Web Beans Manager object factory to JNDI -->
  <bean name="WebBeansJndiBinder" class="org.jboss.webbeans.integration.deployer.env.WebBeansJndiBinder">
  	<start method="startService">
  		<parameter>java:app/Manager</parameter>
  		<parameter>org.jboss.webbeans.resources.ManagerObjectFactory</parameter>
  	</start>
  	<stop method="stopService"/>
  </bean>

</deployment>
