[jboss-cvs] JBossAS SVN: r92189 - in trunk: cluster and 25 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Aug 10 03:16:18 EDT 2009


Author: scott.stark at jboss.org
Date: 2009-08-10 03:16:17 -0400 (Mon, 10 Aug 2009)
New Revision: 92189

Added:
   trunk/profileservice/src/main/org/jboss/profileservice/domain/
   trunk/profileservice/src/main/org/jboss/profileservice/domain/DomainMetaData.java
   trunk/profileservice/src/main/org/jboss/profileservice/domain/DomainProfileFactory.java
   trunk/profileservice/src/main/org/jboss/profileservice/domain/ProfileServiceDomainBootstrap.java
   trunk/profileservice/src/main/org/jboss/profileservice/domain/datasource/
   trunk/profileservice/src/main/org/jboss/profileservice/domain/datasource/ConnectionFactory.java
   trunk/profileservice/src/main/org/jboss/profileservice/domain/datasource/ConnectionFactorys.java
   trunk/profileservice/src/main/org/jboss/profileservice/domain/datasource/LocalDataSourceMetaData.java
   trunk/profileservice/src/main/org/jboss/profileservice/domain/resources/
   trunk/profileservice/src/main/org/jboss/profileservice/domain/resources/ConnectorResourceMetaData.java
   trunk/profileservice/src/main/org/jboss/profileservice/domain/resources/ResourcesMetaData.java
   trunk/profileservice/src/test/java/
   trunk/profileservice/src/test/java/org/
   trunk/profileservice/src/test/java/org/jboss/test/ps/DomainMetaDataTest.java
   trunk/profileservice/src/test/resources/xml/
   trunk/profileservice/src/test/resources/xml/domain1.xml
   trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/CapabilityMetaData.java
   trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/PropertiesXmlAdaptor.java
   trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/RequirementMetaData.java
Removed:
   trunk/profileservice/src/test/java/org/
   trunk/profileservice/src/test/main/
Modified:
   trunk/aspects/.classpath
   trunk/aspects/.project
   trunk/cluster/.classpath
   trunk/cluster/.project
   trunk/connector/pom.xml
   trunk/console/.classpath
   trunk/deployment/.classpath
   trunk/iiop/.classpath
   trunk/jbossas-jmx-remoting/.classpath
   trunk/jmx-remoting/.classpath
   trunk/main/.classpath
   trunk/management/.classpath
   trunk/messaging/.classpath
   trunk/profileservice/.classpath
   trunk/profileservice/pom.xml
   trunk/server/.classpath
   trunk/system-jmx/.classpath
   trunk/system/.classpath
   trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/AbstractProfileMetaData.java
   trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/FilteredProfileMetaData.java
   trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/ProfilesMetaData.java
   trunk/testsuite/.classpath
   trunk/tomcat/.classpath
Log:
Initial domain work


Modified: trunk/aspects/.classpath
===================================================================
--- trunk/aspects/.classpath	2009-08-10 07:06:29 UTC (rev 92188)
+++ trunk/aspects/.classpath	2009-08-10 07:16:17 UTC (rev 92189)
@@ -1,137 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
 <classpath>
-  <classpathentry kind="src" path="src/main"/>
-  <classpathentry kind="output" path="target/classes"/>
-  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
-  <classpathentry kind="var" path="M2_REPO/javax/activation/activation/1.1/activation-1.1.jar" sourcepath="M2_REPO/javax/activation/activation/1.1/activation-1.1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/apache/ant/ant/1.7.1/ant-1.7.1.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.1/ant-launcher-1.7.1.jar"/>
-  <classpathentry kind="var" path="M2_REPO/antlr/antlr/2.7.6-brew/antlr-2.7.6-brew.jar"/>
-  <classpathentry kind="var" path="M2_REPO/bcel/bcel/5.1/bcel-5.1.jar" sourcepath="M2_REPO/bcel/bcel/5.1/bcel-5.1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/beanshell/bsh/1.3.0/bsh-1.3.0.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/commons-logging/commons-logging/1.1.0.jboss/commons-logging-1.1.0.jboss.jar"/>
-  <classpathentry kind="var" path="M2_REPO/oswego-concurrent/concurrent/1.3.4-jboss-update1/concurrent-1.3.4-jboss-update1.jar" sourcepath="M2_REPO/oswego-concurrent/concurrent/1.3.4-jboss-update1/concurrent-1.3.4-jboss-update1-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/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.12-brew/getopt-1.0.12-brew.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.1.GA/hibernate-core-3.3.1.GA.jar" sourcepath="M2_REPO/org/hibernate/hibernate-core/3.3.1.GA/hibernate-core-3.3.1.GA-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.9.0.GA/javassist-3.9.0.GA.jar" sourcepath="M2_REPO/javassist/javassist/3.9.0.GA/javassist-3.9.0.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/sun-jaxb/jaxb-api/2.1.9/jaxb-api-2.1.9.jar" sourcepath="M2_REPO/sun-jaxb/jaxb-api/2.1.9/jaxb-api-2.1.9-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/sun-jaxws/jaxws-api/2.1.1/jaxws-api-2.1.1.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/aop/jboss-aop/2.1.3.GA/jboss-aop-2.1.3.GA.jar" sourcepath="M2_REPO/org/jboss/aop/jboss-aop/2.1.3.GA/jboss-aop-2.1.3.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/aop/jboss-aop-asintegration-core/2.1.3.GA/jboss-aop-asintegration-core-2.1.3.GA.jar" sourcepath="M2_REPO/org/jboss/aop/jboss-aop-asintegration-core/2.1.3.GA/jboss-aop-asintegration-core-2.1.3.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/aop/jboss-aop-asintegration-jmx/2.1.3.GA/jboss-aop-asintegration-jmx-2.1.3.GA.jar" sourcepath="M2_REPO/org/jboss/aop/jboss-aop-asintegration-jmx/2.1.3.GA/jboss-aop-asintegration-jmx-2.1.3.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/aop/jboss-aop-asintegration-mc/2.1.3.GA/jboss-aop-asintegration-mc-2.1.3.GA.jar" sourcepath="M2_REPO/org/jboss/aop/jboss-aop-asintegration-mc/2.1.3.GA/jboss-aop-asintegration-mc-2.1.3.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/aop/jboss-aop-aspects/2.1.3.GA/jboss-aop-aspects-2.1.3.GA.jar" sourcepath="M2_REPO/org/jboss/aop/jboss-aop-aspects/2.1.3.GA/jboss-aop-aspects-2.1.3.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/microcontainer/jboss-aop-mc-int/2.0.8.GA/jboss-aop-mc-int-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/microcontainer/jboss-aop-mc-int/2.0.8.GA/jboss-aop-mc-int-2.0.8.GA-sources.jar"/>
-  <classpathentry kind="src" path="/jboss-as-system"/>
-  <classpathentry kind="src" path="/jboss-as-system-jmx"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/bootstrap/jboss-bootstrap-spi/2.0.0-alpha-2/jboss-bootstrap-spi-2.0.0-alpha-2.jar" sourcepath="M2_REPO/org/jboss/bootstrap/jboss-bootstrap-spi/2.0.0-alpha-2/jboss-bootstrap-spi-2.0.0-alpha-2-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/bootstrap/jboss-bootstrap-spi-as/2.0.0-alpha-2/jboss-bootstrap-spi-as-2.0.0-alpha-2.jar" sourcepath="M2_REPO/org/jboss/bootstrap/jboss-bootstrap-spi-as/2.0.0-alpha-2/jboss-bootstrap-spi-as-2.0.0-alpha-2-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/bootstrap/jboss-bootstrap-spi-mc/2.0.0-alpha-1/jboss-bootstrap-spi-mc-2.0.0-alpha-1.jar" sourcepath="M2_REPO/org/jboss/bootstrap/jboss-bootstrap-spi-mc/2.0.0-alpha-1/jboss-bootstrap-spi-mc-2.0.0-alpha-1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/cl/jboss-classloader/2.0.6.GA/jboss-classloader-2.0.6.GA.jar" sourcepath="M2_REPO/org/jboss/cl/jboss-classloader/2.0.6.GA/jboss-classloader-2.0.6.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/cl/jboss-classloading/2.0.6.GA/jboss-classloading-2.0.6.GA.jar" sourcepath="M2_REPO/org/jboss/cl/jboss-classloading/2.0.6.GA/jboss-classloading-2.0.6.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/integration/jboss-classloading-spi/5.1.0.SP1/jboss-classloading-spi-5.1.0.SP1.jar" sourcepath="M2_REPO/org/jboss/integration/jboss-classloading-spi/5.1.0.SP1/jboss-classloading-spi-5.1.0.SP1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/cl/jboss-classloading-vfs/2.0.6.GA/jboss-classloading-vfs-2.0.6.GA.jar" sourcepath="M2_REPO/org/jboss/cl/jboss-classloading-vfs/2.0.6.GA/jboss-classloading-vfs-2.0.6.GA-sources.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/aspects/jboss-current-invocation-aspects/1.0.0.GA/jboss-current-invocation-aspects-1.0.0.GA.jar" sourcepath="M2_REPO/org/jboss/aspects/jboss-current-invocation-aspects/1.0.0.GA/jboss-current-invocation-aspects-1.0.0.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/microcontainer/jboss-dependency/2.0.8.GA/jboss-dependency-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/microcontainer/jboss-dependency/2.0.8.GA/jboss-dependency-2.0.8.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-client/2.0.8.GA/jboss-deployers-client-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-client/2.0.8.GA/jboss-deployers-client-2.0.8.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-client-spi/2.0.8.GA/jboss-deployers-client-spi-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-client-spi/2.0.8.GA/jboss-deployers-client-spi-2.0.8.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-core/2.0.8.GA/jboss-deployers-core-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-core/2.0.8.GA/jboss-deployers-core-2.0.8.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-core-spi/2.0.8.GA/jboss-deployers-core-spi-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-core-spi/2.0.8.GA/jboss-deployers-core-spi-2.0.8.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-impl/2.0.8.GA/jboss-deployers-impl-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-impl/2.0.8.GA/jboss-deployers-impl-2.0.8.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-spi/2.0.8.GA/jboss-deployers-spi-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-spi/2.0.8.GA/jboss-deployers-spi-2.0.8.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-structure-spi/2.0.8.GA/jboss-deployers-structure-spi-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-structure-spi/2.0.8.GA/jboss-deployers-structure-spi-2.0.8.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-vfs/2.0.8.GA/jboss-deployers-vfs-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-vfs/2.0.8.GA/jboss-deployers-vfs-2.0.8.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-vfs-spi/2.0.8.GA/jboss-deployers-vfs-spi-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-vfs-spi/2.0.8.GA/jboss-deployers-vfs-spi-2.0.8.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/ejb3/jboss-ejb3-as-int/1.1.10/jboss-ejb3-as-int-1.1.10.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-as-int/1.1.10/jboss-ejb3-as-int-1.1.10-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-cache/1.0.0/jboss-ejb3-cache-1.0.0.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-cache/1.0.0/jboss-ejb3-cache-1.0.0-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-common/1.0.0/jboss-ejb3-common-1.0.0.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-common/1.0.0/jboss-ejb3-common-1.0.0-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-core/1.1.10/jboss-ejb3-core-1.1.10.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-core/1.1.10/jboss-ejb3-core-1.1.10-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-deployers/1.0.0/jboss-ejb3-deployers-1.0.0.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-deployers/1.0.0/jboss-ejb3-deployers-1.0.0-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-endpoint/0.1.0/jboss-ejb3-endpoint-0.1.0.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-endpoint/0.1.0/jboss-ejb3-endpoint-0.1.0-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-ext-api/1.0.0/jboss-ejb3-ext-api-1.0.0.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-ext-api/1.0.0/jboss-ejb3-ext-api-1.0.0-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-ext-api-impl/1.0.0/jboss-ejb3-ext-api-impl-1.0.0.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-ext-api-impl/1.0.0/jboss-ejb3-ext-api-impl-1.0.0-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-interceptors/1.0.2/jboss-ejb3-interceptors-1.0.2.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-interceptors/1.0.2/jboss-ejb3-interceptors-1.0.2-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-mc-int/1.0.1/jboss-ejb3-mc-int-1.0.1.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-mc-int/1.0.1/jboss-ejb3-mc-int-1.0.1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-metadata/1.0.0/jboss-ejb3-metadata-1.0.0.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-metadata/1.0.0/jboss-ejb3-metadata-1.0.0-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-metrics-deployer/1.0.1/jboss-ejb3-metrics-deployer-1.0.1.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-metrics-deployer/1.0.1/jboss-ejb3-metrics-deployer-1.0.1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-proxy-clustered/1.0.1/jboss-ejb3-proxy-clustered-1.0.1.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-proxy-clustered/1.0.1/jboss-ejb3-proxy-clustered-1.0.1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-proxy-impl/1.0.3/jboss-ejb3-proxy-impl-1.0.3.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-proxy-impl/1.0.3/jboss-ejb3-proxy-impl-1.0.3-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-proxy-spi/1.0.0/jboss-ejb3-proxy-spi-1.0.0.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-proxy-spi/1.0.0/jboss-ejb3-proxy-spi-1.0.0-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-security/1.0.0/jboss-ejb3-security-1.0.0.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-security/1.0.0/jboss-ejb3-security-1.0.0-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-timerservice-spi/1.0.0/jboss-ejb3-timerservice-spi-1.0.0.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-timerservice-spi/1.0.0/jboss-ejb3-timerservice-spi-1.0.0-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ejb3/jboss-ejb3-transactions/1.0.1/jboss-ejb3-transactions-1.0.1.jar" sourcepath="M2_REPO/org/jboss/ejb3/jboss-ejb3-transactions/1.0.1/jboss-ejb3-transactions-1.0.1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/cluster/jboss-ha-client/1.1.1.GA/jboss-ha-client-1.1.1.GA.jar" sourcepath="M2_REPO/org/jboss/cluster/jboss-ha-client/1.1.1.GA/jboss-ha-client-1.1.1.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/cluster/jboss-ha-server-api/1.1.1.GA/jboss-ha-server-api-1.1.1.GA.jar" sourcepath="M2_REPO/org/jboss/cluster/jboss-ha-server-api/1.1.1.GA/jboss-ha-server-api-1.1.1.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/mx/jboss-j2se/6.0.0.Beta1/jboss-j2se-6.0.0.Beta1.jar" sourcepath="M2_REPO/org/jboss/mx/jboss-j2se/6.0.0.Beta1/jboss-j2se-6.0.0.Beta1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/mx/jboss-j2se/6.0.0.Beta1/jboss-j2se-6.0.0.Beta1-tests.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-jacc-api/1.1.0.GA_SP1/jboss-jacc-api-1.1.0.GA_SP1.jar" sourcepath="M2_REPO/org/jboss/javaee/jboss-jacc-api/1.1.0.GA_SP1/jboss-jacc-api-1.1.0.GA_SP1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-jaspi-api/1.0.0.GA/jboss-jaspi-api-1.0.0.GA.jar" sourcepath="M2_REPO/org/jboss/javaee/jboss-jaspi-api/1.0.0.GA/jboss-jaspi-api-1.0.0.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-jca-api/1.5.0.GA/jboss-jca-api-1.5.0.GA.jar" sourcepath="M2_REPO/org/jboss/javaee/jboss-jca-api/1.5.0.GA/jboss-jca-api-1.5.0.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/integration/jboss-jca-spi/5.0.3.GA/jboss-jca-spi-5.0.3.GA.jar" sourcepath="M2_REPO/org/jboss/integration/jboss-jca-spi/5.0.3.GA/jboss-jca-spi-5.0.3.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/mx/jboss-jmx/6.0.0.Beta1/jboss-jmx-6.0.0.Beta1.jar" sourcepath="M2_REPO/org/jboss/mx/jboss-jmx/6.0.0.Beta1/jboss-jmx-6.0.0.Beta1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/microcontainer/jboss-jmx-mc-int/2.2.0.M2/jboss-jmx-mc-int-2.2.0.M2.jar" sourcepath="M2_REPO/org/jboss/microcontainer/jboss-jmx-mc-int/2.2.0.M2/jboss-jmx-mc-int-2.2.0.M2-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/jpa/jboss-jpa-deployers/1.0.0/jboss-jpa-deployers-1.0.0.jar" sourcepath="M2_REPO/org/jboss/jpa/jboss-jpa-deployers/1.0.0/jboss-jpa-deployers-1.0.0-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/microcontainer/jboss-kernel/2.0.8.GA/jboss-kernel-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/microcontainer/jboss-kernel/2.0.8.GA/jboss-kernel-2.0.8.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/logging/jboss-logging-log4j/2.2.0.CR1/jboss-logging-log4j-2.2.0.CR1.jar" sourcepath="M2_REPO/org/jboss/logging/jboss-logging-log4j/2.2.0.CR1/jboss-logging-log4j-2.2.0.CR1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/logging/jboss-logging-spi/2.2.0.CR1/jboss-logging-spi-2.2.0.CR1.jar" sourcepath="M2_REPO/org/jboss/logging/jboss-logging-spi/2.2.0.CR1/jboss-logging-spi-2.2.0.CR1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/man/jboss-managed/2.1.1.CR1/jboss-managed-2.1.1.CR1.jar" sourcepath="M2_REPO/org/jboss/man/jboss-managed/2.1.1.CR1/jboss-managed-2.1.1.CR1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/mx/jboss-mbeans/6.0.0.Beta1/jboss-mbeans-6.0.0.Beta1.jar" sourcepath="M2_REPO/org/jboss/mx/jboss-mbeans/6.0.0.Beta1/jboss-mbeans-6.0.0.Beta1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/mx/jboss-mbeanserver/6.0.0.Beta2/jboss-mbeanserver-6.0.0.Beta2.jar" sourcepath="M2_REPO/org/jboss/mx/jboss-mbeanserver/6.0.0.Beta2/jboss-mbeanserver-6.0.0.Beta2-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-mdr/2.0.2.GA/jboss-mdr-2.0.2.GA.jar" sourcepath="M2_REPO/org/jboss/jboss-mdr/2.0.2.GA/jboss-mdr-2.0.2.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/metadata/jboss-metadata/1.0.1.GA/jboss-metadata-1.0.1.GA.jar" sourcepath="M2_REPO/org/jboss/metadata/jboss-metadata/1.0.1.GA/jboss-metadata-1.0.1.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/man/jboss-metatype/2.1.1.CR1/jboss-metatype-2.1.1.CR1.jar" sourcepath="M2_REPO/org/jboss/man/jboss-metatype/2.1.1.CR1/jboss-metatype-2.1.1.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/integration/jboss-profileservice-spi/5.1.0.SP1/jboss-profileservice-spi-5.1.0.SP1.jar" sourcepath="M2_REPO/org/jboss/integration/jboss-profileservice-spi/5.1.0.SP1/jboss-profileservice-spi-5.1.0.SP1-sources.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/remoting/jboss-remoting/2.5.0.SP2/jboss-remoting-2.5.0.SP2.jar" sourcepath="M2_REPO/org/jboss/remoting/jboss-remoting/2.5.0.SP2/jboss-remoting-2.5.0.SP2-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/aspects/jboss-remoting-aspects/1.0.1.GA/jboss-remoting-aspects-1.0.1.GA.jar" sourcepath="M2_REPO/org/jboss/aspects/jboss-remoting-aspects/1.0.1.GA/jboss-remoting-aspects-1.0.1.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/aspects/jboss-security-aspects/1.0.1/jboss-security-aspects-1.0.1.jar" sourcepath="M2_REPO/org/jboss/aspects/jboss-security-aspects/1.0.1/jboss-security-aspects-1.0.1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/security/jboss-security-spi/2.1.0.20090318/jboss-security-spi-2.1.0.20090318.jar" sourcepath="M2_REPO/org/jboss/security/jboss-security-spi/2.1.0.20090318/jboss-security-spi-2.1.0.20090318-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/jboss/jboss-serialization/1.0.3.GA/jboss-serialization-1.0.3.GA.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/aspects/jboss-transaction-aspects/1.0.0.GA/jboss-transaction-aspects-1.0.0.GA.jar" sourcepath="M2_REPO/org/jboss/aspects/jboss-transaction-aspects/1.0.0.GA/jboss-transaction-aspects-1.0.0.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/integration/jboss-transaction-spi/5.1.0.SP1/jboss-transaction-spi-5.1.0.SP1.jar" sourcepath="M2_REPO/org/jboss/integration/jboss-transaction-spi/5.1.0.SP1/jboss-transaction-spi-5.1.0.SP1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-vfs/2.1.2.GA/jboss-vfs-2.1.2.GA.jar" sourcepath="M2_REPO/org/jboss/jboss-vfs/2.1.2.GA/jboss-vfs-2.1.2.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/cache/jbosscache-core/3.1.0.GA/jbosscache-core-3.1.0.GA.jar" sourcepath="M2_REPO/org/jboss/cache/jbosscache-core/3.1.0.GA/jbosscache-core-3.1.0.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/security/jbosssx/2.1.0.20090318/jbosssx-2.1.0.20090318.jar" sourcepath="M2_REPO/org/jboss/security/jbosssx/2.1.0.20090318/jbosssx-2.1.0.20090318-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/security/jbosssx-client/2.1.0.20090318/jbosssx-client-2.1.0.20090318.jar" sourcepath="M2_REPO/org/jboss/security/jbosssx-client/2.1.0.20090318/jbosssx-client-2.1.0.20090318-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ws/native/jbossws-native-jaxrpc/3.2.0.Beta1/jbossws-native-jaxrpc-3.2.0.Beta1.jar" sourcepath="M2_REPO/org/jboss/ws/native/jbossws-native-jaxrpc/3.2.0.Beta1/jbossws-native-jaxrpc-3.2.0.Beta1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ws/native/jbossws-native-saaj/3.2.0.Beta1/jbossws-native-saaj-3.2.0.Beta1.jar" sourcepath="M2_REPO/org/jboss/ws/native/jbossws-native-saaj/3.2.0.Beta1/jbossws-native-saaj-3.2.0.Beta1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ws/jbossws-spi/1.2.0.Beta1/jbossws-spi-1.2.0.Beta1.jar" sourcepath="M2_REPO/org/jboss/ws/jbossws-spi/1.2.0.Beta1/jbossws-spi-1.2.0.Beta1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/jbossxb/2.0.1.GA/jbossxb-2.0.1.GA.jar" sourcepath="M2_REPO/org/jboss/jbossxb/2.0.1.GA/jbossxb-2.0.1.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/jgroups/jgroups/2.6.11.GA/jgroups-2.6.11.GA.jar" sourcepath="M2_REPO/jgroups/jgroups/2.6.11.GA/jgroups-2.6.11.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/naming/jnp-client/5.0.3.GA/jnp-client-5.0.3.GA.jar" sourcepath="M2_REPO/org/jboss/naming/jnp-client/5.0.3.GA/jnp-client-5.0.3.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/naming/jnpserver/5.0.3.GA/jnpserver-5.0.3.GA.jar" sourcepath="M2_REPO/org/jboss/naming/jnpserver/5.0.3.GA/jnpserver-5.0.3.GA-sources.jar">
-    <attributes>
-      <attribute value="jar:file:/Users/svn/repository.jboss.org/maven2/org/jboss/naming/jnpserver/5.0.3.GA/jnpserver-5.0.3.GA-javadoc.jar!/" name="javadoc_location"/>
-    </attributes>
-  </classpathentry>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/aop/jrockit-pluggable-instrumentor/2.1.3.GA/jrockit-pluggable-instrumentor-2.1.3.GA.jar" sourcepath="M2_REPO/org/jboss/aop/jrockit-pluggable-instrumentor/2.1.3.GA/jrockit-pluggable-instrumentor-2.1.3.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/sun-jaxws/jsr181-api/2.1.1/jsr181-api-2.1.1.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/3.8.2/junit-3.8.2.jar" sourcepath="M2_REPO/junit/junit/3.8.2/junit-3.8.2-sources.jar">
-    <attributes>
-      <attribute value="jar:file:/Users/svn/repository.jboss.org/maven2/junit/junit/3.8.2/junit-3.8.2-javadoc.jar!/" name="javadoc_location"/>
-    </attributes>
-  </classpathentry>
-  <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/org/jboss/aop/pluggable-instrumentor/2.1.3.GA/pluggable-instrumentor-2.1.3.GA.jar" sourcepath="M2_REPO/org/jboss/aop/pluggable-instrumentor/2.1.3.GA/pluggable-instrumentor-2.1.3.GA-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/quartz/quartz/1.5.2/quartz-1.5.2.jar" sourcepath="M2_REPO/quartz/quartz/1.5.2/quartz-1.5.2-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/jboss/web/servlet-api/2.1.2.GA/servlet-api-2.1.2.GA.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.5.6/slf4j-api-1.5.6.jar" sourcepath="M2_REPO/org/slf4j/slf4j-api/1.5.6/slf4j-api-1.5.6-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/1.0.2/trove-1.0.2.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
+	<classpathentry kind="src" output="target/classes" path="src/main"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

Modified: trunk/aspects/.project
===================================================================
--- trunk/aspects/.project	2009-08-10 07:06:29 UTC (rev 92188)
+++ trunk/aspects/.project	2009-08-10 07:16:17 UTC (rev 92189)
@@ -1,16 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
 <projectDescription>
-  <name>jboss-as-aspects</name>
-  <comment>JBoss Application Server (aspects module)</comment>
-  <projects>
-    <project>jboss-as-system</project>
-    <project>jboss-as-system-jmx</project>
-  </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
+	<name>jboss-as-aspects</name>
+	<comment>JBoss Application Server (aspects module)</comment>
+	<projects>
+		<project>jboss-as-system</project>
+		<project>jboss-as-system-jmx</project>
+	</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: trunk/cluster/.classpath
===================================================================
--- trunk/cluster/.classpath	2009-08-10 07:06:29 UTC (rev 92188)
+++ trunk/cluster/.classpath	2009-08-10 07:16:17 UTC (rev 92189)
@@ -1,110 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
 <classpath>
-  <classpathentry kind="src" path="src/examples"/>
-  <classpathentry kind="src" path="src/main"/>
-  <classpathentry kind="output" path="target/classes"/>
-  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
-  <classpathentry kind="var" path="M2_REPO/javax/activation/activation/1.1/activation-1.1.jar" sourcepath="M2_REPO/javax/activation/activation/1.1/activation-1.1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/apache/ant/ant/1.7.1/ant-1.7.1.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/apache/ant/ant-launcher/1.7.1/ant-launcher-1.7.1.jar"/>
-  <classpathentry kind="var" path="M2_REPO/antlr/antlr/2.7.6-brew/antlr-2.7.6-brew.jar"/>
-  <classpathentry kind="var" path="M2_REPO/bcel/bcel/5.1/bcel-5.1.jar" sourcepath="M2_REPO/bcel/bcel/5.1/bcel-5.1-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/oswego-concurrent/concurrent/1.3.4-jboss-update1/concurrent-1.3.4-jboss-update1.jar" sourcepath="M2_REPO/oswego-concurrent/concurrent/1.3.4-jboss-update1/concurrent-1.3.4-jboss-update1-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/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.12-brew/getopt-1.0.12-brew.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.1.GA/hibernate-core-3.3.1.GA.jar" sourcepath="M2_REPO/org/hibernate/hibernate-core/3.3.1.GA/hibernate-core-3.3.1.GA-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.9.0.GA/javassist-3.9.0.GA.jar" sourcepath="M2_REPO/javassist/javassist/3.9.0.GA/javassist-3.9.0.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/sun-jaxb/jaxb-api/2.1.9/jaxb-api-2.1.9.jar" sourcepath="M2_REPO/sun-jaxb/jaxb-api/2.1.9/jaxb-api-2.1.9-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/aop/jboss-aop/2.1.3.GA/jboss-aop-2.1.3.GA.jar" sourcepath="M2_REPO/org/jboss/aop/jboss-aop/2.1.3.GA/jboss-aop-2.1.3.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/microcontainer/jboss-aop-mc-int/2.0.8.GA/jboss-aop-mc-int-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/microcontainer/jboss-aop-mc-int/2.0.8.GA/jboss-aop-mc-int-2.0.8.GA-sources.jar"/>
-  <classpathentry kind="src" path="/jboss-as-deployment"/>
-  <classpathentry kind="src" path="/jboss-as-security"/>
-  <classpathentry kind="src" path="/jboss-as-server"/>
-  <classpathentry kind="src" path="/jboss-as-system"/>
-  <classpathentry kind="src" path="/jboss-as-system-jmx"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/bootstrap/jboss-bootstrap-spi/2.0.0-alpha-2/jboss-bootstrap-spi-2.0.0-alpha-2.jar" sourcepath="M2_REPO/org/jboss/bootstrap/jboss-bootstrap-spi/2.0.0-alpha-2/jboss-bootstrap-spi-2.0.0-alpha-2-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/bootstrap/jboss-bootstrap-spi-as/2.0.0-alpha-2/jboss-bootstrap-spi-as-2.0.0-alpha-2.jar" sourcepath="M2_REPO/org/jboss/bootstrap/jboss-bootstrap-spi-as/2.0.0-alpha-2/jboss-bootstrap-spi-as-2.0.0-alpha-2-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/bootstrap/jboss-bootstrap-spi-mc/2.0.0-alpha-1/jboss-bootstrap-spi-mc-2.0.0-alpha-1.jar" sourcepath="M2_REPO/org/jboss/bootstrap/jboss-bootstrap-spi-mc/2.0.0-alpha-1/jboss-bootstrap-spi-mc-2.0.0-alpha-1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/cl/jboss-classloader/2.0.6.GA/jboss-classloader-2.0.6.GA.jar" sourcepath="M2_REPO/org/jboss/cl/jboss-classloader/2.0.6.GA/jboss-classloader-2.0.6.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/cl/jboss-classloading/2.0.6.GA/jboss-classloading-2.0.6.GA.jar" sourcepath="M2_REPO/org/jboss/cl/jboss-classloading/2.0.6.GA/jboss-classloading-2.0.6.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/integration/jboss-classloading-spi/5.1.0.SP1/jboss-classloading-spi-5.1.0.SP1.jar" sourcepath="M2_REPO/org/jboss/integration/jboss-classloading-spi/5.1.0.SP1/jboss-classloading-spi-5.1.0.SP1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/cl/jboss-classloading-vfs/2.0.6.GA/jboss-classloading-vfs-2.0.6.GA.jar" sourcepath="M2_REPO/org/jboss/cl/jboss-classloading-vfs/2.0.6.GA/jboss-classloading-vfs-2.0.6.GA-sources.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/microcontainer/jboss-dependency/2.0.8.GA/jboss-dependency-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/microcontainer/jboss-dependency/2.0.8.GA/jboss-dependency-2.0.8.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-client/2.0.8.GA/jboss-deployers-client-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-client/2.0.8.GA/jboss-deployers-client-2.0.8.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-client-spi/2.0.8.GA/jboss-deployers-client-spi-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-client-spi/2.0.8.GA/jboss-deployers-client-spi-2.0.8.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-core/2.0.8.GA/jboss-deployers-core-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-core/2.0.8.GA/jboss-deployers-core-2.0.8.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-core-spi/2.0.8.GA/jboss-deployers-core-spi-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-core-spi/2.0.8.GA/jboss-deployers-core-spi-2.0.8.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-impl/2.0.8.GA/jboss-deployers-impl-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-impl/2.0.8.GA/jboss-deployers-impl-2.0.8.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-spi/2.0.8.GA/jboss-deployers-spi-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-spi/2.0.8.GA/jboss-deployers-spi-2.0.8.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-structure-spi/2.0.8.GA/jboss-deployers-structure-spi-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-structure-spi/2.0.8.GA/jboss-deployers-structure-spi-2.0.8.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-vfs/2.0.8.GA/jboss-deployers-vfs-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-vfs/2.0.8.GA/jboss-deployers-vfs-2.0.8.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/deployers/jboss-deployers-vfs-spi/2.0.8.GA/jboss-deployers-vfs-spi-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/deployers/jboss-deployers-vfs-spi/2.0.8.GA/jboss-deployers-vfs-spi-2.0.8.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/integration/jboss-deployment-spi/5.1.0.SP1/jboss-deployment-spi-5.1.0.SP1.jar" sourcepath="M2_REPO/org/jboss/integration/jboss-deployment-spi/5.1.0.SP1/jboss-deployment-spi-5.1.0.SP1-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/cluster/jboss-ha-client/1.1.1.GA/jboss-ha-client-1.1.1.GA.jar" sourcepath="M2_REPO/org/jboss/cluster/jboss-ha-client/1.1.1.GA/jboss-ha-client-1.1.1.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/cluster/jboss-ha-server-api/1.1.1.GA/jboss-ha-server-api-1.1.1.GA.jar" sourcepath="M2_REPO/org/jboss/cluster/jboss-ha-server-api/1.1.1.GA/jboss-ha-server-api-1.1.1.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/cluster/jboss-ha-server-cache-jbc/2.0.0.GA/jboss-ha-server-cache-jbc-2.0.0.GA.jar" sourcepath="M2_REPO/org/jboss/cluster/jboss-ha-server-cache-jbc/2.0.0.GA/jboss-ha-server-cache-jbc-2.0.0.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/cluster/jboss-ha-server-cache-spi/2.0.0.GA/jboss-ha-server-cache-spi-2.0.0.GA.jar" sourcepath="M2_REPO/org/jboss/cluster/jboss-ha-server-cache-spi/2.0.0.GA/jboss-ha-server-cache-spi-2.0.0.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/mx/jboss-j2se/6.0.0.Beta1/jboss-j2se-6.0.0.Beta1.jar" sourcepath="M2_REPO/org/jboss/mx/jboss-j2se/6.0.0.Beta1/jboss-j2se-6.0.0.Beta1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/mx/jboss-j2se/6.0.0.Beta1/jboss-j2se-6.0.0.Beta1-tests.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-jacc-api/1.1.0.GA_SP1/jboss-jacc-api-1.1.0.GA_SP1.jar" sourcepath="M2_REPO/org/jboss/javaee/jboss-jacc-api/1.1.0.GA_SP1/jboss-jacc-api-1.1.0.GA_SP1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-jad-api/1.2.0.GA/jboss-jad-api-1.2.0.GA.jar" sourcepath="M2_REPO/org/jboss/javaee/jboss-jad-api/1.2.0.GA/jboss-jad-api-1.2.0.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-jaspi-api/1.0.0.GA/jboss-jaspi-api-1.0.0.GA.jar" sourcepath="M2_REPO/org/jboss/javaee/jboss-jaspi-api/1.0.0.GA/jboss-jaspi-api-1.0.0.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/javaee/jboss-jca-api/1.5.0.GA/jboss-jca-api-1.5.0.GA.jar" sourcepath="M2_REPO/org/jboss/javaee/jboss-jca-api/1.5.0.GA/jboss-jca-api-1.5.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/mx/jboss-jmx/6.0.0.Beta1/jboss-jmx-6.0.0.Beta1.jar" sourcepath="M2_REPO/org/jboss/mx/jboss-jmx/6.0.0.Beta1/jboss-jmx-6.0.0.Beta1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/jpa/jboss-jpa-deployers/1.0.0/jboss-jpa-deployers-1.0.0.jar" sourcepath="M2_REPO/org/jboss/jpa/jboss-jpa-deployers/1.0.0/jboss-jpa-deployers-1.0.0-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/microcontainer/jboss-kernel/2.0.8.GA/jboss-kernel-2.0.8.GA.jar" sourcepath="M2_REPO/org/jboss/microcontainer/jboss-kernel/2.0.8.GA/jboss-kernel-2.0.8.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/logging/jboss-logging-log4j/2.2.0.CR1/jboss-logging-log4j-2.2.0.CR1.jar" sourcepath="M2_REPO/org/jboss/logging/jboss-logging-log4j/2.2.0.CR1/jboss-logging-log4j-2.2.0.CR1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/logging/jboss-logging-spi/2.2.0.CR1/jboss-logging-spi-2.2.0.CR1.jar" sourcepath="M2_REPO/org/jboss/logging/jboss-logging-spi/2.2.0.CR1/jboss-logging-spi-2.2.0.CR1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/man/jboss-managed/2.1.1.CR1/jboss-managed-2.1.1.CR1.jar" sourcepath="M2_REPO/org/jboss/man/jboss-managed/2.1.1.CR1/jboss-managed-2.1.1.CR1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/mx/jboss-mbeans/6.0.0.Beta1/jboss-mbeans-6.0.0.Beta1.jar" sourcepath="M2_REPO/org/jboss/mx/jboss-mbeans/6.0.0.Beta1/jboss-mbeans-6.0.0.Beta1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-mdr/2.0.2.GA/jboss-mdr-2.0.2.GA.jar" sourcepath="M2_REPO/org/jboss/jboss-mdr/2.0.2.GA/jboss-mdr-2.0.2.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/metadata/jboss-metadata/1.0.1.GA/jboss-metadata-1.0.1.GA.jar" sourcepath="M2_REPO/org/jboss/metadata/jboss-metadata/1.0.1.GA/jboss-metadata-1.0.1.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/man/jboss-metatype/2.1.1.CR1/jboss-metatype-2.1.1.CR1.jar" sourcepath="M2_REPO/org/jboss/man/jboss-metatype/2.1.1.CR1/jboss-metatype-2.1.1.CR1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/integration/jboss-profileservice-spi/5.1.0.SP1/jboss-profileservice-spi-5.1.0.SP1.jar" sourcepath="M2_REPO/org/jboss/integration/jboss-profileservice-spi/5.1.0.SP1/jboss-profileservice-spi-5.1.0.SP1-sources.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/remoting/jboss-remoting/2.5.0.SP2/jboss-remoting-2.5.0.SP2.jar" sourcepath="M2_REPO/org/jboss/remoting/jboss-remoting/2.5.0.SP2/jboss-remoting-2.5.0.SP2-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/security/jboss-security-spi/2.1.0.20090318/jboss-security-spi-2.1.0.20090318.jar" sourcepath="M2_REPO/org/jboss/security/jboss-security-spi/2.1.0.20090318/jboss-security-spi-2.1.0.20090318-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/jboss/jboss-serialization/1.0.3.GA/jboss-serialization-1.0.3.GA.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/service/binding/jboss-service-binding-core/1.0.0.CR1/jboss-service-binding-core-1.0.0.CR1.jar" sourcepath="M2_REPO/org/jboss/service/binding/jboss-service-binding-core/1.0.0.CR1/jboss-service-binding-core-1.0.0.CR1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/service/binding/jboss-service-binding-mgmt/1.0.0.CR1/jboss-service-binding-mgmt-1.0.0.CR1.jar" sourcepath="M2_REPO/org/jboss/service/binding/jboss-service-binding-mgmt/1.0.0.CR1/jboss-service-binding-mgmt-1.0.0.CR1-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/integration/jboss-transaction-spi/5.1.0.SP1/jboss-transaction-spi-5.1.0.SP1.jar" sourcepath="M2_REPO/org/jboss/integration/jboss-transaction-spi/5.1.0.SP1/jboss-transaction-spi-5.1.0.SP1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/jboss-vfs/2.1.2.GA/jboss-vfs-2.1.2.GA.jar" sourcepath="M2_REPO/org/jboss/jboss-vfs/2.1.2.GA/jboss-vfs-2.1.2.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/security/jbosssx/2.1.0.20090318/jbosssx-2.1.0.20090318.jar" sourcepath="M2_REPO/org/jboss/security/jbosssx/2.1.0.20090318/jbosssx-2.1.0.20090318-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/security/jbosssx-client/2.1.0.20090318/jbosssx-client-2.1.0.20090318.jar" sourcepath="M2_REPO/org/jboss/security/jbosssx-client/2.1.0.20090318/jbosssx-client-2.1.0.20090318-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ws/native/jbossws-native-jaxrpc/3.2.0.Beta1/jbossws-native-jaxrpc-3.2.0.Beta1.jar" sourcepath="M2_REPO/org/jboss/ws/native/jbossws-native-jaxrpc/3.2.0.Beta1/jbossws-native-jaxrpc-3.2.0.Beta1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ws/native/jbossws-native-jaxws/3.2.0.Beta1/jbossws-native-jaxws-3.2.0.Beta1.jar" sourcepath="M2_REPO/org/jboss/ws/native/jbossws-native-jaxws/3.2.0.Beta1/jbossws-native-jaxws-3.2.0.Beta1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/ws/native/jbossws-native-saaj/3.2.0.Beta1/jbossws-native-saaj-3.2.0.Beta1.jar" sourcepath="M2_REPO/org/jboss/ws/native/jbossws-native-saaj/3.2.0.Beta1/jbossws-native-saaj-3.2.0.Beta1-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/security/jbossxacml/2.0.3.SP2/jbossxacml-2.0.3.SP2.jar" sourcepath="M2_REPO/org/jboss/security/jbossxacml/2.0.3.SP2/jbossxacml-2.0.3.SP2-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/jbossxb/2.0.1.GA/jbossxb-2.0.1.GA.jar" sourcepath="M2_REPO/org/jboss/jbossxb/2.0.1.GA/jbossxb-2.0.1.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/slf4j/jcl-over-slf4j/1.5.6/jcl-over-slf4j-1.5.6.jar" sourcepath="M2_REPO/org/slf4j/jcl-over-slf4j/1.5.6/jcl-over-slf4j-1.5.6-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/jgroups/jgroups/2.6.11.GA/jgroups-2.6.11.GA.jar" sourcepath="M2_REPO/jgroups/jgroups/2.6.11.GA/jgroups-2.6.11.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/naming/jnp-client/5.0.3.GA/jnp-client-5.0.3.GA.jar" sourcepath="M2_REPO/org/jboss/naming/jnp-client/5.0.3.GA/jnp-client-5.0.3.GA-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/jboss/naming/jnpserver/5.0.3.GA/jnpserver-5.0.3.GA.jar" sourcepath="M2_REPO/org/jboss/naming/jnpserver/5.0.3.GA/jnpserver-5.0.3.GA-sources.jar">
-    <attributes>
-      <attribute value="jar:file:/Users/svn/repository.jboss.org/maven2/org/jboss/naming/jnpserver/5.0.3.GA/jnpserver-5.0.3.GA-javadoc.jar!/" name="javadoc_location"/>
-    </attributes>
-  </classpathentry>
-  <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/3.8.2/junit-3.8.2.jar" sourcepath="M2_REPO/junit/junit/3.8.2/junit-3.8.2-sources.jar">
-    <attributes>
-      <attribute value="jar:file:/Users/svn/repository.jboss.org/maven2/junit/junit/3.8.2/junit-3.8.2-javadoc.jar!/" name="javadoc_location"/>
-    </attributes>
-  </classpathentry>
-  <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/jboss/web/servlet-api/2.1.2.GA/servlet-api-2.1.2.GA.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/slf4j/slf4j-api/1.5.6/slf4j-api-1.5.6.jar" sourcepath="M2_REPO/org/slf4j/slf4j-api/1.5.6/slf4j-api-1.5.6-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/1.0.2/trove-1.0.2.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" sourcepath="M2_REPO/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2-sources.jar"/>
-  <classpathentry kind="var" path="M2_REPO/org/apache/xmlsec/1.4.2/xmlsec-1.4.2.jar" sourcepath="M2_REPO/org/apache/xmlsec/1.4.2/xmlsec-1.4.2-sources.jar"/>
-</classpath>
\ No newline at end of file
+	<classpathentry kind="src" output="target/classes" path="src/main"/>
+	<classpathentry kind="src" output="target/classes" path="src/examples"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

Modified: trunk/cluster/.project
===================================================================
--- trunk/cluster/.project	2009-08-10 07:06:29 UTC (rev 92188)
+++ trunk/cluster/.project	2009-08-10 07:16:17 UTC (rev 92189)
@@ -1,19 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
 <projectDescription>
-  <name>jboss-as-cluster</name>
-  <comment>JBoss Application Server (cluster module)</comment>
-  <projects>
-    <project>jboss-as-deployment</project>
-    <project>jboss-as-security</project>
-    <project>jboss-as-server</project>
-    <project>jboss-as-system</project>
-    <project>jboss-as-system-jmx</project>
-  </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
+	<name>jboss-as-cluster</name>
+	<comment>JBoss Application Server (cluster module)</comment>
+	<projects>
+		<project>jboss-as-deployment</project>
+		<project>jboss-as-security</project>
+		<project>jboss-as-server</project>
+		<project>jboss-as-system</project>
+		<project>jboss-as-system-jmx</project>
+	</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: trunk/connector/pom.xml
===================================================================
--- trunk/connector/pom.xml	2009-08-10 07:06:29 UTC (rev 92188)
+++ trunk/connector/pom.xml	2009-08-10 07:16:17 UTC (rev 92189)
@@ -18,6 +18,7 @@
   <build>
     <finalName>${artifactId}</finalName>
     <sourceDirectory>src/main</sourceDirectory>
+    <testSourceDirectory>src/test</testSourceDirectory>
     <plugins>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>

Modified: trunk/console/.classpath
===================================================================
--- trunk/console/.classpath	2009-08-10 07:06:29 UTC (rev 92188)
+++ trunk/console/.classpath	2009-08-10 07:16:17 UTC (rev 92189)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
 	<classpathentry kind="src" output="target/classes" path="src/main"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
 	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
 	<classpathentry kind="output" path="target/classes"/>
 </classpath>

Modified: trunk/deployment/.classpath
===================================================================
--- trunk/deployment/.classpath	2009-08-10 07:06:29 UTC (rev 92188)
+++ trunk/deployment/.classpath	2009-08-10 07:16:17 UTC (rev 92189)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
 	<classpathentry kind="src" output="target/classes" path="src/main"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
 	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
 	<classpathentry kind="output" path="target/classes"/>
 </classpath>

Modified: trunk/iiop/.classpath
===================================================================
--- trunk/iiop/.classpath	2009-08-10 07:06:29 UTC (rev 92188)
+++ trunk/iiop/.classpath	2009-08-10 07:16:17 UTC (rev 92189)
@@ -2,7 +2,7 @@
 <classpath>
 	<classpathentry excluding="org/jboss/iiop/SunJDK14IsLocalBugFix.java" kind="src" output="target/classes" path="src/main"/>
 	<classpathentry kind="src" output="target/classes" path="target/generated-sources/idl"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
 	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
 	<classpathentry kind="output" path="target/classes"/>
 </classpath>

Modified: trunk/jbossas-jmx-remoting/.classpath
===================================================================
--- trunk/jbossas-jmx-remoting/.classpath	2009-08-10 07:06:29 UTC (rev 92188)
+++ trunk/jbossas-jmx-remoting/.classpath	2009-08-10 07:16:17 UTC (rev 92189)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
 	<classpathentry kind="src" output="target/classes" path="src/main"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
 	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
 	<classpathentry kind="output" path="target/classes"/>
 </classpath>

Modified: trunk/jmx-remoting/.classpath
===================================================================
--- trunk/jmx-remoting/.classpath	2009-08-10 07:06:29 UTC (rev 92188)
+++ trunk/jmx-remoting/.classpath	2009-08-10 07:16:17 UTC (rev 92189)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
 	<classpathentry kind="src" output="target/classes" path="src/main"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
 	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
 	<classpathentry kind="output" path="target/classes"/>
 </classpath>

Modified: trunk/main/.classpath
===================================================================
--- trunk/main/.classpath	2009-08-10 07:06:29 UTC (rev 92188)
+++ trunk/main/.classpath	2009-08-10 07:16:17 UTC (rev 92189)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
 	<classpathentry kind="src" output="target/classes" path="src/main"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
 	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
 	<classpathentry kind="output" path="target/classes"/>
 </classpath>

Modified: trunk/management/.classpath
===================================================================
--- trunk/management/.classpath	2009-08-10 07:06:29 UTC (rev 92188)
+++ trunk/management/.classpath	2009-08-10 07:16:17 UTC (rev 92189)
@@ -2,7 +2,7 @@
 <classpath>
 	<classpathentry kind="src" output="target/classes" path="src/main"/>
 	<classpathentry excluding="**" kind="src" output="target/classes" path="src/resources"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
 	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
 	<classpathentry kind="output" path="target/classes"/>
 </classpath>

Modified: trunk/messaging/.classpath
===================================================================
--- trunk/messaging/.classpath	2009-08-10 07:06:29 UTC (rev 92188)
+++ trunk/messaging/.classpath	2009-08-10 07:16:17 UTC (rev 92189)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
 	<classpathentry kind="src" output="target/classes" path="src/main"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
 	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
 	<classpathentry kind="output" path="target/classes"/>
 </classpath>

Modified: trunk/profileservice/.classpath
===================================================================
--- trunk/profileservice/.classpath	2009-08-10 07:06:29 UTC (rev 92188)
+++ trunk/profileservice/.classpath	2009-08-10 07:16:17 UTC (rev 92189)
@@ -1,8 +1,10 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
 	<classpathentry kind="src" output="target/classes" path="src/main"/>
+	<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
 	<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
 	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
 	<classpathentry kind="output" path="target/classes"/>
 </classpath>

Modified: trunk/profileservice/pom.xml
===================================================================
--- trunk/profileservice/pom.xml	2009-08-10 07:06:29 UTC (rev 92188)
+++ trunk/profileservice/pom.xml	2009-08-10 07:16:17 UTC (rev 92189)
@@ -110,6 +110,7 @@
     <dependency>
       <groupId>junit</groupId>
       <artifactId>junit</artifactId>
+      <version>4.5</version>
       <scope>test</scope>
     </dependency>
     <dependency>

Added: trunk/profileservice/src/main/org/jboss/profileservice/domain/DomainMetaData.java
===================================================================
--- trunk/profileservice/src/main/org/jboss/profileservice/domain/DomainMetaData.java	                        (rev 0)
+++ trunk/profileservice/src/main/org/jboss/profileservice/domain/DomainMetaData.java	2009-08-10 07:16:17 UTC (rev 92189)
@@ -0,0 +1,92 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, 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.profileservice.domain;
+
+import javax.xml.bind.annotation.XmlAnyElement;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlNsForm;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+import org.jboss.profileservice.domain.resources.ResourcesMetaData;
+import org.jboss.system.server.profile.repository.metadata.ProfilesMetaData;
+import org.jboss.xb.annotations.JBossXmlSchema;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+ at XmlRootElement(name = "domain")
+ at JBossXmlSchema(
+      ignoreUnresolvedFieldOrClass=false,
+      namespace= "urn:jboss:profileservice:domain:1.0",
+      elementFormDefault=XmlNsForm.QUALIFIED,
+      normalizeSpace=true)
+ at XmlType(name = "domainType")
+public class DomainMetaData
+{
+   private String name;
+   /** TODO, this metadata needs to be moved */
+   private ProfilesMetaData profiles;
+   private ResourcesMetaData resources;
+
+   @XmlAttribute
+   public String getName()
+   {
+      return name;
+   }
+   public void setName(String name)
+   {
+      this.name = name;
+   }
+
+   @XmlElement(name="profiles", namespace="urn:jboss:profileservice:profiles:1.0")
+   public ProfilesMetaData getProfiles()
+   {
+      return profiles;
+   }
+   public void setProfiles(ProfilesMetaData profiles)
+   {
+      this.profiles = profiles;
+   }
+
+   @XmlElement(name="resources")
+   public ResourcesMetaData getResources()
+   {
+      return resources;
+   }
+   public void setResources(ResourcesMetaData resources)
+   {
+      this.resources = resources;
+   }
+
+   public String toString()
+   {
+      StringBuffer tmp = new StringBuffer("Domain(");
+      tmp.append(name);
+      tmp.append("), profiles: ");
+      tmp.append(profiles);
+      tmp.append(")");
+      return tmp.toString();
+   }
+}

Added: trunk/profileservice/src/main/org/jboss/profileservice/domain/DomainProfileFactory.java
===================================================================
--- trunk/profileservice/src/main/org/jboss/profileservice/domain/DomainProfileFactory.java	                        (rev 0)
+++ trunk/profileservice/src/main/org/jboss/profileservice/domain/DomainProfileFactory.java	2009-08-10 07:16:17 UTC (rev 92189)
@@ -0,0 +1,333 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, 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.profileservice.domain;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.net.URI;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.List;
+
+import org.jboss.profileservice.spi.ProfileKey;
+import org.jboss.profileservice.spi.metadata.ProfileMetaData;
+import org.jboss.profileservice.spi.metadata.SubProfileMetaData;
+import org.jboss.system.server.profile.repository.metadata.FilteredProfileMetaData;
+import org.jboss.system.server.profile.repository.metadata.HotDeploymentProfileMetaData;
+import org.jboss.system.server.profile.repository.metadata.ProfilesMetaData;
+import org.jboss.system.server.profileservice.repository.AbstractBootstrapProfileFactory;
+import org.jboss.virtual.VFS;
+import org.jboss.virtual.VirtualFile;
+import org.jboss.xb.binding.JBossXBException;
+import org.jboss.xb.binding.Unmarshaller;
+import org.jboss.xb.binding.UnmarshallerFactory;
+import org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver;
+
+/**
+ * A profile factory based which parses the xml ProfileMetaData files.
+ * 
+ * @author <a href="mailto:emuckenh at redhat.com">Emanuel Muckenhuber</a>
+ * @author Scott.Stark at jboss.org
+ * @version $Revision: 87871 $
+ */
+public class DomainProfileFactory extends AbstractBootstrapProfileFactory
+{
+   /** The profiles directory name. */
+   public final static String PROFILES_SUFFIX = ".profile";
+   
+   /** The attachment store uri. */
+   private File attachmentStoreRoot;
+   private VirtualFile domainFile;
+
+   /** Profile directories */
+   private Collection<VirtualFile> profileDirectories;
+   
+   /** The unmarshaller. */
+   private Unmarshaller unmarshaller;
+   
+   /** The parsed file list */
+   private Collection<ProfileKey> processedProfileKeys = new ArrayList<ProfileKey>();
+
+   /** The default schema resolver. */
+   private static final DefaultSchemaResolver defaultResolver = new DefaultSchemaResolver();
+   private DefaultSchemaResolver resolver = defaultResolver;
+
+   static
+   {
+      // Add schema bindings
+      defaultResolver.addClassBinding("urn:jboss:profileservice:profiles:1.0", ProfilesMetaData.class);
+      defaultResolver.addClassBinding("urn:jboss:profileservice:profile:filtered:1.0", FilteredProfileMetaData.class);
+      defaultResolver.addClassBinding("urn:jboss:profileservice:profile:hotdeployment:1.0", HotDeploymentProfileMetaData.class);
+   }
+   
+   public DomainProfileFactory(URI domainURI) throws Exception
+   {
+      if(domainURI == null)
+         throw new IllegalArgumentException("Null domainURI");
+      this.profileDirectories = new ArrayList<VirtualFile>();
+      domainFile = VFS.getRoot(domainURI);
+      if(domainFile == null)
+         throw new IllegalArgumentException("Could not find uri: " + domainURI);
+
+   }
+
+   public DefaultSchemaResolver getResolver()
+   {
+      return resolver;
+   }
+   public void setResolver(DefaultSchemaResolver resolver)
+   {
+      this.resolver = resolver;
+   }
+
+   public Collection<VirtualFile> getProfileDirectories()
+   {
+      return profileDirectories;
+   }
+   
+   public void setProfileDirectories(Collection<VirtualFile> profileDirectories)
+   {
+      this.profileDirectories = profileDirectories;
+   }   
+   
+   public File getAttachmentStoreRoot()
+   {
+      return attachmentStoreRoot;
+   }
+
+   public void setAttachmentStoreRoot(File attachmentStoreRoot)
+   {
+      this.attachmentStoreRoot = attachmentStoreRoot;
+   }
+   
+   /**
+    * Create the profile meta data.
+    * 
+    * @param rootKey the key of the profile/
+    * @param the url pointing to the profile file.
+    * @throws Exception
+    */
+   @Override
+   protected void createProfileMetaData(ProfileKey rootKey, URL url) throws Exception
+   {
+      // Create the unmarshaller
+      this.unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
+
+      // Get the root profile virtual file
+      VirtualFile vf = getProfileFile(rootKey, url);
+      // Parse
+      DomainMetaData domain = parse(vf);
+      ProfilesMetaData rootProfiles = domain.getProfiles();
+      // Process
+      processProfilesMetaData(rootProfiles);
+   }
+   
+   /**
+    * process the profile meta data.
+    * 
+    * @param metaData the profile meta data.
+    * @throws Exception
+    */
+   protected void processProfileMetaData(ProfileMetaData metaData) throws Exception
+   {
+      // Create profileKey
+      ProfileKey key = createProfileKey(metaData);      
+      processProfileMetaData(key, metaData);
+   }
+   
+   /**
+    * process the profile meta data
+    * 
+    * @param key the profile key.
+    * @param metaData the meta data.
+    * 
+    * @throws Exception
+    */
+   protected void processProfileMetaData(ProfileKey key, ProfileMetaData metaData) throws Exception
+   {      
+      // Don't process the same key twice
+      if(this.processedProfileKeys.contains(key))
+         return;
+
+      // Add profile meta data
+      addProfile(key, metaData);
+      
+      // Process sub profiles
+      processSubProfiles(key, metaData);
+   }
+   
+   /**
+    * process the sub profiles.
+    * 
+    * @param key the profile key.
+    * @param metaData the profile meta data
+    * @throws Exception
+    */
+   protected void processSubProfiles(ProfileKey key, ProfileMetaData metaData) throws Exception
+   {
+      if(metaData.getSubprofiles() != null && metaData.getSubprofiles().isEmpty() == false)
+      {
+         for(SubProfileMetaData subProfile : metaData.getSubprofiles())
+         {
+            ProfileKey subProfileKey = createProfileKey(subProfile);
+            processSubProfileMetaData(subProfileKey, subProfile);
+         }
+      }
+   }
+   
+   /**
+    * process the sub profile.
+    * 
+    * @param key the sub profile key.
+    * @param metaData the sub profile meta data.
+    * @throws Exception
+    */
+   protected void processSubProfileMetaData(ProfileKey key, SubProfileMetaData metaData) throws Exception
+   {
+      // get file
+      VirtualFile vf = null;
+      try
+      {
+         vf = getProfileFile(key, null);
+      // parse
+      //ProfilesMetaData profiles = parse(vf);
+      // TODO maybe override the profiles key (as it should be the same - filename and profiles name
+      // processProfilesMetaData(key, profiles);
+      //processProfilesMetaData(profiles);
+      }
+      catch(Exception e)
+      {
+         
+      }
+   }
+   
+   /**
+    * process the profiles meta data.
+    * 
+    * @param key the profiles key.
+    * @param metaData the profiles meta data.
+    * @throws Exception
+    */
+   protected void processProfilesMetaData(ProfileKey key, ProfilesMetaData metaData) throws Exception
+   {
+      if(metaData.getProfiles() != null && metaData.getProfiles().isEmpty() == false)
+      {
+         for(ProfileMetaData profile : metaData.getProfiles())
+         {
+            processProfileMetaData(profile);
+         }
+      }
+      // Add the profiles for later resolution
+      addProfiles(key, metaData.getProfiles());      
+   }
+   
+   /**
+    * Process the <profiles> meta data.
+    * This will add dependencies based on the ordering of the xml.
+    * 
+    * @param profilesMetaData the profiles meta data
+    */
+   protected void processProfilesMetaData(ProfilesMetaData profilesMetaData) throws Exception
+   {
+      // The <profiles> key
+      ProfileKey profilesKey = createProfileKey(profilesMetaData);
+      processProfilesMetaData(profilesKey, profilesMetaData);
+   }
+
+   /**
+    * get the virtual file of the profile.
+    * 
+    * @param key the profile key.
+    * @param url the url pointing to the file
+    * @return a resolved name if the url is null.
+    * 
+    * @throws Exception
+    */
+   protected VirtualFile getProfileFile(ProfileKey key, URL url) throws Exception
+   {
+      if(url != null)
+         return VFS.getRoot(url);
+      else
+         return resolveFile(key.getName());
+   }
+   
+   /**
+    * Try to resolve the profile name.
+    * 
+    * @param name the profile name.
+    * @return the virtual file
+    * @throws Exception
+    */
+   protected VirtualFile resolveFile(String name) throws Exception
+   {
+      // ProfileKey.getName() + .profile
+      if(name.endsWith(PROFILES_SUFFIX) == false)
+         name = name + PROFILES_SUFFIX;
+         
+      VirtualFile vf = null;
+      for(VirtualFile dir : profileDirectories)
+      {
+         vf = dir.getChild(name);
+         if(vf != null)
+            break;
+      }
+      if(vf == null)
+         throw new FileNotFoundException("Could not find profile configuration file for: " + name);
+      return vf;
+   }
+   
+   /**
+    * Parse a profile file.
+    * 
+    * @param vf the virtual file.
+    * @return the <profiles> meta data
+    * @throws JBossXBException
+    * @throws IOException
+    */
+   protected DomainMetaData parse(VirtualFile vf) throws JBossXBException, IOException
+   {
+      if(log.isTraceEnabled())
+         log.trace("parsing file: " + vf.getPathName());
+      return (DomainMetaData) unmarshaller.unmarshal(vf.openStream(), resolver);
+   }
+   
+   @Override
+   protected void addProfile(ProfileKey key, ProfileMetaData metaData)
+   {
+      // Add to processed keys
+      processedProfileKeys.add(key);
+      // Add to parent
+      super.addProfile(key, metaData);
+   }
+   
+   @Override
+   protected void addProfiles(ProfileKey key, List<ProfileMetaData> metaData)
+   {
+      // Add to processed keys
+      processedProfileKeys.add(key);
+      // Add to pared
+      super.addProfiles(key, metaData);
+   }
+}
+

Added: trunk/profileservice/src/main/org/jboss/profileservice/domain/ProfileServiceDomainBootstrap.java
===================================================================
--- trunk/profileservice/src/main/org/jboss/profileservice/domain/ProfileServiceDomainBootstrap.java	                        (rev 0)
+++ trunk/profileservice/src/main/org/jboss/profileservice/domain/ProfileServiceDomainBootstrap.java	2009-08-10 07:16:17 UTC (rev 92189)
@@ -0,0 +1,604 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, 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.profileservice.domain;
+
+import java.io.Serializable;
+import java.lang.annotation.Annotation;
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+import java.util.concurrent.atomic.AtomicBoolean;
+
+import org.jboss.beans.info.spi.BeanInfo;
+import org.jboss.beans.metadata.spi.BeanMetaData;
+import org.jboss.bootstrap.spi.as.JBossASBootstrap;
+import org.jboss.bootstrap.spi.as.config.JBossASServerConfig;
+import org.jboss.bootstrap.spi.as.server.JBossASServer;
+import org.jboss.bootstrap.spi.server.Server;
+import org.jboss.dependency.spi.ControllerContext;
+import org.jboss.dependency.spi.ControllerState;
+import org.jboss.deployers.client.spi.IncompleteDeploymentException;
+import org.jboss.deployers.client.spi.main.MainDeployer;
+import org.jboss.deployers.spi.DeploymentException;
+import org.jboss.deployers.spi.deployer.managed.ManagedDeploymentCreator;
+import org.jboss.deployers.spi.management.KnownComponentTypes;
+import org.jboss.deployers.spi.management.ManagementView;
+import org.jboss.deployers.structure.spi.DeploymentUnit;
+import org.jboss.deployers.vfs.deployer.kernel.KernelDeploymentDeployer.KernelDeploymentVisitor;
+import org.jboss.kernel.Kernel;
+import org.jboss.kernel.plugins.registry.BeanKernelRegistryEntry;
+import org.jboss.kernel.spi.config.KernelConfigurator;
+import org.jboss.kernel.spi.dependency.KernelController;
+import org.jboss.kernel.spi.deployment.KernelDeployment;
+import org.jboss.kernel.spi.registry.KernelRegistryEntry;
+import org.jboss.kernel.spi.registry.KernelRegistryPlugin;
+import org.jboss.logging.Logger;
+import org.jboss.managed.api.ComponentType;
+import org.jboss.managed.api.Fields;
+import org.jboss.managed.api.ManagedDeployment;
+import org.jboss.managed.api.ManagedObject;
+import org.jboss.managed.api.ManagedOperation;
+import org.jboss.managed.api.ManagedProperty;
+import org.jboss.managed.api.MutableManagedObject;
+import org.jboss.managed.api.annotation.ManagementComponent;
+import org.jboss.managed.api.annotation.ManagementObject;
+import org.jboss.managed.api.annotation.ViewUse;
+import org.jboss.managed.api.factory.ManagedObjectFactory;
+import org.jboss.managed.plugins.DefaultFieldsImpl;
+import org.jboss.managed.plugins.ManagedComponentImpl;
+import org.jboss.managed.plugins.ManagedObjectImpl;
+import org.jboss.managed.plugins.ManagedOperationImpl;
+import org.jboss.managed.plugins.ManagedPropertyImpl;
+import org.jboss.metatype.api.types.ArrayMetaType;
+import org.jboss.metatype.api.types.MetaType;
+import org.jboss.metatype.api.types.SimpleMetaType;
+import org.jboss.metatype.api.values.ArrayValueSupport;
+import org.jboss.metatype.api.values.EnumValue;
+import org.jboss.metatype.api.values.EnumValueSupport;
+import org.jboss.profileservice.spi.MutableProfile;
+import org.jboss.profileservice.spi.NoSuchProfileException;
+import org.jboss.profileservice.spi.Profile;
+import org.jboss.profileservice.spi.ProfileKey;
+import org.jboss.profileservice.spi.ProfileService;
+import org.jboss.profileservice.spi.types.ControllerStateMetaType;
+import org.jboss.system.server.profile.repository.metadata.ProfilesMetaData;
+import org.jboss.system.server.profileservice.BootstrapDeployment;
+import org.jboss.system.server.profileservice.ProfileServiceBootstrap;
+import org.jboss.system.server.profileservice.repository.AbstractBootstrapProfileFactory;
+
+/**
+ * A profile server bootrap that uses the domain metadata to define the
+ * profiles, ...
+ * 
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+public class ProfileServiceDomainBootstrap implements JBossASBootstrap, KernelRegistryPlugin
+{
+   /** The log */
+   private static final Logger log = Logger.getLogger(ProfileServiceDomainBootstrap.class);
+   
+   /** The root profile key. */
+   protected ProfileKey profileKey;
+
+   /** The loaded profiles. */
+   private List<ProfileKey> bootstrapProfiles = new ArrayList<ProfileKey>();
+   
+   /** The server MainDeployer */
+   protected MainDeployer mainDeployer;
+
+   /** The server ProfileService */
+   protected ProfileService profileService;
+
+   /** The ManagedDeploymentCreator plugin */
+   private ManagedDeploymentCreator mgtDeploymentCreator = null;
+   /** The ManagedObjectFactory for building the bootstrap deployment ManagedObjects */
+   private ManagedObjectFactory mof;
+   /** The ManagedDeployment map for the MCServer KernelDeployments */
+   private Map<String, ManagedDeployment> bootstrapMDs = new HashMap<String, ManagedDeployment>();
+   private String domainModelURI;
+
+   /** The profile bootstrap factory */
+   private AbstractBootstrapProfileFactory profileFactory; 
+
+   /** Whether we are shutdown */
+   private AtomicBoolean shutdown = new AtomicBoolean(false);
+   /** */
+   private Map<Object, KernelRegistryEntry> bootstrapEntries = new HashMap<Object, KernelRegistryEntry>();
+   /** */
+   private KernelConfigurator configurator;
+
+   /**
+    * Create a new ProfileServiceBootstrap.
+    */
+   public ProfileServiceDomainBootstrap()
+   {
+   }
+
+   /**
+    * Return the MainDeployer bean.
+    * 
+    * @return the MainDeployer bean if bootstrap succeeded, null otherwise.
+    */
+   public MainDeployer getMainDeployer()
+   {
+      return mainDeployer;
+   }
+   public void setMainDeployer(MainDeployer mainDeployer)
+   {
+      this.mainDeployer = mainDeployer;
+   }
+
+   public KernelConfigurator getConfigurator()
+   {
+      return configurator;
+   }
+   public void setConfigurator(KernelConfigurator configurator)
+   {
+      this.configurator = configurator;
+   }
+
+   /**
+    * Return the ProfileService bean.
+    * 
+    * @return the ProfileService bean if bootstrap succeeded, null otherwise
+    */
+   public ProfileService getProfileService()
+   {
+      return profileService;
+   }
+   public void setProfileService(ProfileService profileService)
+   {
+      this.profileService = profileService;
+   }
+
+   public ProfileKey getProfileKey()
+   {
+      return profileKey;
+   }
+   
+   public void setProfileKey(ProfileKey profileKey)
+   {
+      this.profileKey = profileKey;
+   }
+
+   public ManagedObjectFactory getMof()
+   {
+      return mof;
+   }
+   public void setMof(ManagedObjectFactory mof)
+   {
+      this.mof = mof;
+   }
+
+   public ManagedDeploymentCreator getMgtDeploymentCreator()
+   {
+      return mgtDeploymentCreator;
+   }
+   public void setMgtDeploymentCreator(ManagedDeploymentCreator mgtDeploymentCreator)
+   {
+      this.mgtDeploymentCreator = mgtDeploymentCreator;
+   }
+
+   public AbstractBootstrapProfileFactory getBootstrapProfileFactory()
+   {
+      return profileFactory;
+   }
+   
+   public void setBootstrapProfileFactory(AbstractBootstrapProfileFactory profileFactory)
+   {
+      this.profileFactory = profileFactory;
+   }
+   
+   public Map<String, ManagedDeployment> getBootstrapMDs()
+   {
+      return bootstrapMDs;
+   }
+   public void setBootstrapMDs(Map<String, ManagedDeployment> bootstrapMDs)
+   {
+      this.bootstrapMDs = bootstrapMDs;
+   }
+
+   /**
+    * 
+    */
+   public void start(JBossASServer server)
+      throws Exception
+   {
+      shutdown.set(false);
+
+      if(profileService == null)
+         throw new IllegalStateException("The ProfileService has not been injected"); 
+      log.debug("Using ProfileService: " + profileService);
+      if(mainDeployer == null)
+         throw new IllegalStateException("The MainDeployer has not been injected"); 
+      log.debug("Using MainDeployer: " + mainDeployer);
+
+      // Validate that everything is ok
+      mainDeployer.checkComplete();
+
+      // Expose the bootstrap ManagedDeployments
+      initBootstrapMDs(server);
+
+      // Load the profiles
+      if(this.profileKey == null)
+         this.profileKey = new ProfileKey(server.getConfiguration().getServerName());
+      
+      // TODO check if there is a predetermined ProfileMetaData attachment
+      DomainMetaData domainMD = null;
+      ProfilesMetaData profiles = domainMD.getProfiles();
+      // ProfileMetaData pmd = (ProfileMetaData) metaData.get(ProfileMetaData.class.getName());
+ 
+      // Register the profiles
+      Collection<Profile> bootstrapProfiles = profileFactory.createProfiles(profileKey, null);
+      for(Profile profile : bootstrapProfiles)
+      {
+         profileService.registerProfile(profile);
+         // Add to loaded profiles
+         if(this.profileKey.equals(profile.getKey()) == false)
+            this.bootstrapProfiles.add(0, profile.getKey());
+      }
+      
+      // Activate the root profile
+      log.info("Loading profile: " + this.profileKey);
+      this.profileService.activateProfile(this.profileKey);
+      this.profileService.validateProfile(this.profileKey);
+      
+      try
+      {
+         // Check if everything is complete
+         mainDeployer.checkComplete();
+      }
+      catch (IncompleteDeploymentException e)
+      {
+         log.error("Failed to load profile: " + e.getMessage());
+      }
+      catch (Exception e)
+      {
+         log.error("Failed to load profile: ", e);
+      }
+      
+      // Enable modification checks on all mutable profiles 
+      for(ProfileKey key : profileService.getActiveProfileKeys())
+      {
+         try
+         {
+            Profile profile = profileService.getActiveProfile(key);
+            if(profile.isMutable() && profile instanceof MutableProfile)
+               ((MutableProfile) profile).enableModifiedDeploymentChecks(true);
+         }
+         catch(NoSuchProfileException ignore) { }
+      }
+   }
+
+   public void prepareShutdown(JBossASServer server)
+   {
+      shutdown.set(true);
+      if (mainDeployer != null)
+         mainDeployer.prepareShutdown();
+   }
+
+   public void shutdown(JBossASServer server)
+   {
+     // Disable modification checks on all mutable profiles
+      for(ProfileKey key : profileService.getActiveProfileKeys())
+      {
+         try
+         {
+            Profile profile = profileService.getActiveProfile(key);
+            if(profile.isMutable() && profile instanceof MutableProfile)
+               ((MutableProfile) profile).enableModifiedDeploymentChecks(false);
+         }
+         catch(NoSuchProfileException ignore) { }
+      }
+      
+      
+      // Deactivate the root profile
+      try
+      {
+         // Release 
+       if(profileService.getActiveProfileKeys().contains(profileKey))
+          profileService.deactivateProfile(profileKey);
+      }
+      catch(Throwable t)
+      {
+         log.warn("Error deactivating profile: " + this.profileKey, t);
+      }
+      try
+      {
+         // Unregister
+       if(profileService.getProfileKeys().contains(profileKey))
+          profileService.unregisterProfile(profileKey);
+      }
+      catch(Throwable t)
+      {
+         log.warn("Error unregistering profile: " + this.profileKey, t);         
+      }
+      
+      // Deactivate all profiles we registered
+      deactivateProfiles(this.bootstrapProfiles);
+      
+      // Deactivate all still active profiles
+      deactivateProfiles(this.profileService.getActiveProfileKeys());
+      
+      // Unregister all profiles at once
+      for(ProfileKey key : profileService.getProfileKeys())
+      {
+         try
+         {
+            profileService.unregisterProfile(key);
+         }
+         catch(Throwable t)
+         {
+            // Ignore
+         }
+      }
+      
+      try
+      {
+         mainDeployer.shutdown();
+      }
+      catch (Throwable t)
+      {
+         log.warn("Error shutting down the main deployer", t);
+      }
+   }
+   
+   public KernelRegistryEntry getEntry(Object name)
+   {
+      KernelRegistryEntry entry = bootstrapEntries.get(name);
+      return entry;
+   }
+
+   protected void deactivateProfiles(Collection<ProfileKey> profiles)
+   {
+      if(profiles != null && profiles.isEmpty() == false)
+      {
+         for(ProfileKey key : profiles)
+         {
+            try
+            {
+               profileService.deactivateProfile(key);
+            }
+            catch(NoSuchProfileException e)
+            {
+               // ignore
+            }
+            catch(Throwable t)
+            {
+               log.warn("Error unloading profile: " + this.profileKey, t);
+            }
+         }
+      }
+   }
+
+   /**
+    * Create ManagedDeployments for the MCServer KernelDeployments. This allows
+    * the bootstrap deployments outside of the profile service to be visible in
+    * the ManagementView
+    * @see {@link ManagementView}
+    * 
+    * @param server - the Bootstrap.start Server instance. This must be an
+    * MCServer in order for there to be KernelDeployments available.
+    */
+   protected void initBootstrapMDs(Server server)
+   {
+      if(mof == null || mgtDeploymentCreator == null)
+      {
+         log.warn("Skipping ManagedDeployment creation due to missing mof, mgtDeploymentCreator");
+         return;
+      }
+
+      Map<String, KernelDeployment> serverDeployments = null;
+      if(server instanceof JBossASServer)
+      {
+         // Build ManagedDeployments for the KernelDeployments
+         JBossASServer mcserver = JBossASServer.class.cast(server);
+         Kernel kernel = mcserver.getKernel();
+         serverDeployments = mcserver.getDeployments();
+         ManagedDeployment firstDeployment = null;
+         for(KernelDeployment kd : serverDeployments.values())
+         {
+            BootstrapDeployment deploymentUnit = new BootstrapDeployment(kd);
+            KernelDeploymentVisitor visitor = new KernelDeploymentVisitor();
+            try
+            {
+               visitor.deploy(deploymentUnit, kd);
+            }
+            catch(DeploymentException e)
+            {
+               log.debug("Failed to build ManagedDeployment for: "+kd, e);
+               continue;
+            }
+
+            /* Create minimal deployment ManagedObject. Don't use the ManagedObjectFactory
+             * as this will create ManagedObjects for the beans via the beansFactory
+             * property. We handle the beans below.
+            */
+            Set<ManagedProperty> kdProperties = new HashSet<ManagedProperty>();
+            HashSet<ManagedOperation> ops = null;
+            ManagedObject kdMO = new ManagedObjectImpl(kd.getName(), "",
+                  KernelDeployment.class.getName(),
+                  kdProperties, ops, (Serializable) kd);
+            Map<String, ManagedObject> kdMOs = new HashMap<String, ManagedObject>();
+            kdMOs.put(kd.getName(), kdMO);
+
+            // Traverse the deployment components 
+            for(DeploymentUnit compUnit : deploymentUnit.getComponents())
+            {
+               BeanMetaData bmd = compUnit.getAttachment(BeanMetaData.class);
+               ManagedObject bmdMO = mof.initManagedObject(bmd, compUnit.getMetaData());
+               if(bmdMO == null)
+                  continue;
+
+               Map<String, Annotation> moAnns = bmdMO.getAnnotations();
+               ManagementObject mo = (ManagementObject) moAnns.get(ManagementObject.class.getName());
+               // Reset the name to the bean name rather than the attachment name
+               if(bmdMO instanceof MutableManagedObject)
+               {
+                  MutableManagedObject mmo = (MutableManagedObject) bmdMO;
+                  // Reset the name to the bean name if its the attachment name
+                  if(mmo.getName().equals(mmo.getAttachmentName()))
+                     mmo.setName(bmd.getName());
+                  mmo.setParent(kdMO);
+                  // Add an alias property
+                  Set<Object> bmdAliases = bmd.getAliases();
+                  Map<String, ManagedProperty> oldProps = mmo.getProperties();
+                  Map<String, ManagedProperty> newProps = new HashMap<String, ManagedProperty>(oldProps);
+                  if(bmdAliases != null && bmdAliases.size() > 0)
+                  {
+                     ArrayMetaType aliasType = new ArrayMetaType(SimpleMetaType.STRING, false);
+                     DefaultFieldsImpl fields = getFields("alias", aliasType);
+                     fields.setDescription("Aliases of the bean");
+                     String[] aliases = new String[bmdAliases.size()];
+                     Iterator<?> i = bmdAliases.iterator();
+                     for(int n = 0; i.hasNext(); n++)
+                     {
+                        aliases[n] = i.next().toString();
+                     }
+                     ArrayValueSupport value = new ArrayValueSupport(aliasType, aliases);
+                     fields.setValue(value);
+                     ManagedPropertyImpl aliasesMP = new ManagedPropertyImpl(bmdMO, fields);
+                     newProps.put("alias", aliasesMP);
+                  }
+                  // Add a state property
+                  DefaultFieldsImpl stateFields = getFields("state", ControllerStateMetaType.TYPE);
+                  stateFields.setViewUse(new ViewUse[]{ViewUse.STATISTIC});
+                  EnumValue stateValue = getState(bmd.getName(), kernel);
+                  stateFields.setValue(stateValue);
+                  stateFields.setDescription("The bean controller state");
+                  ManagedPropertyImpl stateMP = new ManagedPropertyImpl(mmo, stateFields);
+                  newProps.put("state", stateMP);
+                  // Update the properties
+                  mmo.setProperties(newProps);
+               }
+               log.debug("Created ManagedObject: "+bmdMO+" for bean: "+bmd.getName());
+               kdMOs.put(bmd.getName(), bmdMO);
+
+            }
+            // Create the ManagedDeployment
+            ManagedDeployment md = mgtDeploymentCreator.build(deploymentUnit, kdMOs, null);
+            if(firstDeployment == null)
+               firstDeployment = md;
+            // Create the ManagedComponents
+            for(ManagedObject bmdMO : kdMOs.values())
+            {
+               if(bmdMO.getAttachmentName().equals(KernelDeployment.class.getName()))
+                  continue;
+
+               ComponentType type = KnownComponentTypes.MCBean.Any.getType();
+               Map<String, Annotation> moAnns = bmdMO.getAnnotations();
+               ManagementComponent mc = (ManagementComponent) moAnns.get(ManagementComponent.class.getName());
+               if(mc != null)
+               {
+                  type = new ComponentType(mc.type(), mc.subtype());
+               }
+               ManagedComponentImpl comp = new ManagedComponentImpl(type, md, bmdMO);
+               md.addComponent(bmdMO.getName(), comp);
+               log.debug("Created ManagedComponent("+comp.getName()+") of type: "
+                     +type
+                     +" for MO: "+bmdMO.getName()
+                     +", componentName: "+bmdMO.getComponentName());               
+            }
+
+            if(md != null)
+               bootstrapMDs.put(kd.getName(), md);
+         }
+
+         // Add other Server managed objects
+         if(firstDeployment != null)
+         {
+            ComponentType type = new ComponentType("MCBean", "MCServer");
+            ManagedObject serverMO = mof.initManagedObject(mcserver, null);
+            if (serverMO.getOperations() != null && serverMO.getOperations().size() == 0)
+            {
+               ManagedOperationImpl shutdown = new ManagedOperationImpl("Shutdown the server", "shutdown");
+               if(serverMO instanceof MutableManagedObject)
+               {
+                  HashSet<ManagedOperation> ops = new HashSet<ManagedOperation>();
+                  ops.add(shutdown);
+                  MutableManagedObject mmo = MutableManagedObject.class.cast(serverMO);
+                  mmo.setOperations(ops);
+               }
+            }
+            ManagedComponentImpl serverComp = new ManagedComponentImpl(type, firstDeployment, serverMO);
+            firstDeployment.addComponent("MCServer", serverComp);
+            try
+            {
+               BeanInfo mcserverInfo = configurator.getBeanInfo(mcserver.getClass());
+               BeanKernelRegistryEntry entry = new BeanKernelRegistryEntry(mcserver, mcserverInfo);
+               bootstrapEntries.put(serverComp.getComponentName(), entry);
+            }
+            catch(Throwable t)
+            {
+               log.error("Failed to create BeanInfo for: "+serverComp, t);
+            }
+            // ServerConfig
+            type = new ComponentType("MCBean", "ServerConfig");
+            JBossASServerConfig config = mcserver.getConfiguration();
+            ManagedObject mo = mof.initManagedObject(config, null);
+            ManagedComponentImpl configComp = new ManagedComponentImpl(type, firstDeployment, mo);
+            firstDeployment.addComponent("ServerConfig", configComp);
+            log.debug("Created ManagedComponent of type: "+type+" for ServerConfig");
+         }
+      }
+   }
+
+   /**
+    * Create a DefaultFieldsImpl for the given property name and type
+    * @param name - the property name
+    * @param type - the property type
+    * @return return the fields implementation
+    */
+   protected DefaultFieldsImpl getFields(String name, MetaType type)
+   {
+      DefaultFieldsImpl fields = new DefaultFieldsImpl();
+      fields.setMetaType(type);
+      fields.setName(name);
+      fields.setField(Fields.MAPPED_NAME, name);
+      fields.setMandatory(false);
+
+      return fields;
+   }
+
+   /**
+    * Get the state of a bean
+    * 
+    * @param name the bean name
+    * @return state enum value
+    */
+   protected EnumValue getState(Object name, Kernel kernel)
+   {
+      KernelController controller = kernel.getController();
+      ControllerContext context = controller.getContext(name, null);
+      if (context == null)
+         throw new IllegalStateException("Context not installed: " + name);
+
+      ControllerState state = context.getState();
+      return new EnumValueSupport(ControllerStateMetaType.TYPE, state.getStateString());
+   }
+}

Added: trunk/profileservice/src/main/org/jboss/profileservice/domain/datasource/ConnectionFactory.java
===================================================================
--- trunk/profileservice/src/main/org/jboss/profileservice/domain/datasource/ConnectionFactory.java	                        (rev 0)
+++ trunk/profileservice/src/main/org/jboss/profileservice/domain/datasource/ConnectionFactory.java	2009-08-10 07:16:17 UTC (rev 92189)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, 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.profileservice.domain.datasource;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+public class ConnectionFactory
+{
+
+}

Added: trunk/profileservice/src/main/org/jboss/profileservice/domain/datasource/ConnectionFactorys.java
===================================================================
--- trunk/profileservice/src/main/org/jboss/profileservice/domain/datasource/ConnectionFactorys.java	                        (rev 0)
+++ trunk/profileservice/src/main/org/jboss/profileservice/domain/datasource/ConnectionFactorys.java	2009-08-10 07:16:17 UTC (rev 92189)
@@ -0,0 +1,65 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, 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.profileservice.domain.datasource;
+
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlAnyElement;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlNsForm;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+import org.jboss.xb.annotations.JBossXmlSchema;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+ at JBossXmlSchema(namespace="urn:jboss:profileservice:domain:connection-factory:1.0", elementFormDefault=XmlNsForm.QUALIFIED)
+ at XmlRootElement(name = "connection-factorys")
+ at XmlType(name = "connectionFactorysType")
+public class ConnectionFactorys
+{
+   private List<ConnectionFactory> factories;
+
+   @XmlElements({@XmlElement(name="local-tx-datasource", type=LocalDataSourceMetaData.class)
+      /*
+      @XmlElement(name="no-tx-datasource", type=NoTxDataSourceDeploymentMetaData.class),
+      @XmlElement(name="xa-datasource", type=XADataSourceDeploymentMetaData.class),
+      @XmlElement(name="no-tx-connection-factory", type=NoTxConnectionFactoryDeploymentMetaData.class),
+      @XmlElement(name="tx-connection-factory",type=TxConnectionFactoryDeploymentMetaData.class)
+      */})
+   @XmlAnyElement
+   public List<ConnectionFactory> getFactories()
+   {
+      return factories;
+   }
+
+   public void setFactories(List<ConnectionFactory> factories)
+   {
+      this.factories = factories;
+   }
+
+   
+}

Added: trunk/profileservice/src/main/org/jboss/profileservice/domain/datasource/LocalDataSourceMetaData.java
===================================================================
--- trunk/profileservice/src/main/org/jboss/profileservice/domain/datasource/LocalDataSourceMetaData.java	                        (rev 0)
+++ trunk/profileservice/src/main/org/jboss/profileservice/domain/datasource/LocalDataSourceMetaData.java	2009-08-10 07:16:17 UTC (rev 92189)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, 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.profileservice.domain.datasource;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+public class LocalDataSourceMetaData
+{
+
+}

Added: trunk/profileservice/src/main/org/jboss/profileservice/domain/resources/ConnectorResourceMetaData.java
===================================================================
--- trunk/profileservice/src/main/org/jboss/profileservice/domain/resources/ConnectorResourceMetaData.java	                        (rev 0)
+++ trunk/profileservice/src/main/org/jboss/profileservice/domain/resources/ConnectorResourceMetaData.java	2009-08-10 07:16:17 UTC (rev 92189)
@@ -0,0 +1,72 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, 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.profileservice.domain.resources;
+
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlNsForm;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+import org.jboss.xb.annotations.JBossXmlSchema;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+ at XmlType(name = "connectorResourceType")
+public class ConnectorResourceMetaData
+{
+   private String jndiName;
+   private String poolName;
+   private String connectionURL;
+
+   @XmlAttribute
+   public String getJndiName()
+   {
+      return jndiName;
+   }
+   public void setJndiName(String jndiName)
+   {
+      this.jndiName = jndiName;
+   }
+   @XmlAttribute
+   public String getPoolName()
+   {
+      return poolName;
+   }
+   public void setPoolName(String poolName)
+   {
+      this.poolName = poolName;
+   }
+
+   @XmlElement(name="connection-url")
+   public String getConnectionURL()
+   {
+      return connectionURL;
+   }
+   public void setConnectionURL(String connectionURL)
+   {
+      this.connectionURL = connectionURL;
+   }
+  
+}

Added: trunk/profileservice/src/main/org/jboss/profileservice/domain/resources/ResourcesMetaData.java
===================================================================
--- trunk/profileservice/src/main/org/jboss/profileservice/domain/resources/ResourcesMetaData.java	                        (rev 0)
+++ trunk/profileservice/src/main/org/jboss/profileservice/domain/resources/ResourcesMetaData.java	2009-08-10 07:16:17 UTC (rev 92189)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, 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.profileservice.domain.resources;
+
+import java.util.List;
+
+import javax.xml.bind.annotation.XmlAnyElement;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlNsForm;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+import org.jboss.xb.annotations.JBossXmlSchema;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+ at XmlRootElement(name = "resources")
+ at XmlType(name = "resourcesType")
+public class ResourcesMetaData
+{
+   private List<ConnectorResourceMetaData> connectorResources;
+
+   @XmlElements({
+      @XmlElement(name = "connector-resource", type = ConnectorResourceMetaData.class)
+   })
+   @XmlAnyElement
+   public List<ConnectorResourceMetaData> getConnectorResources()
+   {
+      return connectorResources;
+   }
+   public void setConnectorResources(
+         List<ConnectorResourceMetaData> connectorResources)
+   {
+      this.connectorResources = connectorResources;
+   }
+
+}

Copied: trunk/profileservice/src/test/java (from rev 91999, trunk/profileservice/src/test/main)

Copied: trunk/profileservice/src/test/java/org (from rev 92181, trunk/profileservice/src/test/main/org)

Added: trunk/profileservice/src/test/java/org/jboss/test/ps/DomainMetaDataTest.java
===================================================================
--- trunk/profileservice/src/test/java/org/jboss/test/ps/DomainMetaDataTest.java	                        (rev 0)
+++ trunk/profileservice/src/test/java/org/jboss/test/ps/DomainMetaDataTest.java	2009-08-10 07:16:17 UTC (rev 92189)
@@ -0,0 +1,101 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, 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.test.ps;
+
+import java.io.File;
+import java.util.Collection;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+import java.util.Properties;
+
+import org.jboss.profileservice.domain.DomainMetaData;
+import org.jboss.profileservice.domain.resources.ResourcesMetaData;
+import org.jboss.profileservice.spi.metadata.ProfileMetaData;
+import org.jboss.system.server.profile.repository.metadata.CapabilityMetaData;
+import org.jboss.system.server.profile.repository.metadata.FilteredProfileMetaData;
+import org.jboss.system.server.profile.repository.metadata.ProfilesMetaData;
+import org.jboss.system.server.profile.repository.metadata.RequirementMetaData;
+import org.jboss.xb.binding.Unmarshaller;
+import org.jboss.xb.binding.UnmarshallerFactory;
+import org.jboss.xb.binding.sunday.unmarshalling.DefaultSchemaResolver;
+import org.jboss.xb.builder.JBossXBBuilder;
+import org.junit.Test;
+import org.junit.Assert;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+public class DomainMetaDataTest
+{
+   private static final DefaultSchemaResolver resolver = new DefaultSchemaResolver();
+   
+   static
+   {
+      // Add schema bindings
+      resolver.addClassBinding("urn:jboss:profileservice:profiles:1.0", ProfilesMetaData.class);
+      resolver.addClassBinding("urn:jboss:profileservice:domain:1.0", DomainMetaData.class);
+      resolver.addClassBinding("urn:jboss:profileservice:domain:resources:1.0", ResourcesMetaData.class);
+   }
+
+   @Test
+   public void testParsingDomain1() throws Exception
+   {
+      JBossXBBuilder.setUseUnorderedSequence(true);
+      File f = new File("src/test/resources/xml/domain1.xml");
+      Unmarshaller unmarshaller = UnmarshallerFactory.newInstance().newUnmarshaller();
+      DomainMetaData domain = (DomainMetaData) unmarshaller.unmarshal(f.toURL().openStream(), resolver);
+      System.out.println("Unmarshalled domain: "+domain);
+      ProfilesMetaData profileMD = domain.getProfiles();
+      List<ProfileMetaData> profiles = profileMD.getProfiles();
+      Assert.assertEquals(3, profiles.size());
+      HashMap<String, ProfileMetaData> profileMap = new HashMap<String, ProfileMetaData>();
+      for(ProfileMetaData pmd : profiles)
+         profileMap.put(pmd.getName(), pmd);
+      // immutable
+      ProfileMetaData immutable = profileMap.get("immutable");
+      Assert.assertTrue(immutable instanceof FilteredProfileMetaData);
+      FilteredProfileMetaData immutableFP = (FilteredProfileMetaData) immutable;
+      Collection<RequirementMetaData> immutableReqs = immutableFP.getRequirements();
+      Assert.assertEquals(1, immutableReqs.size());
+      RequirementMetaData ejb3Req = immutableReqs.iterator().next();
+      Assert.assertEquals("ejb3", ejb3Req.getName());
+      Assert.assertEquals("ejb3", ejb3Req.getFilter());
+      // ejb3-profile
+      ProfileMetaData ejb3 = profileMap.get("ejb3-profile");
+      Assert.assertTrue(ejb3 instanceof FilteredProfileMetaData);
+      FilteredProfileMetaData ejb3FP = (FilteredProfileMetaData) ejb3;
+      Collection<CapabilityMetaData> ejb3Caps = ejb3FP.getCapabilities();
+      Assert.assertEquals(1, ejb3Caps.size());
+      CapabilityMetaData ejb3Cap = ejb3Caps.iterator().next();
+      Assert.assertEquals("ejb3", ejb3Cap.getName());
+      Map<String, String> ejb3Props = ejb3Cap.getProperties();
+      Assert.assertEquals("value1", ejb3Props.get("key1"));
+      Assert.assertEquals("value2", ejb3Props.get("key2"));
+      
+      // mutable
+      ProfileMetaData mutable = profileMap.get("mutable");
+      ResourcesMetaData resources = domain.getResources();
+   }
+   
+}

Added: trunk/profileservice/src/test/resources/xml/domain1.xml
===================================================================
--- trunk/profileservice/src/test/resources/xml/domain1.xml	                        (rev 0)
+++ trunk/profileservice/src/test/resources/xml/domain1.xml	2009-08-10 07:16:17 UTC (rev 92189)
@@ -0,0 +1,60 @@
+<!-- $Id:$ -->
+<domain
+    xmlns="urn:jboss:profileservice:domain:1.0"
+    name="domain1">
+    <profiles
+        xmlns="urn:jboss:profileservice:profiles:1.0"
+        name="profiles">
+        
+        <profile name="immutable">
+            <profile-source>
+                <source>${jboss.server.home.url}deployers</source>
+                <source>${jboss.server.home.url}conf</source> 
+            </profile-source>
+            <deployment>myEjb3Deployment.ear</deployment>
+            <requirements>
+                <requirement name="ejb3" filter="ejb3" comment="Need an ejb3 provider" />
+            </requirements>
+        </profile>
+
+        <profile name="ejb3-profile">
+            <profile-source>
+                <source>${jboss.server.home.url}deployers/</source>
+                <source>${jboss.server.home.url}deploy</source>
+            </profile-source>
+            <deployment>ejb3.deployer</deployment>
+            <deployment>ejb3-connectors-jboss-beans.xml</deployment>
+            <deployment>ejb3-container-jboss-beans.xml</deployment>
+            <deployment>ejb3-interceptors-aop.xml</deployment>
+            <deployment>ejb3-timerservice-jboss-beans.xml</deployment>
+            <deployment>ejb3-connectors-jboss-beans.xml</deployment>
+            <capabilities>
+                <capability name="ejb3">
+                    <property>
+                        <key>key1</key>
+                        <value>value1</value>
+                    </property>
+                    <property>
+                        <key>key2</key>
+                        <value>value2</value>
+                    </property>
+                </capability>
+            </capabilities>
+        </profile>
+
+        <hotdeployment-profile name="mutable">
+            <profile-source>
+                <source>${jboss.server.home.url}deploy</source>
+                <source>${jboss.server.home.url}deploy2</source>
+            </profile-source>
+            <sub-profile>immutable</sub-profile>
+        </hotdeployment-profile>
+        
+    </profiles>
+    
+    <resources>
+        <connector-resource jndiName="java:/DefaultDS" poolName="DefaultDSPool">
+            <connection-url>jdbc:hsqldb:hsql://${jboss.bind.address}:1701</connection-url>
+        </connector-resource>
+    </resources>
+</domain>

Modified: trunk/server/.classpath
===================================================================
--- trunk/server/.classpath	2009-08-10 07:06:29 UTC (rev 92188)
+++ trunk/server/.classpath	2009-08-10 07:16:17 UTC (rev 92189)
@@ -2,7 +2,7 @@
 <classpath>
 	<classpathentry kind="src" output="target/classes" path="src/main"/>
 	<classpathentry kind="src" output="target/classes" path="target/generated-sources/javacc"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
 	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
 	<classpathentry kind="output" path="target/classes"/>
 </classpath>

Modified: trunk/system/.classpath
===================================================================
--- trunk/system/.classpath	2009-08-10 07:06:29 UTC (rev 92188)
+++ trunk/system/.classpath	2009-08-10 07:16:17 UTC (rev 92189)
@@ -1,8 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
 	<classpathentry kind="src" output="target/classes" path="src/main"/>
+	<classpathentry kind="src" path="src/tests"/>
 	<classpathentry excluding="**" kind="src" output="target/classes" path="src/resources"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
 	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
 	<classpathentry kind="output" path="target/classes"/>
 </classpath>

Modified: trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/AbstractProfileMetaData.java
===================================================================
--- trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/AbstractProfileMetaData.java	2009-08-10 07:06:29 UTC (rev 92188)
+++ trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/AbstractProfileMetaData.java	2009-08-10 07:16:17 UTC (rev 92189)
@@ -21,10 +21,12 @@
  */ 
 package org.jboss.system.server.profile.repository.metadata;
 
+import java.util.Collection;
 import java.util.List;
 
 import javax.xml.bind.annotation.XmlAttribute;
 import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElementWrapper;
 
 import org.jboss.profileservice.spi.metadata.ProfileMetaData;
 import org.jboss.profileservice.spi.metadata.SubProfileMetaData;
@@ -47,6 +49,9 @@
    /** The doamin. */
    private String domain;
    
+   private Collection<CapabilityMetaData> capabilities;
+   private Collection<RequirementMetaData> requirements;
+
    /** The sub profiles. */
    private List<SubProfileMetaData> subprofiles;
    
@@ -111,5 +116,26 @@
    {
       this.subprofiles = subprofiles;
    }
-   
+
+   @XmlElement(name = "capability")
+   @XmlElementWrapper
+   public Collection<CapabilityMetaData> getCapabilities()
+   {
+      return capabilities;
+   }
+   public void setCapabilities(Collection<CapabilityMetaData> capabilities)
+   {
+      this.capabilities = capabilities;
+   }
+
+   @XmlElement(name = "requirement")
+   @XmlElementWrapper
+   public Collection<RequirementMetaData> getRequirements()
+   {
+      return requirements;
+   }
+   public void setRequirements(Collection<RequirementMetaData> requirements)
+   {
+      this.requirements = requirements;
+   }
 }

Added: trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/CapabilityMetaData.java
===================================================================
--- trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/CapabilityMetaData.java	                        (rev 0)
+++ trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/CapabilityMetaData.java	2009-08-10 07:16:17 UTC (rev 92189)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, 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.system.server.profile.repository.metadata;
+
+import java.io.Serializable;
+import java.util.Map;
+import java.util.Properties;
+
+import javax.xml.bind.annotation.XmlAnyElement;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElementWrapper;
+import javax.xml.bind.annotation.XmlType;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+import org.jboss.xb.annotations.JBossXmlMapEntry;
+import org.jboss.xb.annotations.JBossXmlMapKeyElement;
+import org.jboss.xb.annotations.JBossXmlMapValueElement;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+ at XmlType(name = "capabilityType")
+public class CapabilityMetaData
+   implements Serializable
+{
+   private static final long serialVersionUID = 1;
+
+   private String name;
+   private Map<String, String> properties;
+
+   @XmlAttribute
+   public String getName()
+   {
+      return name;
+   }
+   public void setName(String name)
+   {
+      this.name = name;
+   }
+   @JBossXmlMapEntry(name="property")
+   @JBossXmlMapKeyElement(name="key")
+   @JBossXmlMapValueElement(name="value")
+   public Map<String, String> getProperties()
+   {
+      return properties;
+   }
+   public void setProperties(Map<String, String> properties)
+   {
+      this.properties = properties;
+   }
+
+   
+}

Modified: trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/FilteredProfileMetaData.java
===================================================================
--- trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/FilteredProfileMetaData.java	2009-08-10 07:06:29 UTC (rev 92188)
+++ trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/FilteredProfileMetaData.java	2009-08-10 07:16:17 UTC (rev 92189)
@@ -39,7 +39,7 @@
  */
 @JBossXmlSchema(namespace="urn:jboss:profileservice:profile:filtered:1.0", elementFormDefault=XmlNsForm.QUALIFIED)
 @XmlRootElement(name = "profile")
- at XmlType(name = "profileType", propOrder = {"source", "subprofiles", "deployments"})
+ at XmlType(name = "profileType", propOrder = {"source", "subprofiles", "deployments", "capabilities", "requirements"})
 public class FilteredProfileMetaData extends BasicProfileMetaData
 {
 

Modified: trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/ProfilesMetaData.java
===================================================================
--- trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/ProfilesMetaData.java	2009-08-10 07:06:29 UTC (rev 92188)
+++ trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/ProfilesMetaData.java	2009-08-10 07:16:17 UTC (rev 92189)
@@ -49,7 +49,7 @@
       namespace= "urn:jboss:profileservice:profiles:1.0",
       elementFormDefault=XmlNsForm.QUALIFIED,
       normalizeSpace=true)
- at XmlType(name = "profilesType", propOrder = {"name", "server", "domain", "profiles"})
+ at XmlType(name = "profilesType"/*, propOrder = {"name", "server", "domain", "profiles"}*/)
 public class ProfilesMetaData implements ProfileKeyMetaData
 {
    /** The name. */
@@ -112,5 +112,18 @@
       this.profiles = profiles;
    }
    
+   public String toString()
+   {
+      StringBuffer tmp = new StringBuffer("ProfilesMetaData(name=");
+      tmp.append(name);
+      tmp.append(", server=");
+      tmp.append(server);
+      tmp.append(", domain=");
+      tmp.append(domain);
+      tmp.append(", profiles: ");
+      tmp.append(profiles);
+      tmp.append(")");
+      return tmp.toString();
+   }
 }
 

Added: trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/PropertiesXmlAdaptor.java
===================================================================
--- trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/PropertiesXmlAdaptor.java	                        (rev 0)
+++ trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/PropertiesXmlAdaptor.java	2009-08-10 07:16:17 UTC (rev 92189)
@@ -0,0 +1,63 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, 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.system.server.profile.repository.metadata;
+
+import java.util.Properties;
+
+import javax.xml.bind.annotation.adapters.XmlAdapter;
+import org.w3c.dom.Element;
+import org.w3c.dom.NodeList;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+public class PropertiesXmlAdaptor extends XmlAdapter<Element, Properties>
+{
+
+   @Override
+   public Element marshal(Properties v) throws Exception
+   {
+      return null;
+   }
+
+   /**
+    * Handles 
+    */
+   @Override
+   public Properties unmarshal(Element v) throws Exception
+   {
+      Properties props = new Properties();
+      NodeList keys = v.getElementsByTagName("key");
+      NodeList values = v.getElementsByTagName("value");
+      for(int n = 0; n < keys.getLength(); n ++)
+      {
+         Element key = (Element) keys.item(n);
+         String skey = key.getNodeValue();
+         Element value = (Element) keys.item(n);
+         String svalue = value.getNodeValue();
+         props.setProperty(skey, svalue);
+      }
+      return props;
+   }
+
+}

Added: trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/RequirementMetaData.java
===================================================================
--- trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/RequirementMetaData.java	                        (rev 0)
+++ trunk/system/src/main/org/jboss/system/server/profile/repository/metadata/RequirementMetaData.java	2009-08-10 07:16:17 UTC (rev 92189)
@@ -0,0 +1,100 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, 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.system.server.profile.repository.metadata;
+
+import java.io.Serializable;
+
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlType;
+
+/**
+ * @author Scott.Stark at jboss.org
+ * @version $Revision:$
+ */
+ at XmlType(name = "requirementType")
+public class RequirementMetaData
+   implements Serializable
+{
+   private static final long serialVersionUID = 1;
+
+   private String name;
+   private String filter;
+   private boolean multiple;
+   private boolean optional;
+   private boolean extend;
+   private String comment;
+
+   @XmlAttribute
+   public String getName()
+   {
+      return name;
+   }
+   public void setName(String name)
+   {
+      this.name = name;
+   }
+   @XmlAttribute
+   public String getFilter()
+   {
+      return filter;
+   }
+   public void setFilter(String filter)
+   {
+      this.filter = filter;
+   }
+   @XmlAttribute
+   public boolean isMultiple()
+   {
+      return multiple;
+   }
+   public void setMultiple(boolean multiple)
+   {
+      this.multiple = multiple;
+   }
+   @XmlAttribute
+   public boolean isOptional()
+   {
+      return optional;
+   }
+   public void setOptional(boolean optional)
+   {
+      this.optional = optional;
+   }
+   @XmlAttribute
+   public boolean isExtend()
+   {
+      return extend;
+   }
+   public void setExtend(boolean extend)
+   {
+      this.extend = extend;
+   }
+   @XmlAttribute
+   public String getComment()
+   {
+      return comment;
+   }
+   public void setComment(String comment)
+   {
+      this.comment = comment;
+   }   
+}

Modified: trunk/system-jmx/.classpath
===================================================================
--- trunk/system-jmx/.classpath	2009-08-10 07:06:29 UTC (rev 92188)
+++ trunk/system-jmx/.classpath	2009-08-10 07:16:17 UTC (rev 92189)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
 	<classpathentry kind="src" output="target/classes" path="src/main"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
 	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
 	<classpathentry kind="output" path="target/classes"/>
 </classpath>

Modified: trunk/testsuite/.classpath
===================================================================
--- trunk/testsuite/.classpath	2009-08-10 07:06:29 UTC (rev 92188)
+++ trunk/testsuite/.classpath	2009-08-10 07:16:17 UTC (rev 92189)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
 	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
 	<classpathentry kind="output" path="target/classes"/>
 </classpath>

Modified: trunk/tomcat/.classpath
===================================================================
--- trunk/tomcat/.classpath	2009-08-10 07:06:29 UTC (rev 92188)
+++ trunk/tomcat/.classpath	2009-08-10 07:16:17 UTC (rev 92189)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
 	<classpathentry kind="src" output="target/classes" path="src/main"/>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
 	<classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
 	<classpathentry kind="output" path="target/classes"/>
 </classpath>




More information about the jboss-cvs-commits mailing list