[jboss-cvs] JBossAS SVN: r93169 - in projects/profileservice/trunk/core/src: main/java/org/jboss/profileservice/repository and 6 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Sep 3 10:44:17 EDT 2009


Author: emuckenhuber
Date: 2009-09-03 10:44:16 -0400 (Thu, 03 Sep 2009)
New Revision: 93169

Added:
   projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/repository/artifact/BasicRepositoryConfiguration.java
   projects/profileservice/trunk/core/src/test/resources/bootstrap/
   projects/profileservice/trunk/core/src/test/resources/bootstrap/basic.profile
   projects/profileservice/trunk/core/src/test/resources/bootstrap/bootstrap.profile
   projects/profileservice/trunk/core/src/test/resources/bootstrap/bootstrap.xml
   projects/profileservice/trunk/core/src/test/resources/bootstrap/profile.xml
   projects/profileservice/trunk/core/src/test/resources/bootstrap/root.profile
Removed:
   projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/repository/BasicRepositoryConfiguration.java
Modified:
   projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/profile/AbstractVFSProfileSource.java
   projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/repository/artifact/AbstractArtifactRepository.java
   projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/virtual/assembly/AbstractVirtualDeploymentAssembly.java
   projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/virtual/assembly/StructureMetaDataBuilder.java
   projects/profileservice/trunk/core/src/test/java/org/jboss/test/profileservice/ProfileServiceTestBase.java
   projects/profileservice/trunk/core/src/test/java/org/jboss/test/profileservice/test/AbstractProfileServiceTest.java
   projects/profileservice/trunk/core/src/test/java/org/jboss/test/profileservice/test/BasicProfileServiceUnitTestCase.java
Log:
add basic bootstrap-profile example

Modified: projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/profile/AbstractVFSProfileSource.java
===================================================================
--- projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/profile/AbstractVFSProfileSource.java	2009-09-03 14:39:17 UTC (rev 93168)
+++ projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/profile/AbstractVFSProfileSource.java	2009-09-03 14:44:16 UTC (rev 93169)
@@ -34,7 +34,7 @@
 import java.util.concurrent.ConcurrentHashMap;
 
 import org.jboss.logging.Logger;
-import org.jboss.profileservice.repository.ProfileDeploymentFactory;
+import org.jboss.profileservice.repository.BasicProfileDeployment;
 import org.jboss.profileservice.spi.NoSuchDeploymentException;
 import org.jboss.profileservice.spi.NoSuchProfileException;
 import org.jboss.profileservice.spi.ProfileDeployment;
@@ -73,7 +73,7 @@
    protected final Logger log = Logger.getLogger(getClass());
    
    /** The deployment factory. */
-   private static ProfileDeploymentFactory deploymentFacotry; // = ProfileDeploymentFactory.getInstance();
+   // TODO private ProfileDeploymentFactory deploymentFacotry;
    
    public AbstractVFSProfileSource(URI[] uris)
    {
@@ -367,7 +367,8 @@
     */
    protected static ProfileDeployment createDeployment(VirtualFile vf)
    {
-      return deploymentFacotry.createDeployment(vf);
+      // TODO use the deployment factory
+      return new BasicProfileDeployment(vf);
    }
    
    /**

Deleted: projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/repository/BasicRepositoryConfiguration.java
===================================================================
--- projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/repository/BasicRepositoryConfiguration.java	2009-09-03 14:39:17 UTC (rev 93168)
+++ projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/repository/BasicRepositoryConfiguration.java	2009-09-03 14:44:16 UTC (rev 93169)
@@ -1,80 +0,0 @@
-/*
-* JBoss, Home of Professional Open Source
-* Copyright 2009, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
-*/
-package org.jboss.profileservice.repository;
-
-import java.net.URI;
-
-import org.jboss.profileservice.spi.repository.ArtifactRepositoryConfiguration;
-
-/**
- * @author <a href="mailto:emuckenh at redhat.com">Emanuel Muckenhuber</a>
- * @version $Revision$
- */
-public class BasicRepositoryConfiguration implements ArtifactRepositoryConfiguration
-{
-
-   /** The repository type. */
-   private String type;
-   
-   /** The repository location. */
-   private URI location;
-   
-   /** IsMutable. */
-   private boolean mutable = false;
- 
-   public BasicRepositoryConfiguration(String type, URI location)
-   {
-      this(type, location, false);
-   }
-   
-   public BasicRepositoryConfiguration(String type, URI location, boolean mutable)
-   {
-      if(type == null)
-      {
-         throw new IllegalArgumentException("null repository type");
-      }
-      if(location == null)
-      {
-         throw new IllegalArgumentException("null repository location");
-      }
-      this.type = type;
-      this.location = location;
-      this.mutable = mutable;
-   }
-   
-   public URI getLocation()
-   {
-      return location;
-   }
-   
-   public String getType()
-   {
-      return type;
-   }
-   
-   public boolean isMutable()
-   {
-      return mutable;
-   }
-   
-}
-

Modified: projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/repository/artifact/AbstractArtifactRepository.java
===================================================================
--- projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/repository/artifact/AbstractArtifactRepository.java	2009-09-03 14:39:17 UTC (rev 93168)
+++ projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/repository/artifact/AbstractArtifactRepository.java	2009-09-03 14:44:16 UTC (rev 93169)
@@ -24,7 +24,6 @@
 import java.io.IOException;
 import java.net.URI;
 
-import org.jboss.profileservice.repository.BasicRepositoryConfiguration;
 import org.jboss.profileservice.spi.repository.ArtifactId;
 import org.jboss.profileservice.spi.repository.ArtifactRepository;
 import org.jboss.profileservice.spi.repository.ArtifactRepositoryConfiguration;

Copied: projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/repository/artifact/BasicRepositoryConfiguration.java (from rev 93127, projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/repository/BasicRepositoryConfiguration.java)
===================================================================
--- projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/repository/artifact/BasicRepositoryConfiguration.java	                        (rev 0)
+++ projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/repository/artifact/BasicRepositoryConfiguration.java	2009-09-03 14:44:16 UTC (rev 93169)
@@ -0,0 +1,80 @@
+/*
+* JBoss, Home of Professional Open Source
+* Copyright 2009, JBoss Inc., and individual contributors as indicated
+* by the @authors tag. See the copyright.txt in the distribution for a
+* full listing of individual contributors.
+*
+* This is free software; you can redistribute it and/or modify it
+* under the terms of the GNU Lesser General Public License as
+* published by the Free Software Foundation; either version 2.1 of
+* the License, or (at your option) any later version.
+*
+* This software is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+* Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General Public
+* License along with this software; if not, write to the Free
+* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+*/
+package org.jboss.profileservice.repository.artifact;
+
+import java.net.URI;
+
+import org.jboss.profileservice.spi.repository.ArtifactRepositoryConfiguration;
+
+/**
+ * @author <a href="mailto:emuckenh at redhat.com">Emanuel Muckenhuber</a>
+ * @version $Revision$
+ */
+public class BasicRepositoryConfiguration implements ArtifactRepositoryConfiguration
+{
+
+   /** The repository type. */
+   private String type;
+   
+   /** The repository location. */
+   private URI location;
+   
+   /** IsMutable. */
+   private boolean mutable = false;
+ 
+   public BasicRepositoryConfiguration(String type, URI location)
+   {
+      this(type, location, false);
+   }
+   
+   public BasicRepositoryConfiguration(String type, URI location, boolean mutable)
+   {
+      if(type == null)
+      {
+         throw new IllegalArgumentException("null repository type");
+      }
+      if(location == null)
+      {
+         throw new IllegalArgumentException("null repository location");
+      }
+      this.type = type;
+      this.location = location;
+      this.mutable = mutable;
+   }
+   
+   public URI getLocation()
+   {
+      return location;
+   }
+   
+   public String getType()
+   {
+      return type;
+   }
+   
+   public boolean isMutable()
+   {
+      return mutable;
+   }
+   
+}
+

Modified: projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/virtual/assembly/AbstractVirtualDeploymentAssembly.java
===================================================================
--- projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/virtual/assembly/AbstractVirtualDeploymentAssembly.java	2009-09-03 14:39:17 UTC (rev 93168)
+++ projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/virtual/assembly/AbstractVirtualDeploymentAssembly.java	2009-09-03 14:44:16 UTC (rev 93169)
@@ -204,7 +204,6 @@
       return repository.getArtifactFile(artifact);
    }
    
-   
    /**
     * Get a VirtualFile root.
     * 
@@ -229,5 +228,6 @@
    {
       return VFS.getRoot(rootURL);
    }
+   
 }
 

Modified: projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/virtual/assembly/StructureMetaDataBuilder.java
===================================================================
--- projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/virtual/assembly/StructureMetaDataBuilder.java	2009-09-03 14:39:17 UTC (rev 93168)
+++ projects/profileservice/trunk/core/src/main/java/org/jboss/profileservice/virtual/assembly/StructureMetaDataBuilder.java	2009-09-03 14:44:16 UTC (rev 93169)
@@ -48,7 +48,7 @@
       VirtualDeploymentAssemblyContext ctx = deployment.getAttachment(
             VirtualDeploymentAssemblyContext.class.getName(), VirtualDeploymentAssemblyContext.class);
       
-      // Create the stucture meta data
+      // Create the structure meta data
       if(ctx != null)
          createStructureMetaData(target, "", ctx);
       

Modified: projects/profileservice/trunk/core/src/test/java/org/jboss/test/profileservice/ProfileServiceTestBase.java
===================================================================
--- projects/profileservice/trunk/core/src/test/java/org/jboss/test/profileservice/ProfileServiceTestBase.java	2009-09-03 14:39:17 UTC (rev 93168)
+++ projects/profileservice/trunk/core/src/test/java/org/jboss/test/profileservice/ProfileServiceTestBase.java	2009-09-03 14:44:16 UTC (rev 93169)
@@ -21,12 +21,14 @@
  */ 
 package org.jboss.test.profileservice;
 
+import java.io.IOException;
 import java.io.InputStream;
 import java.net.URL;
 
 import junit.framework.TestCase;
 
 import org.jboss.logging.Logger;
+import org.jboss.xb.binding.JBossXBException;
 import org.jboss.xb.binding.Unmarshaller;
 import org.jboss.xb.binding.UnmarshallerFactory;
 import org.jboss.xb.builder.JBossXBBuilder;
@@ -48,13 +50,13 @@
       return this.log;
    }
    
-   protected <T> T unmarshal(String resource, Class<T> clazz) throws Exception
+   protected <T> T unmarshal(String resource, Class<T> clazz) throws IOException, JBossXBException
    {
       URL url = getClass().getResource(resource);
       return unmarshal(url.openStream(), clazz);
    }
    
-   protected <T> T unmarshal(InputStream is, Class<T> clazz) throws Exception
+   protected <T> T unmarshal(InputStream is, Class<T> clazz) throws JBossXBException
    {
       try
       {

Modified: projects/profileservice/trunk/core/src/test/java/org/jboss/test/profileservice/test/AbstractProfileServiceTest.java
===================================================================
--- projects/profileservice/trunk/core/src/test/java/org/jboss/test/profileservice/test/AbstractProfileServiceTest.java	2009-09-03 14:39:17 UTC (rev 93168)
+++ projects/profileservice/trunk/core/src/test/java/org/jboss/test/profileservice/test/AbstractProfileServiceTest.java	2009-09-03 14:44:16 UTC (rev 93169)
@@ -21,12 +21,15 @@
  */ 
 package org.jboss.test.profileservice.test;
 
-import junit.framework.TestCase;
+import java.net.URL;
 
+import org.jboss.dependency.spi.ControllerContext;
 import org.jboss.kernel.Kernel;
 import org.jboss.kernel.plugins.bootstrap.basic.BasicBootstrap;
+import org.jboss.kernel.plugins.deployment.xml.BasicXMLDeployer;
 import org.jboss.kernel.spi.dependency.KernelController;
 import org.jboss.logging.Logger;
+import org.jboss.test.profileservice.ProfileServiceTestBase;
 
 /**
  * The abstract ProfileService test base.
@@ -34,11 +37,8 @@
  * @author <a href="mailto:emuckenh at redhat.com">Emanuel Muckenhuber</a>
  * @version $Revision$
  */
-public abstract class AbstractProfileServiceTest extends TestCase
+public abstract class AbstractProfileServiceTest extends ProfileServiceTestBase
 {
-
-   /** The logger. */
-   protected final Logger log = Logger.getLogger(getClass());
    
    /** The kernel. */
    private Kernel kernel;
@@ -46,19 +46,24 @@
    /** The kernel controller. */
    private KernelController controller;
    
+   /** The basic xml deployer. */
+   private BasicXMLDeployer deployer;
+   
    @Override
    public void setUp() throws Exception
    {
       super.setUp();
       this.kernel = bootstrapKernel();
       this.controller = kernel.getController();
+      this.deployer = new BasicXMLDeployer(this.kernel);
    }
    
    @Override
    public void tearDown() throws Exception
    {
+      super.tearDown();
+      getDeployer().shutdown();
       getController().shutdown();
-      super.tearDown();
    }
    
    protected Logger getLog()
@@ -66,22 +71,52 @@
       return this.log;
    }
    
-   public Kernel getKernel()
+   protected Kernel getKernel()
    {
       return kernel;
    }
    
-   public KernelController getController()
+   protected KernelController getController()
    {
       return controller;
    }
    
+   protected BasicXMLDeployer getDeployer()
+   {
+      return deployer;
+   }
+   
+   protected void deploy(URL url)
+   {
+      try
+      {
+         this.deployer.deploy(url);
+         this.deployer.validate();
+      }
+      catch(Throwable t)
+      {
+         throw new RuntimeException("failed to deploy " + url, t);
+      }
+   }
+   
+   protected <T> T getBean(String name, Class<T> clazz)
+   {
+      ControllerContext ctx = getController().getInstalledContext(name);
+      assertNotNull(name, ctx);
+      return clazz.cast(ctx.getTarget());
+   }
+   
    private Kernel bootstrapKernel()
    {
       BasicBootstrap bootstrap = new BasicBootstrap();
       bootstrap.run();
       return bootstrap.getKernel();
    }
+
+   static URL getResource(String name)
+   {
+      return Thread.currentThread().getContextClassLoader().getResource(name);
+   }
    
 }
 

Modified: projects/profileservice/trunk/core/src/test/java/org/jboss/test/profileservice/test/BasicProfileServiceUnitTestCase.java
===================================================================
--- projects/profileservice/trunk/core/src/test/java/org/jboss/test/profileservice/test/BasicProfileServiceUnitTestCase.java	2009-09-03 14:39:17 UTC (rev 93168)
+++ projects/profileservice/trunk/core/src/test/java/org/jboss/test/profileservice/test/BasicProfileServiceUnitTestCase.java	2009-09-03 14:44:16 UTC (rev 93169)
@@ -21,6 +21,13 @@
  */ 
 package org.jboss.test.profileservice.test;
 
+import java.util.List;
+
+import org.jboss.profileservice.metadata.ProfilesMetaDataFactory;
+import org.jboss.profileservice.spi.ProfileKey;
+import org.jboss.profileservice.spi.ProfileService;
+import org.jboss.profileservice.spi.metadata.ProfileMetaData;
+
 /**
  * @author <a href="mailto:emuckenh at redhat.com">Emanuel Muckenhuber</a>
  * @version $Revision$
@@ -28,12 +35,35 @@
 public class BasicProfileServiceUnitTestCase extends AbstractProfileServiceTest
 {
 
-   public void test()
+   static
    {
-      assertNotNull(getKernel());
-      assertNotNull(getController());
-      getLog().debug(getController());
+      System.setProperty("jboss.common.profiles.url", getResource("bootstrap/").toExternalForm());
+      System.setProperty("jboss.common.deployments.url", getResource("bootstrap/").toExternalForm());
    }
    
+   public void test() throws Exception
+   {
+      // Bootstrap ProfileService
+      deploy(getResource("bootstrap/bootstrap.xml"));
+
+      // Get the meta data factory
+      ProfilesMetaDataFactory mf = getBean("ProfileMetaDataFactory", ProfilesMetaDataFactory.class);
+      
+      // Parse the root profile
+      List<ProfileMetaData> profiles = mf.parse(getResource("bootstrap/root.profile"));
+      getLog().debug(profiles);
+      
+      // Now get the ProfileService
+      ProfileService ps = getBean("ProfileService", ProfileService.class);
+      
+      // And activate the profiles
+      for(ProfileMetaData profile : profiles)
+      {
+         ProfileKey key = ProfileKey.createProfileKey(profile);
+         ps.activateProfile(key);
+      }
+
+   }
+   
 }
 

Added: projects/profileservice/trunk/core/src/test/resources/bootstrap/basic.profile
===================================================================
--- projects/profileservice/trunk/core/src/test/resources/bootstrap/basic.profile	                        (rev 0)
+++ projects/profileservice/trunk/core/src/test/resources/bootstrap/basic.profile	2009-09-03 14:44:16 UTC (rev 93169)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<profiles xmlns="urn:jboss:profileservice:profiles:1.0" name="bootstrap">
+
+	<profile name="test-profile">
+
+	</profile>
+
+</profiles>
\ No newline at end of file

Added: projects/profileservice/trunk/core/src/test/resources/bootstrap/bootstrap.profile
===================================================================
--- projects/profileservice/trunk/core/src/test/resources/bootstrap/bootstrap.profile	                        (rev 0)
+++ projects/profileservice/trunk/core/src/test/resources/bootstrap/bootstrap.profile	2009-09-03 14:44:16 UTC (rev 93169)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<profiles xmlns="urn:jboss:profileservice:profiles:1.0" name="bootstrap">
+
+	<bootstrap-profile name="microcontainer-bootstrap">
+		<profile-source>
+			<source>${jboss.common.deployments.url}</source>	
+		</profile-source>
+		<deployment>profile.xml</deployment>
+	</bootstrap-profile>
+
+</profiles>
\ No newline at end of file

Added: projects/profileservice/trunk/core/src/test/resources/bootstrap/bootstrap.xml
===================================================================
--- projects/profileservice/trunk/core/src/test/resources/bootstrap/bootstrap.xml	                        (rev 0)
+++ projects/profileservice/trunk/core/src/test/resources/bootstrap/bootstrap.xml	2009-09-03 14:44:16 UTC (rev 93169)
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+  
+ -->
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+	<!-- The Profile Service -->
+	<bean name="ProfileService" class="org.jboss.profileservice.AbstractProfileService">
+		<constructor>
+			<parameter><inject bean="jboss.kernel:service=KernelController" /></parameter>
+			<parameter><inject bean="ProfileDeployerPluginRegistry" /></parameter>
+			<parameter><inject bean="TypedProfileFactory" /></parameter>
+		</constructor>
+		<property name="contextFactory"><inject bean="ControllerContextFactory" /></property>
+	</bean>
+	
+	<!-- A deployerPlugin registry - used when we want to swap the deployer -->
+	<bean name="ProfileDeployerPluginRegistry" class="org.jboss.profileservice.ProfileDeployerPluginRegistry" />
+	
+	<bean name="ControllerContextFactory" class="org.jboss.profileservice.dependency.DelegatingProfileContextFactory">
+		<property name="defaultContextFactory"><inject bean="DefaultControllerContextFactory" /></property>
+		<incallback method="addProfileContextFactory" />
+		<uncallback method="removeProfileContextFactory" />
+	</bean>
+	
+	<!-- Create a ctx for the BootstrapProfileMetaData -->
+	<bean name="BootstrapContextFactory" class="org.jboss.profileservice.profile.bootstrap.BootstrapProfileContextFactory" />
+	
+	<!-- A BasicXMlDeployer plugin -->
+	<bean name="BasicDeployerPlugin" class="org.jboss.profileservice.profile.bootstrap.BootstrapDeployerPlugin">
+		<constructor><parameter><inject bean="jboss.kernel:service=Kernel" /></parameter></constructor>
+		<!-- register -->
+		<install bean="ProfileDeployerPluginRegistry" method="addPlugin">
+			<parameter class="java.lang.String">org.jboss.profileservice.profile.bootstrap.BootstrapProfileMetaData</parameter>
+			<parameter><this/></parameter>
+		</install>
+	</bean>
+
+	<!-- The default controller context factory -->
+	<bean name="DefaultControllerContextFactory" class="org.jboss.profileservice.dependency.DefaultProfileContextFactory" />
+
+	<!-- The Profile metaData factory - which is parsing the profile.xmls -->
+	<bean name="ProfileMetaDataFactory" class="org.jboss.profileservice.metadata.RegisteringProfileMetaDataFactory">
+		<constructor><parameter><inject bean="ProfileService" /></parameter></constructor>
+	</bean>
+	
+	<!-- The profile factories -->
+	<bean name="TypedProfileFactory" class="org.jboss.profileservice.TypedProfileFactory">
+		<incallback method="addProfileFactory" />
+		<uncallback method="removeProfileFactory" />
+	</bean>
+
+</deployment>
\ No newline at end of file

Added: projects/profileservice/trunk/core/src/test/resources/bootstrap/profile.xml
===================================================================
--- projects/profileservice/trunk/core/src/test/resources/bootstrap/profile.xml	                        (rev 0)
+++ projects/profileservice/trunk/core/src/test/resources/bootstrap/profile.xml	2009-09-03 14:44:16 UTC (rev 93169)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+	<bean name="NoopDeployerPlugin" class="org.jboss.profileservice.NoopProfileDeployerPlugin">
+		<install bean="ProfileDeployerPluginRegistry" method="addDefaultPlugin">
+			<parameter><this/></parameter>
+		</install>
+	</bean>
+
+	<bean name="Basic Profile Factory" class="org.jboss.profileservice.repository.legacy.BasicProfileFactory" />
+
+
+</deployment>
\ No newline at end of file

Added: projects/profileservice/trunk/core/src/test/resources/bootstrap/root.profile
===================================================================
--- projects/profileservice/trunk/core/src/test/resources/bootstrap/root.profile	                        (rev 0)
+++ projects/profileservice/trunk/core/src/test/resources/bootstrap/root.profile	2009-09-03 14:44:16 UTC (rev 93169)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
+<root-profile xmlns="urn:jboss:profileservice:root:profile:1.0">
+
+	<profiles>
+		<profile-ref>${jboss.common.profiles.url}bootstrap.profile</profile-ref>
+		<profile-ref>${jboss.common.profiles.url}basic.profile</profile-ref>
+	</profiles>
+
+
+</root-profile>
\ No newline at end of file




More information about the jboss-cvs-commits mailing list