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

<!--
    MetaData configuration
    $Id: metadata-deployer-jboss-beans.xml 85945 2009-03-16 19:45:12Z dimitris@jboss.org $
-->
<deployment xmlns="urn:jboss:bean-deployer:2.0">

   <!-- A reference metadata resolving deployer that creates and endpoint map
      for the deployments
   -->
   <bean name="ReferenceMetaDataResolverDeployer" class="org.jboss.deployment.MappedReferenceMetaDataResolverDeployer"/>

   <!-- Generic scanning deployer - using javassist to do lookup -->
  
   <bean name="EarLibExcludeDeployer" class="org.jboss.deployment.EarLibExcludeDeployer"/>

   <bean name="JBossMetaDataDUFilter" class="org.jboss.deployment.JBossMetaDataDeploymentUnitFilter"/>

  <bean name="ScanningMetaDataDeployer" class="org.jboss.deployers.vfs.plugins.annotations.ScanningMetaDataDeployer"/>
  <bean name="ScanningMetaDataDUFilter" class="org.jboss.deployers.vfs.plugins.annotations.ScanningDeploymentUnitFilter"/>

  <bean name="JBossCustomDeployDUFilter" class="org.jboss.deployers.vfs.spi.structure.helpers.VirtualFileDeploymentUnitFilter">
    <constructor>
      <parameter>
        <bean class="org.jboss.deployment.FileNameVirtualFileFilter">
          <constructor>
            <parameter>
              <map keyClass="java.lang.String" valueClass="java.util.Set">
                <entry>
                  <key>jbossweb.sar</key>
                  <value><null/></value>
                </entry>
                <entry>
                  <key>console-mgr.sar</key>
                  <value><null/></value>
                </entry>
                <entry>
                  <key>jbossws.sar</key>
                  <value><null/></value>
                </entry>
                <entry>
                  <key>jmx-remoting.sar</key>
                  <value><null/></value>
                </entry>
                <entry>
                  <key>jboss-local-jdbc.rar</key>
                  <value><null/></value>
                </entry>
                <entry>
                  <key>jboss-xa-jdbc.rar</key>
                  <value><null/></value>
                </entry>
                <entry>
                  <key>jms-ra.rar</key>
                  <value><null/></value>
                </entry>
                <entry>
                  <key>mail-ra.rar</key>
                  <value><null/></value>
                </entry>
                <entry>
                  <key>quartz-ra.rar</key>
                  <value><null/></value>
                </entry>
                <entry>
                  <key>jmx-console.war</key>
                  <value><null/></value>
                </entry>
              </map>
            </parameter>
          </constructor>
        </bean>
      </parameter>
    </constructor>
  </bean>

  <bean name="DeploymentProvidedDUFilter" class="org.jboss.deployment.DeploymentProvidedDeploymentUnitFilter" />
  
  <bean name="GenScanDeployer" class="org.jboss.deployers.vfs.plugins.annotations.FilteredAnnotationEnvironmentDeployer">
    <property name="filter">
      <bean class="org.jboss.deployment.ListDeploymentUnitFilter">
        <property name="filters">
          <list>
            <inject bean="DeploymentProvidedDUFilter" />
            <inject bean="JBossMetaDataDUFilter"/>
            <inject bean="ScanningMetaDataDUFilter"/>
            <inject bean="JBossCustomDeployDUFilter"/>
          </list>
        </property>
      </bean>
    </property>
  </bean>

   <bean name="AnnotationMetaDataDeployer" class="org.jboss.deployment.OptAnnotationMetaDataDeployer">
      <property name="metaDataCompleteIsDefault">false</property>
   </bean>

   <!-- Extract annotations into a standard metadata view
   <bean name="AnnotationMetaDataDeployer" class="org.jboss.deployment.AnnotationMetaDataDeployer">
      <property name="metaDataCompleteIsDefault">false</property>
   </bean>
   -->

	<!-- The schema location to JBossXB binding class mappings. We specify the dtd/xsd name
	of the schema as the location to work with legacy dtd as well as namespace based
	documents.
	-->
   <bean name="SchemaResolverConfig"
      class="org.jboss.xb.binding.sunday.unmarshalling.SchemaResolverConfig">
      
      <!-- schemaLocation to JBossXBuilder binding classes -->
      <property name="bindingClassesByLocations">
         <map keyClass="java.lang.String" valueClass="java.lang.String">
            <!-- EarMetaData -->
            <entry>
               <key>application</key>
               <value>org.jboss.metadata.ear.spec.Ear13DTDMetaData</value>
            </entry>
            <entry>
               <key>application_1_2.dtd</key>
               <value>org.jboss.metadata.ear.spec.Ear13DTDMetaData</value>
            </entry>
            <entry>
               <key>application_1_3.dtd</key>
               <value>org.jboss.metadata.ear.spec.Ear13DTDMetaData</value>
            </entry>
            <entry>
               <key>application_1_4.xsd</key>
               <value>org.jboss.metadata.ear.spec.Ear14MetaData</value>
            </entry>
            <entry>
               <key>application_5.xsd</key>
               <value>org.jboss.metadata.ear.spec.Ear50MetaData</value>
            </entry>
            <!-- JBossAppMetaData -->
            <entry>
               <key>jboss-app</key>
               <value>org.jboss.metadata.ear.jboss.JBoss50DTDAppMetaData</value>
            </entry>
            <entry>
               <key>jboss-app_3_0.dtd</key>
               <value>org.jboss.metadata.ear.jboss.JBoss50DTDAppMetaData</value>
            </entry>
            <entry>
               <key>jboss-app_3_2.dtd</key>
               <value>org.jboss.metadata.ear.jboss.JBoss50DTDAppMetaData</value>
            </entry>
            <entry>
               <key>jboss-app_4_0.dtd</key>
               <value>org.jboss.metadata.ear.jboss.JBoss50DTDAppMetaData</value>
            </entry>
            <entry>
               <key>jboss-app_4_2.dtd</key>
               <value>org.jboss.metadata.ear.jboss.JBoss50DTDAppMetaData</value>
            </entry>
            <entry>
               <key>jboss-app_5_0.dtd</key>
               <value>org.jboss.metadata.ear.jboss.JBoss50DTDAppMetaData</value>
            </entry>
            <entry>
               <key>jboss-app_5_0.xsd</key>
               <value>org.jboss.metadata.ear.jboss.JBoss50AppMetaData</value>
            </entry>

            <!-- ApplicationClientMetaData -->
            <entry>
               <key>application-client</key>
               <value>org.jboss.metadata.client.spec.ApplicationClient14DTDMetaData</value>
            </entry>
            <entry>
               <key>application-client_1_2.dtd</key>
               <value>org.jboss.metadata.client.spec.ApplicationClient14DTDMetaData</value>
            </entry>
            <entry>
               <key>application-client_1_3.dtd</key>
               <value>org.jboss.metadata.client.spec.ApplicationClient14DTDMetaData</value>
            </entry>
            <entry>
               <key>application-client_1_4.xsd</key>
               <value>org.jboss.metadata.client.spec.ApplicationClient14MetaData</value>
            </entry>
            <entry>
               <key>application-client_5.xsd</key>
               <value>org.jboss.metadata.client.spec.ApplicationClient5MetaData</value>
            </entry>
            <!-- ApplicationClientMetaData -->
            <entry>
               <key>jboss-client</key>
               <value>org.jboss.metadata.client.jboss.JBossClient5DTDMetaData</value>
            </entry>
            <entry>
               <key>jboss-client_3_0.dtd</key>
               <value>org.jboss.metadata.client.jboss.JBossClient5DTDMetaData</value>
            </entry>
            <entry>
               <key>jboss-client_3_2.dtd</key>
               <value>org.jboss.metadata.client.jboss.JBossClient5DTDMetaData</value>
            </entry>
            <entry>
               <key>jboss-client_4_0.dtd</key>
               <value>org.jboss.metadata.client.jboss.JBossClient5DTDMetaData</value>
            </entry>
            <entry>
               <key>jboss-client_4_2.dtd</key>
               <value>org.jboss.metadata.client.jboss.JBossClient5DTDMetaData</value>
            </entry>
            <entry>
               <key>jboss-client_5_0.dtd</key>
               <value>org.jboss.metadata.client.jboss.JBossClient5DTDMetaData</value>
            </entry>
            <entry>
               <key>jboss-client_5_0.xsd</key>
               <value>org.jboss.metadata.client.jboss.JBossClient5MetaData</value>
            </entry>
            
            <!-- EjbJarMetaData -->
            <entry>
               <key>ejb-jar</key>
               <value>org.jboss.metadata.ejb.spec.EjbJar20MetaData</value>
            </entry>
            <entry>
               <key>ejb-jar_1_1.dtd</key>
               <value>org.jboss.metadata.ejb.spec.EjbJar1xMetaData</value>
            </entry>
            <entry>
               <key>ejb-jar_2_0.dtd</key>
               <value>org.jboss.metadata.ejb.spec.EjbJar20MetaData</value>
            </entry>
            <entry>
               <key>ejb-jar_2_1.xsd</key>
               <value>org.jboss.metadata.ejb.spec.EjbJar21MetaData</value>
            </entry>
            <entry>
               <key>ejb-jar_3_0.xsd</key>
               <value>org.jboss.metadata.ejb.spec.EjbJar30MetaData</value>
            </entry>
            
            <!-- JBossMetaData -->
            <entry>
               <key>jboss</key>
               <value>org.jboss.metadata.ejb.jboss.JBoss50DTDMetaData</value>
            </entry>            
            <entry>
               <key>jboss_3_0.dtd</key>
               <value>org.jboss.metadata.ejb.jboss.JBoss50DTDMetaData</value>
            </entry>            
            <entry>
               <key>jboss_3_2.dtd</key>
               <value>org.jboss.metadata.ejb.jboss.JBoss50DTDMetaData</value>
            </entry>            
            <entry>
               <key>jboss_4_0.dtd</key>
               <value>org.jboss.metadata.ejb.jboss.JBoss50DTDMetaData</value>
            </entry>            
            <entry>
               <key>jboss_4_2.dtd</key>
               <value>org.jboss.metadata.ejb.jboss.JBoss50DTDMetaData</value>
            </entry>            
            <entry>
               <key>jboss_5_0.dtd</key>
               <value>org.jboss.metadata.ejb.jboss.JBoss50DTDMetaData</value>
            </entry>            
            <entry>
               <key>jboss_5_0.xsd</key>
               <value>org.jboss.metadata.ejb.jboss.JBoss50MetaData</value>
            </entry>
            
            <!-- WebMetaData -->
            <entry>
               <key>web-app</key>
               <value>org.jboss.metadata.web.spec.Web23MetaData</value>
            </entry>
            <entry>
               <key>web-app_2_2.dtd</key>
               <value>org.jboss.metadata.web.spec.Web23MetaData</value>
            </entry>
            <entry>
               <key>web-app_2_3.dtd</key>
               <value>org.jboss.metadata.web.spec.Web23MetaData</value>
            </entry>
            <entry>
               <key>web-app_2_4.xsd</key>
               <value>org.jboss.metadata.web.spec.Web24MetaData</value>
            </entry>
            <entry>
               <key>web-app_2_5.xsd</key>
               <value>org.jboss.metadata.web.spec.Web25MetaData</value>
            </entry>
            <!-- JBossWebMetaData -->
            <entry>
               <key>jboss-web</key>
               <value>org.jboss.metadata.web.jboss.JBoss50DTDWebMetaData</value>
            </entry>
            <entry>
               <key>jboss-web_3_0.dtd</key>
               <value>org.jboss.metadata.web.jboss.JBoss50DTDWebMetaData</value>
            </entry>
            <entry>
               <key>jboss-web_3_2.dtd</key>
               <value>org.jboss.metadata.web.jboss.JBoss50DTDWebMetaData</value>
            </entry>
            <entry>
               <key>jboss-web_4_0.dtd</key>
               <value>org.jboss.metadata.web.jboss.JBoss50DTDWebMetaData</value>
            </entry>
            <entry>
               <key>jboss-web_4_2.dtd</key>
               <value>org.jboss.metadata.web.jboss.JBoss50DTDWebMetaData</value>
            </entry>
            <entry>
               <key>jboss-web_5_0.dtd</key>
               <value>org.jboss.metadata.web.jboss.JBoss50DTDWebMetaData</value>
            </entry>
            <entry>
               <key>jboss-web_5_0.xsd</key>
               <value>org.jboss.metadata.web.jboss.JBoss50WebMetaData</value>
            </entry>
            <!-- PersistenceMetaData -->
            <entry>
               <key>persistence_1_0.xsd</key>
               <value>org.jboss.metadata.jpa.spec.PersistenceMetaData</value>
            </entry>
         </map>
      </property>
   </bean>
   
</deployment>
