[jboss-cvs] JBossAS SVN: r101455 - in trunk: system/src/main/java/org/jboss/system/server/profileservice/repository/clustered/local and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Feb 25 04:43:20 EST 2010


Author: ALRubinger
Date: 2010-02-25 04:43:20 -0500 (Thu, 25 Feb 2010)
New Revision: 101455

Modified:
   trunk/server/src/etc/conf/all/bootstrap/profile.xml
   trunk/system/src/main/java/org/jboss/system/server/profileservice/repository/clustered/local/JAXBRepositoryContentMetadataPersister.java
Log:
[JBAS-7768] Accept any type of AS-based server to support Embedded in JAXBRepositoryContentMetadataPersister

Modified: trunk/server/src/etc/conf/all/bootstrap/profile.xml
===================================================================
--- trunk/server/src/etc/conf/all/bootstrap/profile.xml	2010-02-25 07:45:13 UTC (rev 101454)
+++ trunk/server/src/etc/conf/all/bootstrap/profile.xml	2010-02-25 09:43:20 UTC (rev 101455)
@@ -151,7 +151,7 @@
          <!-- Here we use the constructor version that takes the Server impl and 
               uses it to find the data dir. You could alternatively use a version 
               that takes a URI or a File. -->
-         <parameter class="org.jboss.bootstrap.api.as.server.JBossASServer"><inject bean="JBossServer"/></parameter>
+         <parameter class="org.jboss.bootstrap.api.as.server.JBossASBasedServer"><inject bean="JBossServer"/></parameter>
       </constructor>
    </bean>
          
@@ -212,4 +212,4 @@
 		<property name="matches">.make.state,.nse_depinfo,CVS,CVS.admin,RCS,RCSLOG,SCCS,TAGS,core,tags</property>
 	</bean>
 
-</deployment>
\ No newline at end of file
+</deployment>

Modified: trunk/system/src/main/java/org/jboss/system/server/profileservice/repository/clustered/local/JAXBRepositoryContentMetadataPersister.java
===================================================================
--- trunk/system/src/main/java/org/jboss/system/server/profileservice/repository/clustered/local/JAXBRepositoryContentMetadataPersister.java	2010-02-25 07:45:13 UTC (rev 101454)
+++ trunk/system/src/main/java/org/jboss/system/server/profileservice/repository/clustered/local/JAXBRepositoryContentMetadataPersister.java	2010-02-25 09:43:20 UTC (rev 101455)
@@ -29,7 +29,7 @@
 import javax.xml.bind.JAXBContext;
 import javax.xml.bind.Marshaller;
 
-import org.jboss.bootstrap.api.as.server.JBossASServer;
+import org.jboss.bootstrap.api.as.server.JBossASBasedServer;
 import org.jboss.logging.Logger;
 import org.jboss.system.server.profileservice.repository.clustered.metadata.RepositoryContentMetadata;
 import org.jboss.xb.binding.Unmarshaller;
@@ -62,7 +62,7 @@
     * @param server
     * @throws URISyntaxException If the server's configuration data location could not be represented as a URI
     */
-   public JAXBRepositoryContentMetadataPersister(final JBossASServer server) throws URISyntaxException
+   public JAXBRepositoryContentMetadataPersister(final JBossASBasedServer<?,?> server) throws URISyntaxException
    {
      this(server.getConfiguration().getServerDataLocation().toURI());
    }




More information about the jboss-cvs-commits mailing list