[jboss-cvs] JBossAS SVN: r99295 - in branches/vfs3-int/profileservice/src/main/java/org/jboss/profileservice/management: templates and 1 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Jan 12 11:03:43 EST 2010


Author: johnbailey
Date: 2010-01-12 11:03:42 -0500 (Tue, 12 Jan 2010)
New Revision: 99295

Modified:
   branches/vfs3-int/profileservice/src/main/java/org/jboss/profileservice/management/AbstractTemplateCreator.java
   branches/vfs3-int/profileservice/src/main/java/org/jboss/profileservice/management/templates/JmsDestinationTemplate.java
   branches/vfs3-int/profileservice/src/main/java/org/jboss/profileservice/management/upload/remoting/AbstractDeployHandler.java
   branches/vfs3-int/profileservice/src/main/java/org/jboss/profileservice/management/upload/remoting/DeployHandler.java
Log:
[JBAS-7348] - Initial VFS3 integration for jboss-as-profileservice

Modified: branches/vfs3-int/profileservice/src/main/java/org/jboss/profileservice/management/AbstractTemplateCreator.java
===================================================================
--- branches/vfs3-int/profileservice/src/main/java/org/jboss/profileservice/management/AbstractTemplateCreator.java	2010-01-12 15:58:01 UTC (rev 99294)
+++ branches/vfs3-int/profileservice/src/main/java/org/jboss/profileservice/management/AbstractTemplateCreator.java	2010-01-12 16:03:42 UTC (rev 99295)
@@ -28,7 +28,7 @@
 import org.jboss.deployers.spi.management.deploy.DeploymentProgress;
 import org.jboss.managed.api.DeploymentTemplateInfo;
 import org.jboss.profileservice.spi.ProfileKey;
-import org.jboss.virtual.VirtualFile;
+import org.jboss.vfs.VirtualFile;
 
 /**
  * A basic template creator, which applies and distributes the template.

Modified: branches/vfs3-int/profileservice/src/main/java/org/jboss/profileservice/management/templates/JmsDestinationTemplate.java
===================================================================
--- branches/vfs3-int/profileservice/src/main/java/org/jboss/profileservice/management/templates/JmsDestinationTemplate.java	2010-01-12 15:58:01 UTC (rev 99294)
+++ branches/vfs3-int/profileservice/src/main/java/org/jboss/profileservice/management/templates/JmsDestinationTemplate.java	2010-01-12 16:03:42 UTC (rev 99295)
@@ -51,8 +51,8 @@
 import org.jboss.metatype.api.values.MetaValueFactory;
 import org.jboss.metatype.api.values.SimpleValue;
 import org.jboss.metatype.plugins.values.MetaValueFactoryBuilder;
-import org.jboss.virtual.VFS;
-import org.jboss.virtual.VirtualFile;
+import org.jboss.vfs.VFS;
+import org.jboss.vfs.VirtualFile;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 
@@ -112,7 +112,7 @@
       // Write template
       writeTemplate(dsXml, values);
       // Return virtual file
-      return VFS.getRoot(dsXml.toURI());
+      return VFS.getChild(dsXml.toURI());
    }
 
    public void updateTemplateDeployment(VFSDeployment ctx, DeploymentTemplateInfo values) throws Exception

Modified: branches/vfs3-int/profileservice/src/main/java/org/jboss/profileservice/management/upload/remoting/AbstractDeployHandler.java
===================================================================
--- branches/vfs3-int/profileservice/src/main/java/org/jboss/profileservice/management/upload/remoting/AbstractDeployHandler.java	2010-01-12 15:58:01 UTC (rev 99294)
+++ branches/vfs3-int/profileservice/src/main/java/org/jboss/profileservice/management/upload/remoting/AbstractDeployHandler.java	2010-01-12 16:03:42 UTC (rev 99295)
@@ -50,7 +50,7 @@
 import org.jboss.security.SecurityContext;
 import org.jboss.system.server.profileservice.repository.DefaultProfileDeploymentFactory;
 import org.jboss.system.server.profileservice.repository.MainDeployerAdapter;
-import org.jboss.virtual.VirtualFile;
+import org.jboss.vfs.VirtualFile;
 
 /**
  * A remoting StreamInvocationHandler installed as the profile service subsystem

Modified: branches/vfs3-int/profileservice/src/main/java/org/jboss/profileservice/management/upload/remoting/DeployHandler.java
===================================================================
--- branches/vfs3-int/profileservice/src/main/java/org/jboss/profileservice/management/upload/remoting/DeployHandler.java	2010-01-12 15:58:01 UTC (rev 99294)
+++ branches/vfs3-int/profileservice/src/main/java/org/jboss/profileservice/management/upload/remoting/DeployHandler.java	2010-01-12 16:03:42 UTC (rev 99295)
@@ -36,8 +36,8 @@
 import org.jboss.profileservice.spi.MutableProfile;
 import org.jboss.profileservice.spi.ProfileDeployment;
 import org.jboss.profileservice.spi.ProfileService;
-import org.jboss.virtual.VFS;
-import org.jboss.virtual.VirtualFile;
+import org.jboss.vfs.VFS;
+import org.jboss.vfs.VirtualFile;
 
 /**
  * A profile service deploy subsystem handling transient deployments. 
@@ -105,7 +105,7 @@
       log.info("Begin distribute, content url: " + contentURL);
 
       // Create the virtual file
-      VirtualFile vf = VFS.getRoot(contentURL);
+      VirtualFile vf = VFS.getChild(contentURL);
      
       // FIXME make deployment visible to management view
       ProfileDeployment deployment = createDeployment(vf);




More information about the jboss-cvs-commits mailing list