[jboss-cvs] JBossAS SVN: r84368 - in projects/jpa/trunk: mcint and 34 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Feb 18 03:18:25 EST 2009


Author: wolfc
Date: 2009-02-18 03:18:25 -0500 (Wed, 18 Feb 2009)
New Revision: 84368

Added:
   projects/jpa/trunk/mcint/
   projects/jpa/trunk/mcint/.classpath
   projects/jpa/trunk/mcint/.project
   projects/jpa/trunk/mcint/.settings/
   projects/jpa/trunk/mcint/.settings/org.eclipse.jdt.core.prefs
   projects/jpa/trunk/mcint/.settings/org.maven.ide.eclipse.prefs
   projects/jpa/trunk/mcint/pom.xml
   projects/jpa/trunk/mcint/src/
   projects/jpa/trunk/mcint/src/main/
   projects/jpa/trunk/mcint/src/main/java/
   projects/jpa/trunk/mcint/src/main/java/org/
   projects/jpa/trunk/mcint/src/main/java/org/jboss/
   projects/jpa/trunk/mcint/src/main/java/org/jboss/jpa/
   projects/jpa/trunk/mcint/src/main/java/org/jboss/jpa/mcint/
   projects/jpa/trunk/mcint/src/main/java/org/jboss/jpa/mcint/beans/
   projects/jpa/trunk/mcint/src/main/java/org/jboss/jpa/mcint/beans/metadata/
   projects/jpa/trunk/mcint/src/main/java/org/jboss/jpa/mcint/beans/metadata/plugins/
   projects/jpa/trunk/mcint/src/main/java/org/jboss/jpa/mcint/beans/metadata/plugins/PersistenceUnitValueMetaData.java
   projects/jpa/trunk/mcint/src/main/java/org/jboss/jpa/mcint/kernel/
   projects/jpa/trunk/mcint/src/main/java/org/jboss/jpa/mcint/kernel/plugins/
   projects/jpa/trunk/mcint/src/main/java/org/jboss/jpa/mcint/kernel/plugins/annotations/
   projects/jpa/trunk/mcint/src/main/java/org/jboss/jpa/mcint/kernel/plugins/annotations/PersistenceUnitAnnotationPlugin.java
   projects/jpa/trunk/mcint/src/test/
   projects/jpa/trunk/mcint/src/test/java/
   projects/jpa/trunk/mcint/src/test/java/org/
   projects/jpa/trunk/mcint/src/test/java/org/jboss/
   projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/
   projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/
   projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/
   projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/annotations/
   projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/annotations/MyMCBean.java
   projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/annotations/unit/
   projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/annotations/unit/AnnotationsTestCase.java
   projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/common/
   projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/common/DummyPersistenceUnit.java
   projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/common/DummyPersistenceUnitDependencyResolver.java
   projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/common/MicroContainerTestHelper.java
   projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/common/SimpleClassLoaderDeployer.java
   projects/jpa/trunk/mcint/src/test/resources/
   projects/jpa/trunk/mcint/src/test/resources/conf/
   projects/jpa/trunk/mcint/src/test/resources/conf/bootstrap/
   projects/jpa/trunk/mcint/src/test/resources/conf/bootstrap/annotationhandler.xml
   projects/jpa/trunk/mcint/src/test/resources/conf/bootstrap/jpa-annotations.xml
   projects/jpa/trunk/mcint/src/test/resources/conf/bootstrap/maindeployer.xml
   projects/jpa/trunk/mcint/src/test/resources/org/
   projects/jpa/trunk/mcint/src/test/resources/org/jboss/
   projects/jpa/trunk/mcint/src/test/resources/org/jboss/jpa/
   projects/jpa/trunk/mcint/src/test/resources/org/jboss/jpa/mcint/
   projects/jpa/trunk/mcint/src/test/resources/org/jboss/jpa/mcint/test/
   projects/jpa/trunk/mcint/src/test/resources/org/jboss/jpa/mcint/test/annotations/
   projects/jpa/trunk/mcint/src/test/resources/org/jboss/jpa/mcint/test/annotations/META-INF/
   projects/jpa/trunk/mcint/src/test/resources/org/jboss/jpa/mcint/test/annotations/META-INF/jboss-beans.xml
   projects/jpa/trunk/mcint/src/test/resources/org/jboss/jpa/mcint/test/annotations/unit/
   projects/jpa/trunk/mcint/src/test/resources/org/jboss/jpa/mcint/test/common/
Log:
JBJPA-9: allow injection of PU into MC bean


Property changes on: projects/jpa/trunk/mcint
___________________________________________________________________
Name: svn:ignore
   + eclipse-target
target


Added: projects/jpa/trunk/mcint/.classpath
===================================================================
--- projects/jpa/trunk/mcint/.classpath	                        (rev 0)
+++ projects/jpa/trunk/mcint/.classpath	2009-02-18 08:18:25 UTC (rev 84368)
@@ -0,0 +1,72 @@
+<classpath>
+  <classpathentry kind="src" path="src/main/java"/>
+  <classpathentry kind="src" path="src/test/java" output="eclipse-target/tests-classes"/>
+  <classpathentry kind="src" path="src/test/resources" output="eclipse-target/tests-classes" excluding="**/*.java"/>
+  <classpathentry kind="output" path="eclipse-target/classes"/>
+  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+  <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/antlr/antlr/2.7.6/antlr-2.7.6.jar" sourcepath="M2_REPO/antlr/antlr/2.7.6/antlr-2.7.6-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1.jar" sourcepath="M2_REPO/commons-collections/commons-collections/3.1/commons-collections-3.1-sources.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/org/hibernate/hibernate-annotations/3.4.0.GA/hibernate-annotations-3.4.0.GA.jar" sourcepath="M2_REPO/org/hibernate/hibernate-annotations/3.4.0.GA/hibernate-annotations-3.4.0.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-commons-annotations/3.1.0.GA/hibernate-commons-annotations-3.1.0.GA.jar" sourcepath="M2_REPO/org/hibernate/hibernate-commons-annotations/3.1.0.GA/hibernate-commons-annotations-3.1.0.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-core/3.3.0.SP1/hibernate-core-3.3.0.SP1.jar" sourcepath="M2_REPO/org/hibernate/hibernate-core/3.3.0.SP1/hibernate-core-3.3.0.SP1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/hibernate/hibernate-entitymanager/3.4.0.GA/hibernate-entitymanager-3.4.0.GA.jar" sourcepath="M2_REPO/org/hibernate/hibernate-entitymanager/3.4.0.GA/hibernate-entitymanager-3.4.0.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/javassist/javassist/3.4.GA/javassist-3.4.GA.jar"/>
+  <classpathentry kind="var" path="M2_REPO/sun-jaxb/jaxb-api/2.1.4/jaxb-api-2.1.4.jar" sourcepath="M2_REPO/sun-jaxb/jaxb-api/2.1.4/jaxb-api-2.1.4-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/aop/jboss-aop/2.0.0.CR18/jboss-aop-2.0.0.CR18.jar" sourcepath="M2_REPO/org/jboss/aop/jboss-aop/2.0.0.CR18/jboss-aop-2.0.0.CR18-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/microcontainer/jboss-aop-mc-int/2.0.0.CR2/jboss-aop-mc-int-2.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/microcontainer/jboss-aop-mc-int/2.0.0.CR2/jboss-aop-mc-int-2.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/cl/jboss-classloader/2.0.0.CR3/jboss-classloader-2.0.0.CR3.jar" sourcepath="M2_REPO/org/jboss/cl/jboss-classloader/2.0.0.CR3/jboss-classloader-2.0.0.CR3-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/cl/jboss-classloading/2.0.0.CR3/jboss-classloading-2.0.0.CR3.jar" sourcepath="M2_REPO/org/jboss/cl/jboss-classloading/2.0.0.CR3/jboss-classloading-2.0.0.CR3-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/integration/jboss-classloading-spi/5.0.0.CR2/jboss-classloading-spi-5.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/integration/jboss-classloading-spi/5.0.0.CR2/jboss-classloading-spi-5.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/cl/jboss-classloading-vfs/2.0.0.CR3/jboss-classloading-vfs-2.0.0.CR3.jar" sourcepath="M2_REPO/org/jboss/cl/jboss-classloading-vfs/2.0.0.CR3/jboss-classloading-vfs-2.0.0.CR3-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-common-core/2.2.8.GA/jboss-common-core-2.2.8.GA.jar" sourcepath="M2_REPO/org/jboss/jboss-common-core/2.2.8.GA/jboss-common-core-2.2.8.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/jboss/jboss-common-logging-log4j/2.0.4.GA/jboss-common-logging-log4j-2.0.4.GA.jar" sourcepath="M2_REPO/jboss/jboss-common-logging-log4j/2.0.4.GA/jboss-common-logging-log4j-2.0.4.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/jboss/jboss-common-logging-spi/2.0.4.GA/jboss-common-logging-spi-2.0.4.GA.jar" sourcepath="M2_REPO/jboss/jboss-common-logging-spi/2.0.4.GA/jboss-common-logging-spi-2.0.4.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/microcontainer/jboss-dependency/2.0.3.GA/jboss-dependency-2.0.3.GA.jar" sourcepath="M2_REPO/org/jboss/microcontainer/jboss-dependency/2.0.3.GA/jboss-dependency-2.0.3.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-client/2.0.0.CR2/jboss-deployers-client-2.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-client/2.0.0.CR2/jboss-deployers-client-2.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-client-spi/2.0.0.CR2/jboss-deployers-client-spi-2.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-client-spi/2.0.0.CR2/jboss-deployers-client-spi-2.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-core/2.0.0.CR2/jboss-deployers-core-2.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-core/2.0.0.CR2/jboss-deployers-core-2.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-core-spi/2.0.0.CR2/jboss-deployers-core-spi-2.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-core-spi/2.0.0.CR2/jboss-deployers-core-spi-2.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-impl/2.0.0.CR2/jboss-deployers-impl-2.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-impl/2.0.0.CR2/jboss-deployers-impl-2.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-spi/2.0.0.CR2/jboss-deployers-spi-2.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-spi/2.0.0.CR2/jboss-deployers-spi-2.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-structure-spi/2.0.0.CR2/jboss-deployers-structure-spi-2.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-structure-spi/2.0.0.CR2/jboss-deployers-structure-spi-2.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-vfs/2.0.0.CR2/jboss-deployers-vfs-2.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-vfs/2.0.0.CR2/jboss-deployers-vfs-2.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-vfs-spi/2.0.0.CR2/jboss-deployers-vfs-spi-2.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-vfs-spi/2.0.0.CR2/jboss-deployers-vfs-spi-2.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-ejb-api/3.0.0.CR2/jboss-ejb-api-3.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/javaee/jboss-ejb-api/3.0.0.CR2/jboss-ejb-api-3.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-ext-api/0.4/jboss-ejb3-ext-api-0.4.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-ext-api/0.4/jboss-ejb3-ext-api-0.4-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/jboss/jbossws/jboss-jaxrpc/1.0.4.GA/jboss-jaxrpc-1.0.4.GA.jar"/>
+  <classpathentry kind="var" path="M2_REPO/jboss/jbossws/jboss-jaxws/3.0.1-native-2.0.4.GA/jboss-jaxws-3.0.1-native-2.0.4.GA.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-jca-api/1.5.0.CR1/jboss-jca-api-1.5.0.CR1.jar" sourcepath="M2_REPO/org/jboss/javaee/jboss-jca-api/1.5.0.CR1/jboss-jca-api-1.5.0.CR1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-jms-api/1.1.0.CR2/jboss-jms-api-1.1.0.CR2.jar" sourcepath="M2_REPO/org/jboss/javaee/jboss-jms-api/1.1.0.CR2/jboss-jms-api-1.1.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/jpa/jboss-jpa-deployers/1.0.0-SNAPSHOT/jboss-jpa-deployers-1.0.0-SNAPSHOT.jar" sourcepath="M2_REPO/org/jboss/jpa/jboss-jpa-deployers/1.0.0-SNAPSHOT/jboss-jpa-deployers-1.0.0-SNAPSHOT-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/microcontainer/jboss-kernel/2.0.3.GA/jboss-kernel-2.0.3.GA.jar" sourcepath="M2_REPO/org/jboss/microcontainer/jboss-kernel/2.0.3.GA/jboss-kernel-2.0.3.GA-sources.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/man/jboss-managed/2.0.0.CR1/jboss-managed-2.0.0.CR1.jar" sourcepath="M2_REPO/org/jboss/man/jboss-managed/2.0.0.CR1/jboss-managed-2.0.0.CR1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-mdr/2.0.0.CR1/jboss-mdr-2.0.0.CR1.jar" sourcepath="M2_REPO/org/jboss/jboss-mdr/2.0.0.CR1/jboss-mdr-2.0.0.CR1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/metadata/jboss-metadata/1.0.0.CR1/jboss-metadata-1.0.0.CR1.jar" sourcepath="M2_REPO/org/jboss/metadata/jboss-metadata/1.0.0.CR1/jboss-metadata-1.0.0.CR1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/man/jboss-metatype/2.0.0.CR1/jboss-metatype-2.0.0.CR1.jar" sourcepath="M2_REPO/org/jboss/man/jboss-metatype/2.0.0.CR1/jboss-metatype-2.0.0.CR1-sources.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" sourcepath="M2_REPO/org/jboss/jboss-reflect/2.0.2.GA/jboss-reflect-2.0.2.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-test/1.0.5.GA/jboss-test-1.0.5.GA.jar" sourcepath="M2_REPO/org/jboss/jboss-test/1.0.5.GA/jboss-test-1.0.5.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-transaction-api/1.0.1.CR1/jboss-transaction-api-1.0.1.CR1.jar" sourcepath="M2_REPO/org/jboss/javaee/jboss-transaction-api/1.0.1.CR1/jboss-transaction-api-1.0.1.CR1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/integration/jboss-transaction-spi/5.0.0.CR2/jboss-transaction-spi-5.0.0.CR2.jar" sourcepath="M2_REPO/org/jboss/integration/jboss-transaction-spi/5.0.0.CR2/jboss-transaction-spi-5.0.0.CR2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-vfs/2.0.0.CR1/jboss-vfs-2.0.0.CR1.jar" sourcepath="M2_REPO/org/jboss/jboss-vfs/2.0.0.CR1/jboss-vfs-2.0.0.CR1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/ws/jbossws-spi/1.0.5.GA/jbossws-spi-1.0.5.GA.jar" sourcepath="M2_REPO/org/jboss/ws/jbossws-spi/1.0.5.GA/jbossws-spi-1.0.5.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/jboss/jbossxb/2.0.0.GA/jbossxb-2.0.0.GA.jar" sourcepath="M2_REPO/org/jboss/jbossxb/2.0.0.GA/jbossxb-2.0.0.GA-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/javax/transaction/jta/1.1/jta-1.1.jar" sourcepath="M2_REPO/javax/transaction/jta/1.1/jta-1.1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/junit/junit/4.4/junit-4.4.jar" sourcepath="M2_REPO/junit/junit/4.4/junit-4.4-sources.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/qdox/qdox/1.6.1/qdox-1.6.1.jar" sourcepath="M2_REPO/qdox/qdox/1.6.1/qdox-1.6.1-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.4.2/slf4j-api-1.4.2.jar" sourcepath="M2_REPO/org/slf4j/slf4j-api/1.4.2/slf4j-api-1.4.2-sources.jar"/>
+  <classpathentry kind="var" path="M2_REPO/stax/stax-api/1.0/stax-api-1.0.jar"/>
+  <classpathentry kind="var" path="M2_REPO/trove/trove/2.1.1/trove-2.1.1.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"/>
+</classpath>
\ No newline at end of file

Added: projects/jpa/trunk/mcint/.project
===================================================================
--- projects/jpa/trunk/mcint/.project	                        (rev 0)
+++ projects/jpa/trunk/mcint/.project	2009-02-18 08:18:25 UTC (rev 84368)
@@ -0,0 +1,18 @@
+<projectDescription>
+  <name>jboss-jpa-mcint</name>
+  <comment>The JBoss Container Managed JPA MicroContainer Integration for using
+    JPA persistence units within MC Beans.</comment>
+  <projects/>
+  <buildSpec>
+    <buildCommand>
+      <name>org.eclipse.jdt.core.javabuilder</name>
+    </buildCommand>
+    <buildCommand>
+      <name>org.maven.ide.eclipse.maven2Builder</name>
+    </buildCommand>
+  </buildSpec>
+  <natures>
+    <nature>org.eclipse.jdt.core.javanature</nature>
+    <nature>org.maven.ide.eclipse.maven2Nature</nature>
+  </natures>
+</projectDescription>
\ No newline at end of file

Added: projects/jpa/trunk/mcint/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- projects/jpa/trunk/mcint/.settings/org.eclipse.jdt.core.prefs	                        (rev 0)
+++ projects/jpa/trunk/mcint/.settings/org.eclipse.jdt.core.prefs	2009-02-18 08:18:25 UTC (rev 84368)
@@ -0,0 +1,5 @@
+#Tue Feb 17 11:01:29 CET 2009
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5

Added: projects/jpa/trunk/mcint/.settings/org.maven.ide.eclipse.prefs
===================================================================
--- projects/jpa/trunk/mcint/.settings/org.maven.ide.eclipse.prefs	                        (rev 0)
+++ projects/jpa/trunk/mcint/.settings/org.maven.ide.eclipse.prefs	2009-02-18 08:18:25 UTC (rev 84368)
@@ -0,0 +1,8 @@
+#Tue Feb 17 11:22:40 CET 2009
+activeProfiles=eclipse
+eclipse.preferences.version=1
+fullBuildGoals=
+includeModules=false
+resolveWorkspaceProjects=false
+resourceFilterGoals=
+version=1

Added: projects/jpa/trunk/mcint/pom.xml
===================================================================
--- projects/jpa/trunk/mcint/pom.xml	                        (rev 0)
+++ projects/jpa/trunk/mcint/pom.xml	2009-02-18 08:18:25 UTC (rev 84368)
@@ -0,0 +1,152 @@
+<!--
+  vi:ts=2:sw=2:expandtab:
+-->
+<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">
+  <parent>
+    <groupId>org.jboss.jpa</groupId>
+    <artifactId>jboss-jpa-build</artifactId>
+    <relativePath>../build/pom.xml</relativePath>
+    <version>0.1.1</version>
+  </parent>
+
+  <modelVersion>4.0.0</modelVersion>
+
+  <artifactId>jboss-jpa-mcint</artifactId>
+  <version>1.0.0-SNAPSHOT</version>
+  <packaging>jar</packaging>
+  <name>JBoss Container Managed JPA MicroContainer Integration</name>
+  <description>
+    The JBoss Container Managed JPA MicroContainer Integration for using
+    JPA persistence units within MC Beans.
+  </description>
+  
+  <dependencies>
+    <!-- For 'mocking' a TransactionManager we use JBossTS -->
+    <!-- 
+    <dependency>
+      <groupId>jboss.jbossts</groupId>
+      <artifactId>jbossjta</artifactId>
+      <version>4.4.0.GA</version>
+      <scope>test</scope>
+    </dependency>
+    -->
+  	<dependency>
+      <groupId>junit</groupId>
+      <artifactId>junit</artifactId>
+      <version>4.4</version>
+      <scope>test</scope>
+    </dependency>
+    <!-- For 'mocking' a DataSource we use Derby -->
+    <!-- 
+    <dependency>
+      <groupId>org.apache.derby</groupId>
+      <artifactId>derby</artifactId>
+      <version>10.4.1.3</version>
+      <scope>test</scope>
+    </dependency>
+    -->
+    <dependency>
+      <groupId>org.hibernate</groupId>
+      <artifactId>ejb3-persistence</artifactId>
+      <version>1.0.2.GA</version>
+    </dependency>
+    <!-- 
+    <dependency>
+      <groupId>org.hibernate</groupId>
+      <artifactId>hibernate-entitymanager</artifactId>
+      <version>3.4.0.GA</version>
+    </dependency>
+    <dependency>
+      <groupId>org.jboss.integration</groupId>
+      <artifactId>jboss-transaction-spi</artifactId>
+      <version>5.0.0.CR2</version>
+    </dependency>
+    -->
+    <!-- indirectly referenced by MicroContainerTestDelegate -->
+    <dependency>
+      <groupId>org.jboss</groupId>
+      <artifactId>jboss-test</artifactId>
+      <version>1.0.5.GA</version>
+      <scope>test</scope>
+    </dependency>
+    <!-- 
+  	<dependency>
+      <groupId>org.jboss.deployers</groupId>
+      <artifactId>jboss-deployers-vfs</artifactId>
+      <version>2.0.0.CR2</version>
+    </dependency>
+  	<dependency>
+      <groupId>org.jboss.deployers</groupId>
+      <artifactId>jboss-deployers-vfs-spi</artifactId>
+      <version>2.0.0.CR2</version>
+    </dependency>
+    -->
+    <dependency>
+      <groupId>org.jboss.jpa</groupId>
+      <artifactId>jboss-jpa-deployers</artifactId>
+      <version>1.0.0-SNAPSHOT</version>
+    </dependency>
+    <!--
+    <dependency>
+      <groupId>org.jboss.metadata</groupId>
+      <artifactId>jboss-metadata</artifactId>
+      <version>1.0.0.CR1</version>
+    </dependency>
+    -->
+    <!-- For @JMX -->
+    <!-- 
+    <dependency>
+      <groupId>org.jboss.microcontainer</groupId>
+      <artifactId>jboss-aop-mc-int</artifactId>
+      <version>2.0.0.CR2</version>
+    </dependency>
+    -->
+    <dependency>
+      <groupId>org.jboss.microcontainer</groupId>
+      <artifactId>jboss-kernel</artifactId>
+      <version>2.0.3.GA</version>
+    </dependency>
+    <!-- 
+    <dependency>
+      <groupId>org.jboss.naming</groupId>
+      <artifactId>jnpserver</artifactId>
+      <version>5.0.0.CR3</version>
+      <scope>test</scope>
+    </dependency>
+    -->
+    
+    <!-- For Arjuna / JBoss Transaction -->
+    <!-- 
+    <dependency>
+      <groupId>apache-logging</groupId>
+      <artifactId>commons-logging</artifactId>
+      <version>1.1.0.jboss</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>oswego-concurrent</groupId>
+      <artifactId>concurrent</artifactId>
+      <version>1.3.4-jboss-update1</version>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>jboss.jbossts</groupId>
+      <artifactId>jbossts-common</artifactId>
+      <version>4.4.0.GA</version>
+      <scope>test</scope>
+    </dependency>
+    -->
+    
+    <!-- Hibernate core logging -->
+    <!-- 
+    <dependency>
+      <groupId>org.jboss.slf4j</groupId>
+      <artifactId>slf4j-jboss-logging</artifactId>
+      <version>1.0.0.GA</version>
+      <scope>test</scope>
+    </dependency>
+    -->
+  </dependencies>
+</project>

Added: projects/jpa/trunk/mcint/src/main/java/org/jboss/jpa/mcint/beans/metadata/plugins/PersistenceUnitValueMetaData.java
===================================================================
--- projects/jpa/trunk/mcint/src/main/java/org/jboss/jpa/mcint/beans/metadata/plugins/PersistenceUnitValueMetaData.java	                        (rev 0)
+++ projects/jpa/trunk/mcint/src/main/java/org/jboss/jpa/mcint/beans/metadata/plugins/PersistenceUnitValueMetaData.java	2009-02-18 08:18:25 UTC (rev 84368)
@@ -0,0 +1,155 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jpa.mcint.beans.metadata.plugins;
+
+import org.jboss.beans.metadata.plugins.AbstractValueMetaData;
+import org.jboss.beans.metadata.spi.BeanMetaData;
+import org.jboss.beans.metadata.spi.MetaDataVisitor;
+import org.jboss.dependency.plugins.AbstractDependencyItem;
+import org.jboss.dependency.spi.ControllerState;
+import org.jboss.deployers.client.spi.Deployment;
+import org.jboss.deployers.client.spi.main.MainDeployer;
+import org.jboss.deployers.structure.spi.DeploymentUnit;
+import org.jboss.deployers.structure.spi.main.MainDeployerStructure;
+import org.jboss.jpa.resolvers.PersistenceUnitDependencyResolver;
+import org.jboss.jpa.spi.PersistenceUnit;
+import org.jboss.kernel.spi.dependency.KernelControllerContext;
+import org.jboss.reflect.spi.TypeInfo;
+
+/**
+ * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class PersistenceUnitValueMetaData extends AbstractValueMetaData
+{
+   // TODO: this is not really serializable
+   private static final long serialVersionUID = 1L;
+   
+   private MainDeployer mainDeployer;
+   private MainDeployerStructure mainDeployerStructure;
+   private PersistenceUnitDependencyResolver resolver;
+   private String persistenceUnitName;
+   
+   private KernelControllerContext context;
+
+   public PersistenceUnitValueMetaData(MainDeployer mainDeployer, MainDeployerStructure mainDeployerStructure, PersistenceUnitDependencyResolver resolver, String persistenceUnitName)
+   {
+      assert mainDeployer != null : "mainDeployer is null";
+      assert mainDeployerStructure != null : "mainDeployerStructure is null";
+      assert resolver != null : "resolver is null";
+      
+      this.mainDeployer = mainDeployer;
+      this.mainDeployerStructure = mainDeployerStructure;
+      this.resolver = resolver;
+      this.persistenceUnitName = persistenceUnitName;
+   }
+   
+   @Override
+   public void describeVisit(MetaDataVisitor visitor)
+   {
+      Object name = context.getName();
+      //Object iDependOn = getUnderlyingValue();
+      Object iDependOn = getPersistenceUnitBeanName();
+      
+      log.info("iDependOn " + iDependOn);
+
+      ControllerState whenRequired = visitor.getContextState();
+      ControllerState dependentState = ControllerState.INSTALLED;
+
+      AbstractDependencyItem dependency = new AbstractDependencyItem(name, iDependOn, whenRequired, dependentState);
+      visitor.addDependency(dependency);
+      
+      super.describeVisit(visitor);
+   }
+   
+   private DeploymentUnit findBean(DeploymentUnit deploymentUnit, String contextName)
+   {
+      if(deploymentUnit == null)
+         return null;
+      /*
+      Set<Object> controllerContextNames = deploymentUnit.getControllerContextNames();
+      if(controllerContextNames != null)
+      {
+         for(Object name : controllerContextNames)
+         {
+            if(name.equals(contextName))
+               return deploymentUnit;
+         }
+      }
+      */
+      BeanMetaData bmd = deploymentUnit.getAttachment(BeanMetaData.class);
+      if(bmd != null && bmd.getName().equals(contextName))
+         return deploymentUnit;
+      DeploymentUnit result;
+      for(DeploymentUnit component : deploymentUnit.getComponents())
+      {
+         result = findBean(component, contextName);
+         if(result != null)
+            return deploymentUnit;
+      }
+      for(DeploymentUnit child : deploymentUnit.getChildren())
+      {
+         result = findBean(child, contextName);
+         if(result != null)
+            return result;
+      }
+      return null;
+   }
+   
+   private String getPersistenceUnitBeanName()
+   {
+      // TODO: check assumption earlier
+      String contextName = (String) context.getName();
+      DeploymentUnit deploymentUnit = null;
+      for(Deployment deployment : mainDeployer.getTopLevel())
+      {
+         String name = deployment.getName();
+         deploymentUnit = mainDeployerStructure.getDeploymentUnit(name);
+         if(deploymentUnit == null)
+            continue;
+         deploymentUnit = findBean(deploymentUnit, contextName);
+         if(deploymentUnit != null)
+            break;
+      }
+      // TODO: this requires a bit more explaining
+      if(deploymentUnit == null)
+         throw new IllegalStateException("@PersistenceUnit can only be used within a regular deployment unit");
+      String persistenceUnitBeanName = resolver.resolvePersistenceUnitSupplier(deploymentUnit, persistenceUnitName);
+      return persistenceUnitBeanName;
+   }
+   
+   @Override
+   public Object getValue(TypeInfo info, ClassLoader cl) throws Throwable
+   {
+      String persistenceUnitBeanName = getPersistenceUnitBeanName();
+      PersistenceUnit pu = (PersistenceUnit) context.getController().getContext(persistenceUnitBeanName, ControllerState.INSTALLED).getTarget();
+      return pu.getContainerEntityManagerFactory();
+   }
+   
+   @Override
+   public void initialVisit(MetaDataVisitor visitor)
+   {
+      context = visitor.getControllerContext();
+      
+      super.initialVisit(visitor);
+   }
+}

Added: projects/jpa/trunk/mcint/src/main/java/org/jboss/jpa/mcint/kernel/plugins/annotations/PersistenceUnitAnnotationPlugin.java
===================================================================
--- projects/jpa/trunk/mcint/src/main/java/org/jboss/jpa/mcint/kernel/plugins/annotations/PersistenceUnitAnnotationPlugin.java	                        (rev 0)
+++ projects/jpa/trunk/mcint/src/main/java/org/jboss/jpa/mcint/kernel/plugins/annotations/PersistenceUnitAnnotationPlugin.java	2009-02-18 08:18:25 UTC (rev 84368)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jpa.mcint.kernel.plugins.annotations;
+
+import javax.persistence.PersistenceUnit;
+
+import org.jboss.beans.metadata.api.annotations.Inject;
+import org.jboss.beans.metadata.spi.ValueMetaData;
+import org.jboss.deployers.client.spi.main.MainDeployer;
+import org.jboss.deployers.structure.spi.main.MainDeployerStructure;
+import org.jboss.jpa.mcint.beans.metadata.plugins.PersistenceUnitValueMetaData;
+import org.jboss.jpa.resolvers.PersistenceUnitDependencyResolver;
+import org.jboss.kernel.plugins.annotations.PropertyAnnotationPlugin;
+
+/**
+ * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class PersistenceUnitAnnotationPlugin extends PropertyAnnotationPlugin<PersistenceUnit>
+{
+   private PersistenceUnitDependencyResolver resolver;
+   
+   private MainDeployer mainDeployer;
+
+   private MainDeployerStructure mainDeployerStructure;
+   
+   public PersistenceUnitAnnotationPlugin()
+   {
+      super(PersistenceUnit.class);
+   }
+   
+   @Override
+   public ValueMetaData createValueMetaData(PersistenceUnit annotation)
+   {
+      return new PersistenceUnitValueMetaData(mainDeployer, mainDeployerStructure, resolver, annotation.unitName());
+   }
+   
+   @Inject
+   public void setMainDeployer(MainDeployer mainDeployer)
+   {
+      this.mainDeployer = mainDeployer;
+   }
+   
+   @Inject
+   public void setMainDeployerStructure(MainDeployerStructure mainDeployerStructure)
+   {
+      this.mainDeployerStructure = mainDeployerStructure;
+   }
+   
+   @Inject
+   public void setPersistenceUnitDependencyResolver(PersistenceUnitDependencyResolver resolver)
+   {
+      this.resolver = resolver;
+   }
+}

Added: projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/annotations/MyMCBean.java
===================================================================
--- projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/annotations/MyMCBean.java	                        (rev 0)
+++ projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/annotations/MyMCBean.java	2009-02-18 08:18:25 UTC (rev 84368)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jpa.mcint.test.annotations;
+
+import javax.persistence.EntityManagerFactory;
+import javax.persistence.PersistenceUnit;
+
+/**
+ * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class MyMCBean
+{
+   private EntityManagerFactory emf;
+
+   public EntityManagerFactory getEntityManagerFactory()
+   {
+      return emf;
+   }
+   
+   @PersistenceUnit
+   public void setEntityManagerFactory(EntityManagerFactory emf)
+   {
+      this.emf = emf;
+   }
+}

Added: projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/annotations/unit/AnnotationsTestCase.java
===================================================================
--- projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/annotations/unit/AnnotationsTestCase.java	                        (rev 0)
+++ projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/annotations/unit/AnnotationsTestCase.java	2009-02-18 08:18:25 UTC (rev 84368)
@@ -0,0 +1,90 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jpa.mcint.test.annotations.unit;
+
+import static org.junit.Assert.assertNotNull;
+
+import java.io.IOException;
+import java.net.URL;
+
+import org.jboss.deployers.spi.DeploymentException;
+import org.jboss.deployers.vfs.spi.client.VFSDeployment;
+import org.jboss.deployers.vfs.spi.client.VFSDeploymentFactory;
+import org.jboss.jpa.mcint.test.annotations.MyMCBean;
+import org.jboss.jpa.mcint.test.common.MicroContainerTestHelper;
+import org.jboss.virtual.VFS;
+import org.jboss.virtual.VirtualFile;
+import org.junit.AfterClass;
+import org.junit.BeforeClass;
+import org.junit.Test;
+
+/**
+ * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class AnnotationsTestCase
+{
+   private static MicroContainerTestHelper delegate;
+   
+   @AfterClass
+   public static void afterClass() throws Exception
+   {
+      if(delegate != null)
+         delegate.tearDown();
+      delegate = null;
+   }
+   
+   @BeforeClass
+   public static void beforeClass() throws Exception
+   {
+      delegate = new MicroContainerTestHelper(AnnotationsTestCase.class);
+      
+      delegate.setUp();
+      
+      delegate.validate();
+      
+      deploy("/org/jboss/jpa/mcint/test/annotations");
+   }
+   
+   protected static void deploy(URL url) throws DeploymentException, IOException
+   {
+      VirtualFile file = VFS.getRoot(url);
+      VFSDeployment deployment = VFSDeploymentFactory.getInstance().createVFSDeployment(file);
+      delegate.getMainDeployer().deploy(deployment);      
+   }
+   
+   protected static void deploy(String spec) throws DeploymentException, IOException 
+   {
+      URL url = AnnotationsTestCase.class.getResource(spec);
+      if(url == null)
+         throw new IllegalArgumentException("Can't find resource '" + spec + "'");
+      deploy(url);
+   }
+   
+   @Test
+   public void test1()
+   {
+      MyMCBean bean = delegate.getBean("MyMCBean", MyMCBean.class);
+      assertNotNull(bean);
+      assertNotNull("entity manager factory was not injected", bean.getEntityManagerFactory());
+   }
+}

Added: projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/common/DummyPersistenceUnit.java
===================================================================
--- projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/common/DummyPersistenceUnit.java	                        (rev 0)
+++ projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/common/DummyPersistenceUnit.java	2009-02-18 08:18:25 UTC (rev 84368)
@@ -0,0 +1,62 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jpa.mcint.test.common;
+
+import java.lang.reflect.InvocationHandler;
+import java.lang.reflect.Method;
+import java.lang.reflect.Proxy;
+
+import javax.persistence.EntityManagerFactory;
+
+import org.jboss.jpa.spi.PersistenceUnit;
+import org.jboss.jpa.spi.XPCResolver;
+
+/**
+ * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class DummyPersistenceUnit implements PersistenceUnit
+{
+   public EntityManagerFactory getContainerEntityManagerFactory()
+   {
+      ClassLoader loader = Thread.currentThread().getContextClassLoader();
+      Class<?> interfaces[] = { EntityManagerFactory.class };
+      InvocationHandler handler = new InvocationHandler() {
+         public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
+         {
+            throw new RuntimeException("NYI");
+         }
+      };
+      return (EntityManagerFactory) Proxy.newProxyInstance(loader, interfaces, handler);
+   }
+
+   public String getName()
+   {
+      throw new RuntimeException("NYI");
+   }
+
+   public XPCResolver getXPCResolver()
+   {
+      throw new RuntimeException("NYI");
+   }
+
+}

Added: projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/common/DummyPersistenceUnitDependencyResolver.java
===================================================================
--- projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/common/DummyPersistenceUnitDependencyResolver.java	                        (rev 0)
+++ projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/common/DummyPersistenceUnitDependencyResolver.java	2009-02-18 08:18:25 UTC (rev 84368)
@@ -0,0 +1,42 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jpa.mcint.test.common;
+
+import org.jboss.deployers.structure.spi.DeploymentUnit;
+import org.jboss.jpa.resolvers.PersistenceUnitDependencyResolver;
+
+/**
+ * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class DummyPersistenceUnitDependencyResolver implements PersistenceUnitDependencyResolver
+{
+   public String createBeanName(DeploymentUnit deploymentUnit, String persistenceUnitName)
+   {
+      throw new RuntimeException("NYI");
+   }
+
+   public String resolvePersistenceUnitSupplier(DeploymentUnit deploymentUnit, String persistenceUnitName)
+   {
+      return "DummyPersistenceUnit";
+   }
+}

Added: projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/common/MicroContainerTestHelper.java
===================================================================
--- projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/common/MicroContainerTestHelper.java	                        (rev 0)
+++ projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/common/MicroContainerTestHelper.java	2009-02-18 08:18:25 UTC (rev 84368)
@@ -0,0 +1,107 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2009, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jpa.mcint.test.common;
+
+import java.net.URL;
+
+import org.jboss.dependency.spi.ControllerState;
+import org.jboss.deployers.client.spi.main.MainDeployer;
+import org.jboss.kernel.spi.deployment.KernelDeployment;
+import org.jboss.test.kernel.junit.MicrocontainerTestDelegate;
+
+/**
+ * TODO: use JBoss Bootstrap
+ * 
+ * @author <a href="mailto:cdewolf at redhat.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class MicroContainerTestHelper extends MicrocontainerTestDelegate
+{
+   private MainDeployer mainDeployer;
+
+   public MicroContainerTestHelper(Class<?> clazz) throws Exception
+   {
+      super(clazz);
+   }
+   
+   protected KernelDeployment deploy(String path) throws Exception
+   {
+      URL url = MicroContainerTestHelper.class.getResource(path);
+      KernelDeployment deployment = deploy(url);
+      validate(deployment);
+      return deployment;
+   }
+   
+   public <T> T getBean(Object name, Class<T> expectedType)
+   {
+      return getBean(name, ControllerState.INSTALLED, expectedType);
+   }
+   
+   public MainDeployer getMainDeployer()
+   {
+      return mainDeployer;
+   }
+   
+   @Override
+   public void setUp() throws Exception
+   {
+      super.setUp();
+      
+      deploy("/conf/bootstrap/annotationhandler.xml");
+      
+      deploy("/conf/bootstrap/maindeployer.xml");
+      
+      deploy("/conf/bootstrap/jpa-annotations.xml");
+      
+      mainDeployer = getBean("MainDeployer", ControllerState.INSTALLED, MainDeployer.class);
+   }
+   
+   @Override
+   public void validate() throws Exception
+   {
+      super.validate();
+   }
+   
+   protected void validate(KernelDeployment deployment) throws Exception
+   {
+      try
+      {
+         deployer.validate(deployment);
+      }
+      catch(Error e)
+      {
+         throw e;
+      }
+      catch(RuntimeException e)
+      {
+         throw e;
+      }
+      catch(Exception e)
+      {
+         throw e;
+      }
+      catch(Throwable t)
+      {
+         throw new RuntimeException(t);
+      }
+   }
+}

Copied: projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/common/SimpleClassLoaderDeployer.java (from rev 84300, projects/jpa/trunk/deployers/src/test/java/org/jboss/jpa/deployers/test/common/SimpleClassLoaderDeployer.java)
===================================================================
--- projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/common/SimpleClassLoaderDeployer.java	                        (rev 0)
+++ projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/common/SimpleClassLoaderDeployer.java	2009-02-18 08:18:25 UTC (rev 84368)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file 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.jpa.mcint.test.common;
+
+import org.jboss.deployers.spi.deployer.helpers.AbstractTopLevelClassLoaderDeployer;
+import org.jboss.deployers.structure.spi.DeploymentUnit;
+
+/**
+ * TODO: Consilidate with org.jboss.ejb3.test.tx.common.SimpleClassLoaderDeployer
+ * 
+ * @author <a href="mailto:carlo.dewolf at jboss.com">Carlo de Wolf</a>
+ * @version $Revision: $
+ */
+public class SimpleClassLoaderDeployer extends AbstractTopLevelClassLoaderDeployer
+{
+   @Override
+   protected ClassLoader createTopLevelClassLoader(DeploymentUnit unit) throws Exception
+   {
+      return Thread.currentThread().getContextClassLoader();
+   }
+}


Property changes on: projects/jpa/trunk/mcint/src/test/java/org/jboss/jpa/mcint/test/common/SimpleClassLoaderDeployer.java
___________________________________________________________________
Name: svn:mergeinfo
   + 

Added: projects/jpa/trunk/mcint/src/test/resources/conf/bootstrap/annotationhandler.xml
===================================================================
--- projects/jpa/trunk/mcint/src/test/resources/conf/bootstrap/annotationhandler.xml	                        (rev 0)
+++ projects/jpa/trunk/mcint/src/test/resources/conf/bootstrap/annotationhandler.xml	2009-02-18 08:18:25 UTC (rev 84368)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+   <bean name="AnnotationHandlerFactory">
+      <constructor factoryClass="org.jboss.kernel.plugins.annotations.BeanAnnotationAdapterFactory" factoryMethod="getInstance" />
+   </bean>
+   <bean name="AnnotationHandler">
+      <constructor factoryMethod="getBeanAnnotationAdapter">
+         <factory bean="AnnotationHandlerFactory"/>
+      </constructor>
+      <incallback method="addAnnotationPlugin" />
+      <uncallback method="removeAnnotationPlugin" />
+   </bean>
+</deployment>
\ No newline at end of file

Added: projects/jpa/trunk/mcint/src/test/resources/conf/bootstrap/jpa-annotations.xml
===================================================================
--- projects/jpa/trunk/mcint/src/test/resources/conf/bootstrap/jpa-annotations.xml	                        (rev 0)
+++ projects/jpa/trunk/mcint/src/test/resources/conf/bootstrap/jpa-annotations.xml	2009-02-18 08:18:25 UTC (rev 84368)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+   <!-- FIXME: move to another xml -->
+   <bean name="PersistenceUnitDependencyResolver" class="org.jboss.jpa.mcint.test.common.DummyPersistenceUnitDependencyResolver"/>
+   
+   <!-- FIXME: move to META-INF/jboss-beans.xml -->
+   <bean name="org.jboss.jpa.mcint.annotations.PersistenceUnit" class="org.jboss.jpa.mcint.kernel.plugins.annotations.PersistenceUnitAnnotationPlugin"/>
+</deployment>
\ No newline at end of file

Copied: projects/jpa/trunk/mcint/src/test/resources/conf/bootstrap/maindeployer.xml (from rev 84300, projects/jpa/trunk/deployers/src/test/resources/org/jboss/jpa/deployers/test/common/MainDeployer-beans.xml)
===================================================================
--- projects/jpa/trunk/mcint/src/test/resources/conf/bootstrap/maindeployer.xml	                        (rev 0)
+++ projects/jpa/trunk/mcint/src/test/resources/conf/bootstrap/maindeployer.xml	2009-02-18 08:18:25 UTC (rev 84368)
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+   <bean name="SimpleClassLoaderDeployer" class="org.jboss.jpa.mcint.test.common.SimpleClassLoaderDeployer"/>
+   
+   <!-- The MainDeployer -->
+   <bean name="MainDeployer" class="org.jboss.deployers.plugins.main.MainDeployerImpl">
+      <property name="structuralDeployers"><inject bean="StructuralDeployers"/></property>
+      <property name="deployers"><inject bean="Deployers"/></property>
+      <!--property name="mgtDeploymentCreator"><inject bean="ManagedDeploymentCreator"/></property-->
+   </bean>
+      
+   <!-- The holder for deployers that determine structure -->
+   <bean name="StructuralDeployers" class="org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl">
+      <property name="structureBuilder">
+         <!-- The consolidator of the structure information -->
+         <bean name="StructureBuilder" class="org.jboss.deployers.vfs.plugins.structure.VFSStructureBuilder"/>
+      </property>
+      <!-- Accept any implementor of structure deployer -->
+      <incallback method="addDeployer"/>
+      <uncallback method="removeDeployer"/>
+   </bean>
+   
+   <!-- The holder for deployers that do real deployment -->
+   <bean name="Deployers" class="org.jboss.deployers.plugins.deployers.DeployersImpl">
+      <constructor><parameter><inject bean="jboss.kernel:service=KernelController"/></parameter></constructor>
+      <!-- Accept any implementor of deployer -->
+      <incallback method="addDeployer"/>
+      <uncallback method="removeDeployer"/>
+   </bean>
+   
+   <!-- File Structure -->
+   <bean name="FileStructure" class="org.jboss.deployers.vfs.plugins.structure.file.FileStructure"/>
+   
+   <!-- File Structure -->
+   <bean name="JARStructure" class="org.jboss.deployers.vfs.plugins.structure.jar.JARStructure"/>
+   
+   <!-- POJO Deployment -->
+   <bean name="BeanDeployer" class="org.jboss.deployers.vfs.deployer.kernel.BeanDeployer"/>
+   <bean name="KernelDeploymentDeployer" class="org.jboss.deployers.vfs.deployer.kernel.KernelDeploymentDeployer"/>
+   <bean name="BeanMetaDataDeployer" class="org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer">
+      <constructor><parameter class="org.jboss.kernel.Kernel"><inject bean="jboss.kernel:service=Kernel"/></parameter></constructor>
+   </bean>
+</deployment>


Property changes on: projects/jpa/trunk/mcint/src/test/resources/conf/bootstrap/maindeployer.xml
___________________________________________________________________
Name: svn:mergeinfo
   + 

Added: projects/jpa/trunk/mcint/src/test/resources/org/jboss/jpa/mcint/test/annotations/META-INF/jboss-beans.xml
===================================================================
--- projects/jpa/trunk/mcint/src/test/resources/org/jboss/jpa/mcint/test/annotations/META-INF/jboss-beans.xml	                        (rev 0)
+++ projects/jpa/trunk/mcint/src/test/resources/org/jboss/jpa/mcint/test/annotations/META-INF/jboss-beans.xml	2009-02-18 08:18:25 UTC (rev 84368)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+   <bean name="DummyPersistenceUnit" class="org.jboss.jpa.mcint.test.common.DummyPersistenceUnit"/>
+   
+   <bean name="MyMCBean" class="org.jboss.jpa.mcint.test.annotations.MyMCBean"/>
+</deployment>
\ No newline at end of file




More information about the jboss-cvs-commits mailing list