[jboss-cvs] JBossAS SVN: r109429 - in projects/metadata/common/tags: jboss-metadata-common-2.0.0.Alpha22 and 2 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Nov 23 07:33:27 EST 2010


Author: jaikiran
Date: 2010-11-23 07:33:26 -0500 (Tue, 23 Nov 2010)
New Revision: 109429

Added:
   projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/
   projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/pom.xml
   projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/AbstractResourceProcessor.java
   projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/ResourceClassProcessor.java
   projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/ResourceFieldProcessor.java
   projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/ResourceMethodProcessor.java
Removed:
   projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/pom.xml
   projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/AbstractResourceProcessor.java
   projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/ResourceClassProcessor.java
   projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/ResourceFieldProcessor.java
   projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/ResourceMethodProcessor.java
Modified:
   projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/.classpath
   projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/.project
   projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/.settings/org.eclipse.jdt.core.prefs
Log:
[maven-release-plugin]  copy for tag jboss-metadata-common-2.0.0.Alpha22

Copied: projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22 (from rev 109417, projects/metadata/common/trunk)

Modified: projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/.classpath
===================================================================
--- projects/metadata/common/trunk/.classpath	2010-11-23 07:28:11 UTC (rev 109417)
+++ projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/.classpath	2010-11-23 12:33:26 UTC (rev 109429)
@@ -1,43 +1,10 @@
-<classpath>
-  <classpathentry kind="src" path="src/test/java" output="target/tests-classes" including="**/*.java"/>
-  <classpathentry kind="src" path="src/test/resources" output="target/tests-classes" excluding="**/*.java"/>
-  <classpathentry kind="src" path="src/main/java" including="**/*.java"/>
-  <classpathentry kind="src" path="src/main/resources" excluding="**/*.java"/>
-  <classpathentry kind="output" path="target/classes"/>
-  <classpathentry kind="var" path="M2_REPO/javax/activation/activation/1.1.1/activation-1.1.1.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/apache/ant/ant/1.7.0/ant-1.7.0.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/apache/ant/ant-junit/1.7.0/ant-junit-1.7.0.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/apache/ant/ant-launcher/1.7.0/ant-launcher-1.7.0.jar"/>
-  <classpathentry kind="var" path="M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1.jar" sourcepath="M2_REPO/dom4j/dom4j/1.6.1/dom4j-1.6.1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/wutka-dtdparser/dtdparser121/1.2.1/dtdparser121-1.2.1.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/hibernate/ejb3-persistence/1.0.2.GA/ejb3-persistence-1.0.2.GA.jar" sourcepath="M2_REPO/org/hibernate/ejb3-persistence/1.0.2.GA/ejb3-persistence-1.0.2.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/gnu-getopt/getopt/1.0.13/getopt-1.0.13.jar"/>
-  <classpathentry kind="var" path="M2_REPO/sun-jaxb/jaxb-api/2.1.4/jaxb-api-2.1.4.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-common-core/2.2.14.GA/jboss-common-core-2.2.14.GA.jar" sourcepath="M2_REPO/org/jboss/jboss-common-core/2.2.14.GA/jboss-common-core-2.2.14.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-ejb-api/3.0.0.GA/jboss-ejb-api-3.0.0.GA.jar" sourcepath="M2_REPO/org/jboss/javaee/jboss-ejb-api/3.0.0.GA/jboss-ejb-api-3.0.0.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-jms-api/1.1.0.GA/jboss-jms-api-1.1.0.GA.jar" sourcepath="M2_REPO/org/jboss/javaee/jboss-jms-api/1.1.0.GA/jboss-jms-api-1.1.0.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/logging/jboss-logging-log4j/2.0.5.GA/jboss-logging-log4j-2.0.5.GA.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/logging/jboss-logging-spi/2.0.5.GA/jboss-logging-spi-2.0.5.GA.jar" sourcepath="M2_REPO/org/jboss/logging/jboss-logging-spi/2.0.5.GA/jboss-logging-spi-2.0.5.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-mdr/2.0.0.GA/jboss-mdr-2.0.0.GA.jar"/>
-  <classpathentry kind="var" path="M2_REPO/jboss/profiler/jvmti/jboss-profiler-jvmti/1.0.0.CR5/jboss-profiler-jvmti-1.0.0.CR5.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-reflect/2.0.2.GA/jboss-reflect-2.0.2.GA.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/security/jboss-security-spi/2.0.3.SP1/jboss-security-spi-2.0.3.SP1.jar" sourcepath="M2_REPO/org/jboss/security/jboss-security-spi/2.0.3.SP1/jboss-security-spi-2.0.3.SP1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/jbossas/jboss-server-manager/1.0.2.GA/jboss-server-manager-1.0.2.GA.jar" sourcepath="M2_REPO/org/jboss/jbossas/jboss-server-manager/1.0.2.GA/jboss-server-manager-1.0.2.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/test/jboss-test/1.1.4.GA/jboss-test-1.1.4.GA.jar" sourcepath="M2_REPO/org/jboss/test/jboss-test/1.1.4.GA/jboss-test-1.1.4.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-transaction-api/1.0.1.GA/jboss-transaction-api-1.0.1.GA.jar" sourcepath="M2_REPO/org/jboss/javaee/jboss-transaction-api/1.0.1.GA/jboss-transaction-api-1.0.1.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-vfs/2.0.0.CR1/jboss-vfs-2.0.0.CR1.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/security/jbosssx-client/2.0.3.SP1/jbosssx-client-2.0.3.SP1.jar" sourcepath="M2_REPO/org/jboss/security/jbosssx-client/2.0.3.SP1/jbosssx-client-2.0.3.SP1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ws/native/jbossws-native-jaxrpc/3.0.4.GA/jbossws-native-jaxrpc-3.0.4.GA.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ws/native/jbossws-native-saaj/3.0.4.GA/jbossws-native-saaj-3.0.4.GA.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/jbossxb/2.0.2.Beta1/jbossxb-2.0.2.Beta1.jar" sourcepath="M2_REPO/org/jboss/jbossxb/2.0.2.Beta1/jbossxb-2.0.2.Beta1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/naming/jnp-client/5.0.1.GA/jnp-client-5.0.1.GA.jar"/>
-  <classpathentry kind="var" path="M2_REPO/junit/junit/4.4/junit-4.4.jar"/>
-  <classpathentry kind="var" path="M2_REPO/apache-log4j/log4j/1.2.14/log4j-1.2.14.jar"/>
-  <classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14.jar" sourcepath="M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/apache-xerces/xercesImpl/2.9.1/xercesImpl-2.9.1.jar"/>
-  <classpathentry kind="var" path="M2_REPO/apache-xerces/xml-apis/2.9.1/xml-apis-2.9.1.jar"/>
-  <classpathentry kind="var" path="M2_REPO/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ws/jbossws-spi/1.4.0.CR3/jbossws-spi-1.4.0.CR3.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-vfs/3.0.0.CR1/jboss-vfs-3.0.0.CR1.jar"/>
-  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
-</classpath>
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" output="target/classes" path="src/main/java"/>
+	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
+	<classpathentry kind="src" output="target/tests-classes" path="src/test/java"/>
+	<classpathentry excluding="**" kind="src" output="target/tests-classes" path="src/test/resources"/>
+	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

Modified: projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/.project
===================================================================
--- projects/metadata/common/trunk/.project	2010-11-23 07:28:11 UTC (rev 109417)
+++ projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/.project	2010-11-23 12:33:26 UTC (rev 109429)
@@ -1,13 +1,23 @@
-<projectDescription>
-  <name>metadata-common</name>
-  <comment>The common JavaEE metadata classes</comment>
-  <projects/>
-  <buildSpec>
-    <buildCommand>
-      <name>org.eclipse.jdt.core.javabuilder</name>
-    </buildCommand>
-  </buildSpec>
-  <natures>
-    <nature>org.eclipse.jdt.core.javanature</nature>
-  </natures>
-</projectDescription>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>jboss-metadata-common</name>
+	<comment>The common JavaEE metadata classes</comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.maven.ide.eclipse.maven2Builder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.maven.ide.eclipse.maven2Nature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>

Modified: projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- projects/metadata/common/trunk/.settings/org.eclipse.jdt.core.prefs	2010-11-23 07:28:11 UTC (rev 109417)
+++ projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/.settings/org.eclipse.jdt.core.prefs	2010-11-23 12:33:26 UTC (rev 109429)
@@ -1,5 +1,6 @@
-#Tue Jun 16 22:19:03 CEST 2009
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.source=1.5
+#Wed Sep 08 19:54:09 IST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
+org.eclipse.jdt.core.compiler.source=1.5

Deleted: projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/pom.xml
===================================================================
--- projects/metadata/common/trunk/pom.xml	2010-11-23 07:28:11 UTC (rev 109417)
+++ projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/pom.xml	2010-11-23 12:33:26 UTC (rev 109429)
@@ -1,317 +0,0 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-  <modelVersion>4.0.0</modelVersion>
-  <parent>
-    <groupId>org.jboss</groupId>
-    <artifactId>jboss-parent</artifactId>
-    <version>4.0.CR1</version>
-  </parent>
-  <groupId>org.jboss.metadata</groupId>
-  <artifactId>jboss-metadata-common</artifactId>
-  <packaging>jar</packaging>
-  <version>2.0.0.Alpha22-SNAPSHOT</version>
-  <name>JBoss Metadata Common</name>
-  <url>http://www.jboss.org</url>
-  <description>The common JavaEE metadata classes</description>
-  <scm>
-    <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/metadata/common/trunk</connection>
-    <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/metadata/common/trunk</developerConnection>
-  </scm>
-
-  <distributionManagement>
-    <repository>
-      <id>jboss-releases-repository</id>
-      <name>JBoss Releases Repository</name>
-      <url>https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/</url>
-    </repository>
-    <snapshotRepository>
-      <id>jboss-snapshots-repository</id>
-      <name>JBoss Snapshots Repository</name>
-      <url>https://repository.jboss.org/nexus/content/repositories/snapshots/</url>
-    </snapshotRepository>
-  </distributionManagement>
-
-  <build>
-    <outputDirectory>${profile.outputDirectory}</outputDirectory>
-    <testOutputDirectory>${profile.testOutputDirectory}</testOutputDirectory>
-    <plugins>
-      <plugin>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <version>2.0.2.SP1</version>
-        <configuration>
-          <showDeprecation>false</showDeprecation>
-          <compilerArguments>
-            <endorseddirs>${project.build.directory}/endorsed</endorseddirs>
-          </compilerArguments>
-          <source>1.6</source>
-          <target>1.6</target>
-        </configuration>
-      </plugin>
-      <plugin>
-        <artifactId>maven-dependency-plugin</artifactId>
-        <executions>
-          <execution>
-            <phase>generate-sources</phase>
-            <goals>
-              <goal>copy</goal>
-            </goals>
-            <configuration>
-              <artifactItems>
-                <artifactItem>
-                  <groupId>org.jboss.spec.javax.xml.ws</groupId>
-                  <artifactId>jboss-jaxws-api_2.2_spec</artifactId>
-                  <type>jar</type>
-                  <overWrite>true</overWrite>
-                  <outputDirectory>${project.build.directory}/endorsed</outputDirectory>
-                </artifactItem>
-                <!-- org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec needs to be
-                in endorsed because Java SE too ships javax.annotation.Resource which doesn't have the
-                lookup() method -->
-                <artifactItem>
-                  <groupId>org.jboss.spec.javax.annotation</groupId>
-                  <artifactId>jboss-annotations-api_1.1_spec</artifactId>
-                  <type>jar</type>
-                  <overWrite>true</overWrite>
-                  <outputDirectory>${project.build.directory}/endorsed</outputDirectory>
-                </artifactItem>
-              </artifactItems>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-surefire-plugin</artifactId>
-        <version>2.4.3</version>
-        <configuration>
-          <printSummary>true</printSummary>
-          <disableXmlReport>false</disableXmlReport>
-          <redirectTestOutputToFile>true</redirectTestOutputToFile>
-           <testFailureIgnore>false</testFailureIgnore>
-          <includes>
-            <include>**/*TestCase.java</include>
-          </includes>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-jar-plugin</artifactId>
-        <executions>
-          <execution>
-            <goals>
-              <goal>test-jar</goal>
-            </goals>
-            <configuration>
-               <excludes>
-                  <exclude>org/jboss/test/metadata/javaee/*TestCase.class</exclude>
-                  <exclude>org/jboss/test/metadata/javaee/*TestCase$*.class</exclude>
-                  <exclude>org/jboss/test/metadata/javaee/*.xml</exclude>
-               </excludes>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-source-plugin</artifactId>
-        <executions>
-          <execution>
-            <goals>
-              <goal>test-jar</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
-            <artifactId>maven-enforcer-plugin</artifactId>
-            <version>1.0-beta-1</version>
-            <executions>
-                <!--  Banned dependencies -->
-                <execution>
-                    <id>enforce-banned-dependencies</id>
-                    <goals>
-                      <goal>enforce</goal>
-                    </goals>
-                </execution>
-            </executions>
-            <configuration>
-                <rules>
-                    <bannedDependencies>
-                        <excludes>
-                            <!-- JBMETA-262  Use org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec -->
-                            <exclude>org.jboss.ejb3:jboss-ejb3-api</exclude>
-                            <exclude>org.jboss.javaee:jboss-ejb-api_3.1</exclude>
-                        </excludes>
-                    </bannedDependencies>
-                </rules>
-            </configuration>
-      </plugin>
-    </plugins>
-  </build>
-
-  <repositories>
-    <repository>
-      <id>repository.jboss.org</id>
-      <name>JBoss Repository</name>
-      <layout>default</layout>
-      <url>http://repository.jboss.org/maven2/</url>
-      <snapshots>
-        <enabled>false</enabled>
-      </snapshots>
-    </repository>
-    <repository>
-      <id>snapshots.jboss.org</id>
-      <name>JBoss Snapshot Repository</name>
-      <layout>default</layout>
-      <url>http://snapshots.jboss.org/maven2/</url>
-      <releases>
-        <enabled>false</enabled>
-      </releases>
-      <snapshots>
-        <enabled>true</enabled>
-      </snapshots>
-    </repository>
-  </repositories>
-
-  <!-- 
-    Eclipse settings have been removed from parent. This needs to be
-    done via an eclipse profile.
-    http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085896#4085896 
-    -->
-  <profiles>
-    <profile>
-      <id>default</id>
-      <activation>
-        <activeByDefault>true</activeByDefault>
-      </activation>
-      <properties>
-        <profile.outputDirectory>target/classes</profile.outputDirectory>
-        <profile.testOutputDirectory>target/tests-classes</profile.testOutputDirectory>
-      </properties>
-    </profile>
-    
-    <profile>
-      <id>eclipse</id>
-      <properties>
-        <profile.outputDirectory>eclipse-target/classes</profile.outputDirectory>
-        <profile.testOutputDirectory>eclipse-target/tests-classes</profile.testOutputDirectory>
-      </properties>
-    </profile>
-  </profiles>
-
-  <!-- Compile Dependencies -->
-  <dependencies>
-
-    <dependency>
-      <groupId>org.jboss.spec.javax.annotation</groupId>
-      <artifactId>jboss-annotations-api_1.1_spec</artifactId>
-      <version>1.0.0.Final</version>
-    </dependency>
-
-    <dependency>
-      <groupId>org.jboss.spec.javax.xml.ws</groupId>
-      <artifactId>jboss-jaxws-api_2.2_spec</artifactId>
-      <version>1.0.0.Final</version>
-    </dependency>
-
-    <dependency>
-      <groupId>org.jboss.logging</groupId>
-      <artifactId>jboss-logging-spi</artifactId>
-      <version>2.2.0.CR1</version>
-    </dependency>
-
-    <dependency>
-      <groupId>org.jboss.logging</groupId>
-      <artifactId>jboss-logging-log4j</artifactId>
-      <version>2.2.0.CR1</version>
-      <scope>test</scope>
-    </dependency>
-
-    <dependency>
-      <groupId>org.jboss</groupId>
-      <artifactId>jboss-common-core</artifactId>
-      <version>2.2.14.GA</version>
-    </dependency>
-
-    
-    <dependency>
-      <groupId>org.jboss.spec.javax.ejb</groupId>
-      <artifactId>jboss-ejb-api_3.1_spec</artifactId>
-      <version>1.0.0.CR2</version>
-    </dependency>
-    
-
-    <dependency>
-      <groupId>org.hibernate</groupId>
-      <artifactId>ejb3-persistence</artifactId>
-      <version>1.0.2.GA</version>
-    </dependency>
-
-    <dependency>
-      <groupId>org.jboss.javaee</groupId>
-      <artifactId>jboss-jms-api</artifactId>
-      <version>1.1.0.GA</version>
-    </dependency>
-
-    <dependency>
-      <groupId>org.jboss.ws</groupId>
-      <artifactId>jbossws-spi</artifactId>
-      <version>1.4.1.CR1</version>
-    </dependency>
-
-    <dependency>
-      <groupId>org.jboss</groupId>
-      <artifactId>jbossxb</artifactId>
-      <version>2.0.2.Beta1</version>
-      <exclusions>
-        <exclusion>
-          <groupId>jboss</groupId>
-          <artifactId>jboss-common-logging-spi</artifactId>
-        </exclusion>
-        <exclusion>
-          <groupId>javax.xml.bind</groupId>
-          <artifactId>jaxb-api</artifactId>
-        </exclusion>
-      </exclusions>
-    </dependency>
-
-    <dependency>
-      <groupId>org.jboss</groupId>
-      <artifactId>jboss-vfs</artifactId>
-      <version>3.0.0.CR1</version>
-    </dependency>
-
-    <dependency>
-      <groupId>org.jboss</groupId>
-      <artifactId>jboss-mdr</artifactId>
-      <version>2.0.0.GA</version>
-    </dependency>
-
-    <dependency>
-      <groupId>sun-jaxb</groupId>
-      <artifactId>jaxb-api</artifactId>
-      <version>2.1.4</version>
-    </dependency>
-
-    <dependency>
-      <groupId>apache-xerces</groupId>
-      <artifactId>xml-apis</artifactId>
-      <version>2.9.1</version>
-    </dependency>
-
-    <!-- Test Dependencies -->
-    <dependency>
-      <groupId>junit</groupId>
-      <artifactId>junit</artifactId>
-      <version>4.4</version>
-      <scope>test</scope>
-    </dependency>
-
-    <dependency>
-      <groupId>org.jboss.test</groupId>
-      <artifactId>jboss-test</artifactId>
-      <version>1.1.4.GA</version>
-      <scope>test</scope>
-    </dependency>
-  </dependencies>
-
-</project>

Copied: projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/pom.xml (from rev 109428, projects/metadata/common/trunk/pom.xml)
===================================================================
--- projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/pom.xml	                        (rev 0)
+++ projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/pom.xml	2010-11-23 12:33:26 UTC (rev 109429)
@@ -0,0 +1,317 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <groupId>org.jboss</groupId>
+    <artifactId>jboss-parent</artifactId>
+    <version>4.0.CR1</version>
+  </parent>
+  <groupId>org.jboss.metadata</groupId>
+  <artifactId>jboss-metadata-common</artifactId>
+  <packaging>jar</packaging>
+  <version>2.0.0.Alpha22</version>
+  <name>JBoss Metadata Common</name>
+  <url>http://www.jboss.org</url>
+  <description>The common JavaEE metadata classes</description>
+  <scm>
+    <connection>scm:svn:http://anonsvn.jboss.org/repos/jbossas/projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22</connection>
+    <developerConnection>scm:svn:https://svn.jboss.org/repos/jbossas/projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22</developerConnection>
+  </scm>
+
+  <distributionManagement>
+    <repository>
+      <id>jboss-releases-repository</id>
+      <name>JBoss Releases Repository</name>
+      <url>https://repository.jboss.org/nexus/service/local/staging/deploy/maven2/</url>
+    </repository>
+    <snapshotRepository>
+      <id>jboss-snapshots-repository</id>
+      <name>JBoss Snapshots Repository</name>
+      <url>https://repository.jboss.org/nexus/content/repositories/snapshots/</url>
+    </snapshotRepository>
+  </distributionManagement>
+
+  <build>
+    <outputDirectory>${profile.outputDirectory}</outputDirectory>
+    <testOutputDirectory>${profile.testOutputDirectory}</testOutputDirectory>
+    <plugins>
+      <plugin>
+        <artifactId>maven-compiler-plugin</artifactId>
+        <version>2.0.2.SP1</version>
+        <configuration>
+          <showDeprecation>false</showDeprecation>
+          <compilerArguments>
+            <endorseddirs>${project.build.directory}/endorsed</endorseddirs>
+          </compilerArguments>
+          <source>1.6</source>
+          <target>1.6</target>
+        </configuration>
+      </plugin>
+      <plugin>
+        <artifactId>maven-dependency-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>generate-sources</phase>
+            <goals>
+              <goal>copy</goal>
+            </goals>
+            <configuration>
+              <artifactItems>
+                <artifactItem>
+                  <groupId>org.jboss.spec.javax.xml.ws</groupId>
+                  <artifactId>jboss-jaxws-api_2.2_spec</artifactId>
+                  <type>jar</type>
+                  <overWrite>true</overWrite>
+                  <outputDirectory>${project.build.directory}/endorsed</outputDirectory>
+                </artifactItem>
+                <!-- org.jboss.spec.javax.annotation:jboss-annotations-api_1.1_spec needs to be
+                in endorsed because Java SE too ships javax.annotation.Resource which doesn't have the
+                lookup() method -->
+                <artifactItem>
+                  <groupId>org.jboss.spec.javax.annotation</groupId>
+                  <artifactId>jboss-annotations-api_1.1_spec</artifactId>
+                  <type>jar</type>
+                  <overWrite>true</overWrite>
+                  <outputDirectory>${project.build.directory}/endorsed</outputDirectory>
+                </artifactItem>
+              </artifactItems>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <version>2.4.3</version>
+        <configuration>
+          <printSummary>true</printSummary>
+          <disableXmlReport>false</disableXmlReport>
+          <redirectTestOutputToFile>true</redirectTestOutputToFile>
+           <testFailureIgnore>false</testFailureIgnore>
+          <includes>
+            <include>**/*TestCase.java</include>
+          </includes>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
+        <executions>
+          <execution>
+            <goals>
+              <goal>test-jar</goal>
+            </goals>
+            <configuration>
+               <excludes>
+                  <exclude>org/jboss/test/metadata/javaee/*TestCase.class</exclude>
+                  <exclude>org/jboss/test/metadata/javaee/*TestCase$*.class</exclude>
+                  <exclude>org/jboss/test/metadata/javaee/*.xml</exclude>
+               </excludes>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-source-plugin</artifactId>
+        <executions>
+          <execution>
+            <goals>
+              <goal>test-jar</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+            <artifactId>maven-enforcer-plugin</artifactId>
+            <version>1.0-beta-1</version>
+            <executions>
+                <!--  Banned dependencies -->
+                <execution>
+                    <id>enforce-banned-dependencies</id>
+                    <goals>
+                      <goal>enforce</goal>
+                    </goals>
+                </execution>
+            </executions>
+            <configuration>
+                <rules>
+                    <bannedDependencies>
+                        <excludes>
+                            <!-- JBMETA-262  Use org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec -->
+                            <exclude>org.jboss.ejb3:jboss-ejb3-api</exclude>
+                            <exclude>org.jboss.javaee:jboss-ejb-api_3.1</exclude>
+                        </excludes>
+                    </bannedDependencies>
+                </rules>
+            </configuration>
+      </plugin>
+    </plugins>
+  </build>
+
+  <repositories>
+    <repository>
+      <id>repository.jboss.org</id>
+      <name>JBoss Repository</name>
+      <layout>default</layout>
+      <url>http://repository.jboss.org/maven2/</url>
+      <snapshots>
+        <enabled>false</enabled>
+      </snapshots>
+    </repository>
+    <repository>
+      <id>snapshots.jboss.org</id>
+      <name>JBoss Snapshot Repository</name>
+      <layout>default</layout>
+      <url>http://snapshots.jboss.org/maven2/</url>
+      <releases>
+        <enabled>false</enabled>
+      </releases>
+      <snapshots>
+        <enabled>true</enabled>
+      </snapshots>
+    </repository>
+  </repositories>
+
+  <!-- 
+    Eclipse settings have been removed from parent. This needs to be
+    done via an eclipse profile.
+    http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085896#4085896 
+    -->
+  <profiles>
+    <profile>
+      <id>default</id>
+      <activation>
+        <activeByDefault>true</activeByDefault>
+      </activation>
+      <properties>
+        <profile.outputDirectory>target/classes</profile.outputDirectory>
+        <profile.testOutputDirectory>target/tests-classes</profile.testOutputDirectory>
+      </properties>
+    </profile>
+    
+    <profile>
+      <id>eclipse</id>
+      <properties>
+        <profile.outputDirectory>eclipse-target/classes</profile.outputDirectory>
+        <profile.testOutputDirectory>eclipse-target/tests-classes</profile.testOutputDirectory>
+      </properties>
+    </profile>
+  </profiles>
+
+  <!-- Compile Dependencies -->
+  <dependencies>
+
+    <dependency>
+      <groupId>org.jboss.spec.javax.annotation</groupId>
+      <artifactId>jboss-annotations-api_1.1_spec</artifactId>
+      <version>1.0.0.Final</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.jboss.spec.javax.xml.ws</groupId>
+      <artifactId>jboss-jaxws-api_2.2_spec</artifactId>
+      <version>1.0.0.Final</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.jboss.logging</groupId>
+      <artifactId>jboss-logging-spi</artifactId>
+      <version>2.2.0.CR1</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.jboss.logging</groupId>
+      <artifactId>jboss-logging-log4j</artifactId>
+      <version>2.2.0.CR1</version>
+      <scope>test</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-common-core</artifactId>
+      <version>2.2.14.GA</version>
+    </dependency>
+
+    
+    <dependency>
+      <groupId>org.jboss.spec.javax.ejb</groupId>
+      <artifactId>jboss-ejb-api_3.1_spec</artifactId>
+      <version>1.0.0.CR2</version>
+    </dependency>
+    
+
+    <dependency>
+      <groupId>org.hibernate</groupId>
+      <artifactId>ejb3-persistence</artifactId>
+      <version>1.0.2.GA</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.jboss.javaee</groupId>
+      <artifactId>jboss-jms-api</artifactId>
+      <version>1.1.0.GA</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.jboss.ws</groupId>
+      <artifactId>jbossws-spi</artifactId>
+      <version>1.4.1.CR1</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jbossxb</artifactId>
+      <version>2.0.2.Beta1</version>
+      <exclusions>
+        <exclusion>
+          <groupId>jboss</groupId>
+          <artifactId>jboss-common-logging-spi</artifactId>
+        </exclusion>
+        <exclusion>
+          <groupId>javax.xml.bind</groupId>
+          <artifactId>jaxb-api</artifactId>
+        </exclusion>
+      </exclusions>
+    </dependency>
+
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-vfs</artifactId>
+      <version>3.0.0.CR1</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-mdr</artifactId>
+      <version>2.0.0.GA</version>
+    </dependency>
+
+    <dependency>
+      <groupId>sun-jaxb</groupId>
+      <artifactId>jaxb-api</artifactId>
+      <version>2.1.4</version>
+    </dependency>
+
+    <dependency>
+      <groupId>apache-xerces</groupId>
+      <artifactId>xml-apis</artifactId>
+      <version>2.9.1</version>
+    </dependency>
+
+    <!-- Test Dependencies -->
+    <dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>4.4</version>
+      <scope>test</scope>
+    </dependency>
+
+    <dependency>
+      <groupId>org.jboss.test</groupId>
+      <artifactId>jboss-test</artifactId>
+      <version>1.1.4.GA</version>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+</project>

Deleted: projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/AbstractResourceProcessor.java
===================================================================
--- projects/metadata/common/trunk/src/main/java/org/jboss/metadata/annotation/creator/AbstractResourceProcessor.java	2010-11-23 07:28:11 UTC (rev 109417)
+++ projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/AbstractResourceProcessor.java	2010-11-23 12:33:26 UTC (rev 109429)
@@ -1,412 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.annotation.creator;
-
-import java.lang.annotation.Annotation;
-import java.lang.reflect.AnnotatedElement;
-import java.util.Collection;
-import java.util.HashSet;
-import java.util.Set;
-
-import javax.annotation.Resource;
-import javax.annotation.Resource.AuthenticationType;
-
-import org.jboss.annotation.javaee.Descriptions;
-import org.jboss.logging.Logger;
-import org.jboss.metadata.annotation.finder.AnnotationFinder;
-import org.jboss.metadata.javaee.spec.DescriptionGroupMetaData;
-import org.jboss.metadata.javaee.spec.EnvironmentEntriesMetaData;
-import org.jboss.metadata.javaee.spec.EnvironmentEntryMetaData;
-import org.jboss.metadata.javaee.spec.MessageDestinationReferenceMetaData;
-import org.jboss.metadata.javaee.spec.MessageDestinationReferencesMetaData;
-import org.jboss.metadata.javaee.spec.RemoteEnvironmentRefsGroupMetaData;
-import org.jboss.metadata.javaee.spec.ResourceAuthorityType;
-import org.jboss.metadata.javaee.spec.ResourceEnvironmentReferenceMetaData;
-import org.jboss.metadata.javaee.spec.ResourceEnvironmentReferencesMetaData;
-import org.jboss.metadata.javaee.spec.ResourceInjectionTargetMetaData;
-import org.jboss.metadata.javaee.spec.ResourceReferenceMetaData;
-import org.jboss.metadata.javaee.spec.ResourceReferencesMetaData;
-import org.jboss.metadata.javaee.spec.ServiceReferenceMetaData;
-import org.jboss.metadata.javaee.spec.ServiceReferencesMetaData;
-
-/**
- * Base processor for @Resource annotations. This works on the
- * MutableRemoteEnvironment since a @Resource produces several different types
- * of metadata based on the java type of the annotated element. From the common
- * annotations 1.0 spec, table 2-4
- * 
-java type            metadata type
-java.lang.String     env-entry
-java.lang.Character  env-entry
-java.lang.Integer    env-entry
-java.lang.Boolean    env-entry
-java.lang.Double     env-entry
-java.lang.Byte       env-entry
-java.lang.Short      env-entry
-java.lang.Long       env-entry
-java.lang.Float      env-entry
-javax.xml.rpc.Service service-ref
-javax.xml.ws.Service service-ref
-javax.jws.WebService service-ref
-javax.sql.DataSource resource-ref
-javax.jms.ConnectionFactory   resource-ref
-javax.jms.QueueConnectionFactory resource-ref
-javax.jms.TopicConnectionFactory resource-ref
-javax.mail.Session   resource-ref
-java.net.URL         resource-ref
-javax.resource.cci.ConnectionFactory   resource-ref
-org.omg.CORBA_2_3.ORB   resource-ref
-Any CF resource adapter resource-ref
-javax.jms.Queue      message-destination-ref
-javax.jms.Topic      message-destination-ref
-javax.resource.cci.InteractionSpec  resource-env-ref
-javax.transaction.UserTransaction   resource-env-ref
-Everything else      resource-env-ref
-
- * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
- * @author Scott.Stark at jboss.org
- * @version $Revision: 76756 $
- */
-public abstract class AbstractResourceProcessor<E extends AnnotatedElement>
-   extends AbstractInjectionTargetProcessor<E>
-{
-   private static Logger log = Logger.getLogger(AbstractResourceProcessor.class);
-   private static final Set<String> envEntryTypes = new HashSet<String>();
-   private static final Set<String> serviceRefTypes = new HashSet<String>();
-   private static final Set<String> resourceRefTypes = new HashSet<String>();
-   private static final Set<String> messageDestRefRefTypes = new HashSet<String>();
-   static
-   {
-      envEntryTypes.add("java.lang.String");
-      envEntryTypes.add("java.lang.Character");
-      envEntryTypes.add("java.lang.Integer");
-      envEntryTypes.add("java.lang.Boolean");
-      envEntryTypes.add("java.lang.Double");
-      envEntryTypes.add("java.lang.Byte");
-      envEntryTypes.add("java.lang.Short");
-      envEntryTypes.add("java.lang.Float");
-      envEntryTypes.add("java.lang.Long");
-      envEntryTypes.add("char");
-      envEntryTypes.add("int");
-      envEntryTypes.add("boolean");
-      envEntryTypes.add("double");
-      envEntryTypes.add("byte");
-      envEntryTypes.add("short");
-      envEntryTypes.add("float");
-      envEntryTypes.add("long");
-      serviceRefTypes.add("javax.xml.rpc.Service");
-      serviceRefTypes.add("javax.xml.ws.Service");
-      serviceRefTypes.add("javax.jws.WebService");
-      resourceRefTypes.add("javax.sql.DataSource");
-      resourceRefTypes.add("javax.jms.ConnectionFactory");
-      resourceRefTypes.add("javax.jms.QueueConnectionFactory");
-      resourceRefTypes.add("javax.jms.TopicConnectionFactory");
-      resourceRefTypes.add("javax.mail.Session");
-      resourceRefTypes.add("java.net.URL");
-      resourceRefTypes.add("javax.resource.cci.ConnectionFactory");
-      resourceRefTypes.add("org.omg.CORBA_2_3.ORB");
-      messageDestRefRefTypes.add("javax.jms.Queue");
-      messageDestRefRefTypes.add("javax.jms.Topic");
-      messageDestRefRefTypes.add("javax.jms.TemporaryQueue");
-      messageDestRefRefTypes.add("javax.jms.TemporaryTopic");
-   }
-
-   public static boolean isEnvEntry(String type)
-   {
-      return envEntryTypes.contains(type);
-   }
-   public static boolean isServiceRef(String type)
-   {
-      return serviceRefTypes.contains(type);
-   }
-   public static boolean isResourceRef(String type)
-   {
-      return resourceRefTypes.contains(type);
-   }
-   public static boolean isMessageDestinationRef(String type)
-   {
-      return messageDestRefRefTypes.contains(type);
-   }
-
-   protected AbstractResourceProcessor(AnnotationFinder<AnnotatedElement> finder)
-   {
-      super(finder);
-   }
-   
-   public void process(RemoteEnvironmentRefsGroupMetaData refs, E element)
-   {
-      Resource annotation = finder.getAnnotation(element, Resource.class);
-      if(annotation == null)
-         return;
-      process(refs, element, annotation);
-   }
-   protected void process(RemoteEnvironmentRefsGroupMetaData refs, E element, Resource annotation)
-   {
-      boolean trace = log.isTraceEnabled();
-      String type = annotation.type().getName();
-      if(type.equals("java.lang.Object"))
-         type = getType(element);
-      if(trace)
-         log.trace("process: "+annotation+", type="+type);
-      if(isEnvEntry(type))
-      {
-         EnvironmentEntriesMetaData env = refs.getEnvironmentEntries();
-         if(env == null)
-         {
-            env = new EnvironmentEntriesMetaData();
-            refs.setEnvironmentEntries(env);
-         }
-         EnvironmentEntryMetaData entry = createEntry(annotation, element);
-         addReference(env, entry);
-         if(trace)
-            log.trace("created env-entry: "+entry);
-      }
-      else if(isServiceRef(type))
-      {
-         ServiceReferencesMetaData srefs = refs.getServiceReferences();
-         if(srefs == null)
-         {
-            srefs = new ServiceReferencesMetaData();
-            refs.setServiceReferences(srefs);
-         }
-         ServiceReferenceMetaData ref = createServiceRef(annotation, element);
-         addReference(srefs, ref);
-         if(trace)
-            log.trace("created service-ref: "+ref);
-      }
-      else if(isResourceRef(type))
-      {
-         ResourceReferencesMetaData resRefs = refs.getResourceReferences();
-         if(resRefs == null)
-         {
-            resRefs = new ResourceReferencesMetaData();
-            refs.setResourceReferences(resRefs);
-         }
-         ResourceReferenceMetaData ref = createResourceRef(annotation, element);
-         addReference(resRefs, ref);
-         if(trace)
-            log.trace("created resource-ref: "+ref);
-      }
-      else if(isMessageDestinationRef(type))
-      {
-         MessageDestinationReferencesMetaData mrefs = refs.getMessageDestinationReferences();
-         if(mrefs == null)
-         {
-            mrefs = new MessageDestinationReferencesMetaData();
-            refs.setMessageDestinationReferences(mrefs);
-         }
-         MessageDestinationReferenceMetaData ref = createMessageRef(annotation, element);
-         addReference(mrefs, ref);
-         if(trace)
-            log.trace("created message-destination-ref: "+ref);
-      }
-      else
-      {
-         ResourceEnvironmentReferencesMetaData resRefs = refs.getResourceEnvironmentReferences();
-         if(resRefs == null)
-         {
-            resRefs = new ResourceEnvironmentReferencesMetaData();
-            refs.setResourceEnvironmentReferences(resRefs);
-         }
-         ResourceEnvironmentReferenceMetaData ref = createResourceEnvRef(annotation, element);
-         addReference(resRefs, ref);
-         if(trace)
-            log.trace("created resource-env-ref: "+ref);
-      }
-   }
-   
-   /**
-    * Get the resource name based on the AnnotatedElement
-    * @param element
-    * @return
-    */
-   protected abstract String getName(E element);
-   protected abstract String getInjectionName(E element);
-   protected abstract String getType(E element);
-   protected abstract String getDeclaringClass(E element);
-
-   /**
-    * Create a
-    * @param annotation
-    * @param ref
-    */
-   protected ResourceReferenceMetaData createResourceRef(Resource annotation, E element)
-   {
-      ResourceReferenceMetaData ref = new ResourceReferenceMetaData();
-      String name = annotation.name();
-      if(name.length() == 0)
-         name = getName(element);
-      ref.setResourceRefName(name);
-      AuthenticationType authType = annotation.authenticationType();
-      ResourceAuthorityType resAuthType = ResourceAuthorityType.Container;
-      if(authType == AuthenticationType.APPLICATION)
-         resAuthType = ResourceAuthorityType.Application;
-      ref.setResAuth(resAuthType);
-      if(annotation.mappedName().length() > 0)
-         ref.setMappedName(annotation.mappedName());
-      // set lookup
-      if (annotation.lookup() != null && !annotation.lookup().trim().isEmpty())
-      {
-         ref.setLookupName(annotation.lookup());
-      }
-      Descriptions descriptions = ProcessorUtils.getDescription(annotation.description());
-      if(descriptions != null)
-      {
-         ref.setDescriptions(descriptions);
-      }
-      if(annotation.type() != Object.class)
-         ref.setType(annotation.type().getName());
-      else
-         ref.setType(getType(element));
-
-      String injectionName = getInjectionName(element);
-      Set<ResourceInjectionTargetMetaData> injectionTargets = ProcessorUtils.getInjectionTargets(injectionName, element);
-      if(injectionTargets != null)
-         ref.setInjectionTargets(injectionTargets);
-
-      return ref;
-   }
-
-   protected EnvironmentEntryMetaData createEntry(Resource annotation, E element)
-   {
-      EnvironmentEntryMetaData entry = new EnvironmentEntryMetaData();
-      String name = annotation.name();
-      if(name.length() == 0)
-         name = getName(element);
-      entry.setEnvEntryName(name);
-      // set lookup
-      if (annotation.lookup() != null && !annotation.lookup().trim().isEmpty())
-      {
-         entry.setLookupName(annotation.lookup());
-      }
-      Descriptions descriptions = ProcessorUtils.getDescription(annotation.description());
-      if(descriptions != null)
-         entry.setDescriptions(descriptions);
-      if(annotation.type() != Object.class)
-         entry.setType(annotation.type().getName());
-      else
-         entry.setType(getType(element));
-      if(annotation.mappedName().length() > 0)
-         entry.setValue(annotation.mappedName());
-      String injectionName = getInjectionName(element);
-      Set<ResourceInjectionTargetMetaData> injectionTargets = ProcessorUtils.getInjectionTargets(injectionName, element);
-      if(injectionTargets != null)
-         entry.setInjectionTargets(injectionTargets);
-
-      return entry;
-   }
-
-   protected ServiceReferenceMetaData createServiceRef(Resource annotation, E element)
-   {
-      ServiceReferenceMetaData ref = new ServiceReferenceMetaData();
-      String name = annotation.name();
-      if(name.length() == 0)
-         name = getName(element);
-      ref.setServiceRefName(name);
-      if(annotation.mappedName().length() > 0)
-         ref.setMappedName(annotation.mappedName());
-      // set lookup
-      if (annotation.lookup() != null && !annotation.lookup().trim().isEmpty())
-      {
-         ref.setLookupName(annotation.lookup());
-      }
-      ref.setAnnotatedElement(element);
-      DescriptionGroupMetaData dg = ProcessorUtils.getDescriptionGroup(annotation.description());
-      if(dg != null)
-         ref.setDescriptionGroup(dg);
-      if(annotation.type() != Object.class)
-         ref.setServiceRefType(annotation.type().getName());
-      else
-         ref.setServiceRefType(getType(element));
-      String injectionName = getInjectionName(element);
-      Set<ResourceInjectionTargetMetaData> injectionTargets = ProcessorUtils.getInjectionTargets(injectionName, element);
-      if(injectionTargets != null)
-         ref.setInjectionTargets(injectionTargets);
-
-      return ref;
-   }
-   
-   protected MessageDestinationReferenceMetaData createMessageRef(Resource annotation, E element)
-   {
-      MessageDestinationReferenceMetaData ref = new MessageDestinationReferenceMetaData();
-      String name = annotation.name();
-      if(name.length() == 0)
-         name = getName(element);
-      ref.setMessageDestinationRefName(name);
-      if(annotation.mappedName().length() > 0)
-         ref.setMappedName(annotation.mappedName());
-      // set lookup
-      if (annotation.lookup() != null && !annotation.lookup().trim().isEmpty())
-      {
-         ref.setLookupName(annotation.lookup());
-      }
-      if(annotation.type() != Object.class)
-         ref.setType(annotation.type().getName());
-      else
-         ref.setType(getType(element));
-      Descriptions descriptions = ProcessorUtils.getDescription(annotation.description());
-      if(descriptions != null)
-         ref.setDescriptions(descriptions);
-      String injectionName = getInjectionName(element);
-      Set<ResourceInjectionTargetMetaData> injectionTargets = ProcessorUtils.getInjectionTargets(injectionName, element);
-      if(injectionTargets != null)
-         ref.setInjectionTargets(injectionTargets);
-
-      return ref;
-   }
-
-   protected ResourceEnvironmentReferenceMetaData createResourceEnvRef(Resource annotation, E element)
-   {
-      ResourceEnvironmentReferenceMetaData ref = new ResourceEnvironmentReferenceMetaData();
-      String name = annotation.name();
-      if(name.length() == 0)
-         name = getName(element);
-      ref.setResourceEnvRefName(name);
-      if(annotation.mappedName().length() > 0)
-         ref.setMappedName(annotation.mappedName());
-      // set lookup
-      if (annotation.lookup() != null && !annotation.lookup().trim().isEmpty())
-      {
-         ref.setLookupName(annotation.lookup());
-      }
-      if(annotation.type() != Object.class)
-         ref.setType(annotation.type().getName());
-      else
-         ref.setType(getType(element));
-      Descriptions descriptions = ProcessorUtils.getDescription(annotation.description());
-      if(descriptions != null)
-         ref.setDescriptions(descriptions);
-
-      String injectionName = getInjectionName(element);
-      Set<ResourceInjectionTargetMetaData> injectionTargets = ProcessorUtils.getInjectionTargets(injectionName, element);
-      if(injectionTargets != null)
-         ref.setInjectionTargets(injectionTargets);
-
-      return ref;
-   }
-
-   public Collection<Class<? extends Annotation>> getAnnotationTypes()
-   {
-      return ProcessorUtils.createAnnotationSet(Resource.class);
-   }
-   
-}

Copied: projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/AbstractResourceProcessor.java (from rev 109427, projects/metadata/common/trunk/src/main/java/org/jboss/metadata/annotation/creator/AbstractResourceProcessor.java)
===================================================================
--- projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/AbstractResourceProcessor.java	                        (rev 0)
+++ projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/AbstractResourceProcessor.java	2010-11-23 12:33:26 UTC (rev 109429)
@@ -0,0 +1,420 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.annotation.creator;
+
+import java.lang.annotation.Annotation;
+import java.lang.reflect.AnnotatedElement;
+import java.util.Collection;
+import java.util.HashSet;
+import java.util.Set;
+
+import javax.annotation.Resource;
+import javax.annotation.Resource.AuthenticationType;
+
+import org.jboss.annotation.javaee.Descriptions;
+import org.jboss.logging.Logger;
+import org.jboss.metadata.annotation.finder.AnnotationFinder;
+import org.jboss.metadata.javaee.spec.DescriptionGroupMetaData;
+import org.jboss.metadata.javaee.spec.EnvironmentEntriesMetaData;
+import org.jboss.metadata.javaee.spec.EnvironmentEntryMetaData;
+import org.jboss.metadata.javaee.spec.MessageDestinationReferenceMetaData;
+import org.jboss.metadata.javaee.spec.MessageDestinationReferencesMetaData;
+import org.jboss.metadata.javaee.spec.RemoteEnvironmentRefsGroupMetaData;
+import org.jboss.metadata.javaee.spec.ResourceAuthorityType;
+import org.jboss.metadata.javaee.spec.ResourceEnvironmentReferenceMetaData;
+import org.jboss.metadata.javaee.spec.ResourceEnvironmentReferencesMetaData;
+import org.jboss.metadata.javaee.spec.ResourceInjectionTargetMetaData;
+import org.jboss.metadata.javaee.spec.ResourceReferenceMetaData;
+import org.jboss.metadata.javaee.spec.ResourceReferencesMetaData;
+import org.jboss.metadata.javaee.spec.ServiceReferenceMetaData;
+import org.jboss.metadata.javaee.spec.ServiceReferencesMetaData;
+
+/**
+ * Base processor for @Resource annotations. This works on the
+ * MutableRemoteEnvironment since a @Resource produces several different types
+ * of metadata based on the java type of the annotated element. From the common
+ * annotations 1.0 spec, table 2-4
+ * 
+java type            metadata type
+java.lang.String     env-entry
+java.lang.Character  env-entry
+java.lang.Integer    env-entry
+java.lang.Boolean    env-entry
+java.lang.Double     env-entry
+java.lang.Byte       env-entry
+java.lang.Short      env-entry
+java.lang.Long       env-entry
+java.lang.Float      env-entry
+javax.xml.rpc.Service service-ref
+javax.xml.ws.Service service-ref
+javax.jws.WebService service-ref
+javax.sql.DataSource resource-ref
+javax.jms.ConnectionFactory   resource-ref
+javax.jms.QueueConnectionFactory resource-ref
+javax.jms.TopicConnectionFactory resource-ref
+javax.mail.Session   resource-ref
+java.net.URL         resource-ref
+javax.resource.cci.ConnectionFactory   resource-ref
+org.omg.CORBA_2_3.ORB   resource-ref
+Any CF resource adapter resource-ref
+javax.jms.Queue      message-destination-ref
+javax.jms.Topic      message-destination-ref
+javax.resource.cci.InteractionSpec  resource-env-ref
+javax.transaction.UserTransaction   resource-env-ref
+Everything else      resource-env-ref
+
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @author Scott.Stark at jboss.org
+ * @version $Revision: 76756 $
+ */
+public abstract class AbstractResourceProcessor<E extends AnnotatedElement>
+   extends AbstractInjectionTargetProcessor<E>
+{
+   private static Logger log = Logger.getLogger(AbstractResourceProcessor.class);
+   private static final Set<String> envEntryTypes = new HashSet<String>();
+   private static final Set<String> serviceRefTypes = new HashSet<String>();
+   private static final Set<String> resourceRefTypes = new HashSet<String>();
+   private static final Set<String> messageDestRefRefTypes = new HashSet<String>();
+   static
+   {
+      envEntryTypes.add("java.lang.String");
+      envEntryTypes.add("java.lang.Character");
+      envEntryTypes.add("java.lang.Integer");
+      envEntryTypes.add("java.lang.Boolean");
+      envEntryTypes.add("java.lang.Double");
+      envEntryTypes.add("java.lang.Byte");
+      envEntryTypes.add("java.lang.Short");
+      envEntryTypes.add("java.lang.Float");
+      envEntryTypes.add("java.lang.Long");
+      envEntryTypes.add("char");
+      envEntryTypes.add("int");
+      envEntryTypes.add("boolean");
+      envEntryTypes.add("double");
+      envEntryTypes.add("byte");
+      envEntryTypes.add("short");
+      envEntryTypes.add("float");
+      envEntryTypes.add("long");
+      // JBoss specific addition (for java.lang.Class and enum)
+      envEntryTypes.add(Class.class.getName());
+
+      serviceRefTypes.add("javax.xml.rpc.Service");
+      serviceRefTypes.add("javax.xml.ws.Service");
+      serviceRefTypes.add("javax.jws.WebService");
+      resourceRefTypes.add("javax.sql.DataSource");
+      resourceRefTypes.add("javax.jms.ConnectionFactory");
+      resourceRefTypes.add("javax.jms.QueueConnectionFactory");
+      resourceRefTypes.add("javax.jms.TopicConnectionFactory");
+      resourceRefTypes.add("javax.mail.Session");
+      resourceRefTypes.add("java.net.URL");
+      resourceRefTypes.add("javax.resource.cci.ConnectionFactory");
+      resourceRefTypes.add("org.omg.CORBA_2_3.ORB");
+      messageDestRefRefTypes.add("javax.jms.Queue");
+      messageDestRefRefTypes.add("javax.jms.Topic");
+      messageDestRefRefTypes.add("javax.jms.TemporaryQueue");
+      messageDestRefRefTypes.add("javax.jms.TemporaryTopic");
+   }
+
+   public static boolean isEnvEntry(String type)
+   {
+      return envEntryTypes.contains(type);
+   }
+   public static boolean isServiceRef(String type)
+   {
+      return serviceRefTypes.contains(type);
+   }
+   public static boolean isResourceRef(String type)
+   {
+      return resourceRefTypes.contains(type);
+   }
+   public static boolean isMessageDestinationRef(String type)
+   {
+      return messageDestRefRefTypes.contains(type);
+   }
+
+   protected AbstractResourceProcessor(AnnotationFinder<AnnotatedElement> finder)
+   {
+      super(finder);
+   }
+   
+   public void process(RemoteEnvironmentRefsGroupMetaData refs, E element)
+   {
+      Resource annotation = finder.getAnnotation(element, Resource.class);
+      if(annotation == null)
+         return;
+      process(refs, element, annotation);
+   }
+   protected void process(RemoteEnvironmentRefsGroupMetaData refs, E element, Resource annotation)
+   {
+      boolean trace = log.isTraceEnabled();
+      String type = annotation.type().getName();
+      boolean isEnumType = annotation.type().isEnum();
+      if(type.equals("java.lang.Object"))
+      {
+         type = getType(element);
+         isEnumType = isEnum(element);
+      }
+      if(trace)
+         log.trace("process: "+annotation+", type="+type);
+      if(isEnvEntry(type) || isEnumType)
+      {
+         EnvironmentEntriesMetaData env = refs.getEnvironmentEntries();
+         if(env == null)
+         {
+            env = new EnvironmentEntriesMetaData();
+            refs.setEnvironmentEntries(env);
+         }
+         EnvironmentEntryMetaData entry = createEntry(annotation, element);
+         addReference(env, entry);
+         if(trace)
+            log.trace("created env-entry: "+entry);
+      }
+      else if(isServiceRef(type))
+      {
+         ServiceReferencesMetaData srefs = refs.getServiceReferences();
+         if(srefs == null)
+         {
+            srefs = new ServiceReferencesMetaData();
+            refs.setServiceReferences(srefs);
+         }
+         ServiceReferenceMetaData ref = createServiceRef(annotation, element);
+         addReference(srefs, ref);
+         if(trace)
+            log.trace("created service-ref: "+ref);
+      }
+      else if(isResourceRef(type))
+      {
+         ResourceReferencesMetaData resRefs = refs.getResourceReferences();
+         if(resRefs == null)
+         {
+            resRefs = new ResourceReferencesMetaData();
+            refs.setResourceReferences(resRefs);
+         }
+         ResourceReferenceMetaData ref = createResourceRef(annotation, element);
+         addReference(resRefs, ref);
+         if(trace)
+            log.trace("created resource-ref: "+ref);
+      }
+      else if(isMessageDestinationRef(type))
+      {
+         MessageDestinationReferencesMetaData mrefs = refs.getMessageDestinationReferences();
+         if(mrefs == null)
+         {
+            mrefs = new MessageDestinationReferencesMetaData();
+            refs.setMessageDestinationReferences(mrefs);
+         }
+         MessageDestinationReferenceMetaData ref = createMessageRef(annotation, element);
+         addReference(mrefs, ref);
+         if(trace)
+            log.trace("created message-destination-ref: "+ref);
+      }
+      else
+      {
+         ResourceEnvironmentReferencesMetaData resRefs = refs.getResourceEnvironmentReferences();
+         if(resRefs == null)
+         {
+            resRefs = new ResourceEnvironmentReferencesMetaData();
+            refs.setResourceEnvironmentReferences(resRefs);
+         }
+         ResourceEnvironmentReferenceMetaData ref = createResourceEnvRef(annotation, element);
+         addReference(resRefs, ref);
+         if(trace)
+            log.trace("created resource-env-ref: "+ref);
+      }
+   }
+   
+   /**
+    * Get the resource name based on the AnnotatedElement
+    * @param element
+    * @return
+    */
+   protected abstract String getName(E element);
+   protected abstract String getInjectionName(E element);
+   protected abstract String getType(E element);
+   protected abstract String getDeclaringClass(E element);
+
+   /**
+    * Create a
+    * @param annotation
+    * @param ref
+    */
+   protected ResourceReferenceMetaData createResourceRef(Resource annotation, E element)
+   {
+      ResourceReferenceMetaData ref = new ResourceReferenceMetaData();
+      String name = annotation.name();
+      if(name.length() == 0)
+         name = getName(element);
+      ref.setResourceRefName(name);
+      AuthenticationType authType = annotation.authenticationType();
+      ResourceAuthorityType resAuthType = ResourceAuthorityType.Container;
+      if(authType == AuthenticationType.APPLICATION)
+         resAuthType = ResourceAuthorityType.Application;
+      ref.setResAuth(resAuthType);
+      if(annotation.mappedName().length() > 0)
+         ref.setMappedName(annotation.mappedName());
+      // set lookup
+      if (annotation.lookup() != null && !annotation.lookup().trim().isEmpty())
+      {
+         ref.setLookupName(annotation.lookup());
+      }
+      Descriptions descriptions = ProcessorUtils.getDescription(annotation.description());
+      if(descriptions != null)
+      {
+         ref.setDescriptions(descriptions);
+      }
+      if(annotation.type() != Object.class)
+         ref.setType(annotation.type().getName());
+      else
+         ref.setType(getType(element));
+
+      String injectionName = getInjectionName(element);
+      Set<ResourceInjectionTargetMetaData> injectionTargets = ProcessorUtils.getInjectionTargets(injectionName, element);
+      if(injectionTargets != null)
+         ref.setInjectionTargets(injectionTargets);
+
+      return ref;
+   }
+
+   protected EnvironmentEntryMetaData createEntry(Resource annotation, E element)
+   {
+      EnvironmentEntryMetaData entry = new EnvironmentEntryMetaData();
+      String name = annotation.name();
+      if(name.length() == 0)
+         name = getName(element);
+      entry.setEnvEntryName(name);
+      // set lookup
+      if (annotation.lookup() != null && !annotation.lookup().trim().isEmpty())
+      {
+         entry.setLookupName(annotation.lookup());
+      }
+      Descriptions descriptions = ProcessorUtils.getDescription(annotation.description());
+      if(descriptions != null)
+         entry.setDescriptions(descriptions);
+      if(annotation.type() != Object.class)
+         entry.setType(annotation.type().getName());
+      else
+         entry.setType(getType(element));
+      if(annotation.mappedName().length() > 0)
+         entry.setValue(annotation.mappedName());
+      String injectionName = getInjectionName(element);
+      Set<ResourceInjectionTargetMetaData> injectionTargets = ProcessorUtils.getInjectionTargets(injectionName, element);
+      if(injectionTargets != null)
+         entry.setInjectionTargets(injectionTargets);
+
+      return entry;
+   }
+
+   protected ServiceReferenceMetaData createServiceRef(Resource annotation, E element)
+   {
+      ServiceReferenceMetaData ref = new ServiceReferenceMetaData();
+      String name = annotation.name();
+      if(name.length() == 0)
+         name = getName(element);
+      ref.setServiceRefName(name);
+      if(annotation.mappedName().length() > 0)
+         ref.setMappedName(annotation.mappedName());
+      // set lookup
+      if (annotation.lookup() != null && !annotation.lookup().trim().isEmpty())
+      {
+         ref.setLookupName(annotation.lookup());
+      }
+      ref.setAnnotatedElement(element);
+      DescriptionGroupMetaData dg = ProcessorUtils.getDescriptionGroup(annotation.description());
+      if(dg != null)
+         ref.setDescriptionGroup(dg);
+      if(annotation.type() != Object.class)
+         ref.setServiceRefType(annotation.type().getName());
+      else
+         ref.setServiceRefType(getType(element));
+      String injectionName = getInjectionName(element);
+      Set<ResourceInjectionTargetMetaData> injectionTargets = ProcessorUtils.getInjectionTargets(injectionName, element);
+      if(injectionTargets != null)
+         ref.setInjectionTargets(injectionTargets);
+
+      return ref;
+   }
+   
+   protected MessageDestinationReferenceMetaData createMessageRef(Resource annotation, E element)
+   {
+      MessageDestinationReferenceMetaData ref = new MessageDestinationReferenceMetaData();
+      String name = annotation.name();
+      if(name.length() == 0)
+         name = getName(element);
+      ref.setMessageDestinationRefName(name);
+      if(annotation.mappedName().length() > 0)
+         ref.setMappedName(annotation.mappedName());
+      // set lookup
+      if (annotation.lookup() != null && !annotation.lookup().trim().isEmpty())
+      {
+         ref.setLookupName(annotation.lookup());
+      }
+      if(annotation.type() != Object.class)
+         ref.setType(annotation.type().getName());
+      else
+         ref.setType(getType(element));
+      Descriptions descriptions = ProcessorUtils.getDescription(annotation.description());
+      if(descriptions != null)
+         ref.setDescriptions(descriptions);
+      String injectionName = getInjectionName(element);
+      Set<ResourceInjectionTargetMetaData> injectionTargets = ProcessorUtils.getInjectionTargets(injectionName, element);
+      if(injectionTargets != null)
+         ref.setInjectionTargets(injectionTargets);
+
+      return ref;
+   }
+
+   protected ResourceEnvironmentReferenceMetaData createResourceEnvRef(Resource annotation, E element)
+   {
+      ResourceEnvironmentReferenceMetaData ref = new ResourceEnvironmentReferenceMetaData();
+      String name = annotation.name();
+      if(name.length() == 0)
+         name = getName(element);
+      ref.setResourceEnvRefName(name);
+      if(annotation.mappedName().length() > 0)
+         ref.setMappedName(annotation.mappedName());
+      // set lookup
+      if (annotation.lookup() != null && !annotation.lookup().trim().isEmpty())
+      {
+         ref.setLookupName(annotation.lookup());
+      }
+      if(annotation.type() != Object.class)
+         ref.setType(annotation.type().getName());
+      else
+         ref.setType(getType(element));
+      Descriptions descriptions = ProcessorUtils.getDescription(annotation.description());
+      if(descriptions != null)
+         ref.setDescriptions(descriptions);
+
+      String injectionName = getInjectionName(element);
+      Set<ResourceInjectionTargetMetaData> injectionTargets = ProcessorUtils.getInjectionTargets(injectionName, element);
+      if(injectionTargets != null)
+         ref.setInjectionTargets(injectionTargets);
+
+      return ref;
+   }
+
+   public Collection<Class<? extends Annotation>> getAnnotationTypes()
+   {
+      return ProcessorUtils.createAnnotationSet(Resource.class);
+   }
+ 
+   protected abstract boolean isEnum(E element);
+}

Deleted: projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/ResourceClassProcessor.java
===================================================================
--- projects/metadata/common/trunk/src/main/java/org/jboss/metadata/annotation/creator/ResourceClassProcessor.java	2010-11-23 07:28:11 UTC (rev 109417)
+++ projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/ResourceClassProcessor.java	2010-11-23 12:33:26 UTC (rev 109429)
@@ -1,77 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.annotation.creator;
-
-import java.lang.reflect.AnnotatedElement;
-
-import org.jboss.metadata.annotation.finder.AnnotationFinder;
-import org.jboss.metadata.javaee.spec.RemoteEnvironmentRefsGroupMetaData;
-
-/**
- * If the annotation is applied to a class, the annotation declares a resource
- * that the application will look up at runtime. Even though this annotation is
- * not marked Inherited, if used all superclasses MUST be examined to discover
- * all uses of this annotation. All such annotation instances specify resources
- * that are needed by the application. Note that this annotation may appear on
- * private fields and methods of the superclasses. Injection of the declared
- * resources needs to happen in these cases as well, even if a method with such
- * an annotation is overridden by a subclass.
- * 
- * @author Scott.Stark at jboss.org
- * @version $Revision: 75470 $
- */
-public class ResourceClassProcessor
-   extends AbstractResourceProcessor<Class>
-   implements Processor<RemoteEnvironmentRefsGroupMetaData, Class>
-{
-
-   /**
-    * @param finder
-    */
-   public ResourceClassProcessor(AnnotationFinder<AnnotatedElement> finder)
-   {
-      super(finder);
-   }
-   
-   @Override
-   protected String getName(Class element)
-   {
-      String name = element.getSimpleName();
-      return name;
-   }
-   @Override
-   protected String getInjectionName(Class element)
-   {
-      return null;
-   }
-   @Override
-   protected String getType(Class element)
-   {
-      return element.getName();
-   }
-   @Override
-   protected String getDeclaringClass(Class element)
-   {
-      return element.getName();
-   }
-
-}

Copied: projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/ResourceClassProcessor.java (from rev 109427, projects/metadata/common/trunk/src/main/java/org/jboss/metadata/annotation/creator/ResourceClassProcessor.java)
===================================================================
--- projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/ResourceClassProcessor.java	                        (rev 0)
+++ projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/ResourceClassProcessor.java	2010-11-23 12:33:26 UTC (rev 109429)
@@ -0,0 +1,82 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.annotation.creator;
+
+import java.lang.reflect.AnnotatedElement;
+
+import org.jboss.metadata.annotation.finder.AnnotationFinder;
+import org.jboss.metadata.javaee.spec.RemoteEnvironmentRefsGroupMetaData;
+
+/**
+ * If the annotation is applied to a class, the annotation declares a resource
+ * that the application will look up at runtime. Even though this annotation is
+ * not marked Inherited, if used all superclasses MUST be examined to discover
+ * all uses of this annotation. All such annotation instances specify resources
+ * that are needed by the application. Note that this annotation may appear on
+ * private fields and methods of the superclasses. Injection of the declared
+ * resources needs to happen in these cases as well, even if a method with such
+ * an annotation is overridden by a subclass.
+ * 
+ * @author Scott.Stark at jboss.org
+ * @version $Revision: 75470 $
+ */
+public class ResourceClassProcessor
+   extends AbstractResourceProcessor<Class>
+   implements Processor<RemoteEnvironmentRefsGroupMetaData, Class>
+{
+
+   /**
+    * @param finder
+    */
+   public ResourceClassProcessor(AnnotationFinder<AnnotatedElement> finder)
+   {
+      super(finder);
+   }
+   
+   @Override
+   protected String getName(Class element)
+   {
+      String name = element.getSimpleName();
+      return name;
+   }
+   @Override
+   protected String getInjectionName(Class element)
+   {
+      return null;
+   }
+   @Override
+   protected String getType(Class element)
+   {
+      return element.getName();
+   }
+   @Override
+   protected String getDeclaringClass(Class element)
+   {
+      return element.getName();
+   }
+
+   @Override
+   protected boolean isEnum(Class element)
+   {
+      return element.isEnum();
+   }
+}

Deleted: projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/ResourceFieldProcessor.java
===================================================================
--- projects/metadata/common/trunk/src/main/java/org/jboss/metadata/annotation/creator/ResourceFieldProcessor.java	2010-11-23 07:28:11 UTC (rev 109417)
+++ projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/ResourceFieldProcessor.java	2010-11-23 12:33:26 UTC (rev 109429)
@@ -1,69 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.annotation.creator;
-
-import java.lang.reflect.AnnotatedElement;
-import java.lang.reflect.Field;
-
-import org.jboss.metadata.annotation.finder.AnnotationFinder;
-import org.jboss.metadata.javaee.spec.RemoteEnvironmentRefsGroupMetaData;
-
-/**
- * @author Scott.Stark at jboss.org
- * @version $Revision: 80151 $
- */
-public class ResourceFieldProcessor
-   extends AbstractResourceProcessor<Field>
-   implements Processor<RemoteEnvironmentRefsGroupMetaData, Field>
-{
-
-   /**
-    * @param finder
-    */
-   public ResourceFieldProcessor(AnnotationFinder<AnnotatedElement> finder)
-   {
-      super(finder);
-   }
-
-   @Override
-   protected String getName(Field element)
-   {
-      String name = element.getName();
-      return element.getDeclaringClass().getName() + "/" + name;
-   }
-   @Override
-   protected String getInjectionName(Field element)
-   {
-      return element.getName();
-   }
-   @Override
-   protected String getType(Field element)
-   {
-      return element.getType().getName();
-   }
-   @Override
-   protected String getDeclaringClass(Field element)
-   {
-      return element.getDeclaringClass().getName();
-   }
-
-}

Copied: projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/ResourceFieldProcessor.java (from rev 109427, projects/metadata/common/trunk/src/main/java/org/jboss/metadata/annotation/creator/ResourceFieldProcessor.java)
===================================================================
--- projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/ResourceFieldProcessor.java	                        (rev 0)
+++ projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/ResourceFieldProcessor.java	2010-11-23 12:33:26 UTC (rev 109429)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.annotation.creator;
+
+import java.lang.reflect.AnnotatedElement;
+import java.lang.reflect.Field;
+
+import org.jboss.metadata.annotation.finder.AnnotationFinder;
+import org.jboss.metadata.javaee.spec.RemoteEnvironmentRefsGroupMetaData;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision: 80151 $
+ */
+public class ResourceFieldProcessor
+   extends AbstractResourceProcessor<Field>
+   implements Processor<RemoteEnvironmentRefsGroupMetaData, Field>
+{
+
+   /**
+    * @param finder
+    */
+   public ResourceFieldProcessor(AnnotationFinder<AnnotatedElement> finder)
+   {
+      super(finder);
+   }
+
+   @Override
+   protected String getName(Field element)
+   {
+      String name = element.getName();
+      return element.getDeclaringClass().getName() + "/" + name;
+   }
+   @Override
+   protected String getInjectionName(Field element)
+   {
+      return element.getName();
+   }
+   @Override
+   protected String getType(Field element)
+   {
+      return element.getType().getName();
+   }
+   @Override
+   protected String getDeclaringClass(Field element)
+   {
+      return element.getDeclaringClass().getName();
+   }
+
+   @Override
+   protected boolean isEnum(Field element)
+   {
+      return element.getType().isEnum();
+   }
+}

Deleted: projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/ResourceMethodProcessor.java
===================================================================
--- projects/metadata/common/trunk/src/main/java/org/jboss/metadata/annotation/creator/ResourceMethodProcessor.java	2010-11-23 07:28:11 UTC (rev 109417)
+++ projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/ResourceMethodProcessor.java	2010-11-23 12:33:26 UTC (rev 109429)
@@ -1,79 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2007, Red Hat Middleware LLC, and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.metadata.annotation.creator;
-
-import java.lang.reflect.AnnotatedElement;
-import java.lang.reflect.Method;
-
-import org.jboss.metadata.annotation.finder.AnnotationFinder;
-import org.jboss.metadata.javaee.spec.RemoteEnvironmentRefsGroupMetaData;
-
-/**
- * @author Scott.Stark at jboss.org
- * @version $Revision: 80151 $
- */
-public class ResourceMethodProcessor
-   extends AbstractResourceProcessor<Method>
-   implements Processor<RemoteEnvironmentRefsGroupMetaData, Method>
-{
-
-   /**
-    * @param finder
-    */
-   public ResourceMethodProcessor(AnnotationFinder<AnnotatedElement> finder)
-   {
-      super(finder);
-   }
-
-   @Override
-   protected String getName(Method element)
-   {
-      String name = element.getName().substring(3);
-      if (name.length() > 1)
-      {
-         name = name.substring(0, 1).toLowerCase() + name.substring(1);
-      }
-      else
-      {
-         name = name.toLowerCase();
-      }
-      return element.getDeclaringClass().getName() + "/" + name;
-   }
-   @Override
-   protected String getInjectionName(Method element)
-   {
-      return element.getName();
-   }
-   @Override
-   protected String getType(Method element)
-   {
-      if(element.getParameterTypes().length != 1)
-         throw new IllegalStateException("The method requires one parameter: "+ element);
-      
-      return element.getParameterTypes()[0].getName();
-   }
-   @Override
-   protected String getDeclaringClass(Method element)
-   {
-      return element.getDeclaringClass().getName();
-   }
-}

Copied: projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/ResourceMethodProcessor.java (from rev 109427, projects/metadata/common/trunk/src/main/java/org/jboss/metadata/annotation/creator/ResourceMethodProcessor.java)
===================================================================
--- projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/ResourceMethodProcessor.java	                        (rev 0)
+++ projects/metadata/common/tags/jboss-metadata-common-2.0.0.Alpha22/src/main/java/org/jboss/metadata/annotation/creator/ResourceMethodProcessor.java	2010-11-23 12:33:26 UTC (rev 109429)
@@ -0,0 +1,88 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2007, Red Hat Middleware LLC, and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.metadata.annotation.creator;
+
+import java.lang.reflect.AnnotatedElement;
+import java.lang.reflect.Method;
+
+import org.jboss.metadata.annotation.finder.AnnotationFinder;
+import org.jboss.metadata.javaee.spec.RemoteEnvironmentRefsGroupMetaData;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision: 80151 $
+ */
+public class ResourceMethodProcessor
+   extends AbstractResourceProcessor<Method>
+   implements Processor<RemoteEnvironmentRefsGroupMetaData, Method>
+{
+
+   /**
+    * @param finder
+    */
+   public ResourceMethodProcessor(AnnotationFinder<AnnotatedElement> finder)
+   {
+      super(finder);
+   }
+
+   @Override
+   protected String getName(Method element)
+   {
+      String name = element.getName().substring(3);
+      if (name.length() > 1)
+      {
+         name = name.substring(0, 1).toLowerCase() + name.substring(1);
+      }
+      else
+      {
+         name = name.toLowerCase();
+      }
+      return element.getDeclaringClass().getName() + "/" + name;
+   }
+   @Override
+   protected String getInjectionName(Method element)
+   {
+      return element.getName();
+   }
+   @Override
+   protected String getType(Method element)
+   {
+      if(element.getParameterTypes().length != 1)
+         throw new IllegalStateException("The method requires one parameter: "+ element);
+      
+      return element.getParameterTypes()[0].getName();
+   }
+   @Override
+   protected String getDeclaringClass(Method element)
+   {
+      return element.getDeclaringClass().getName();
+   }
+   
+   @Override
+   protected boolean isEnum(Method element)
+   {
+      if(element.getParameterTypes().length != 1)
+         throw new IllegalStateException("The method requires one parameter: "+ element);
+      
+      return element.getParameterTypes()[0].isEnum();
+   }
+}



More information about the jboss-cvs-commits mailing list