[Jboss-cvs] JBossAS SVN: r55516 - branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/spi

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Aug 11 02:39:02 EDT 2006


Author: scott.stark at jboss.org
Date: 2006-08-11 02:39:01 -0400 (Fri, 11 Aug 2006)
New Revision: 55516

Modified:
   branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/spi/DeploymentContext.java
Log:
Propagate the vfs to the DeploymentImpl and DeploymentContexts

Modified: branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/spi/DeploymentContext.java
===================================================================
--- branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/spi/DeploymentContext.java	2006-08-11 06:38:35 UTC (rev 55515)
+++ branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/spi/DeploymentContext.java	2006-08-11 06:39:01 UTC (rev 55516)
@@ -35,6 +35,7 @@
 import java.util.concurrent.ConcurrentHashMap;
 import java.util.concurrent.CopyOnWriteArraySet;
 import org.jboss.util.JBossObject;
+import org.jboss.vfs.spi.ReadOnlyVFS;
 import org.jboss.vfs.spi.VirtualFile;
 
 /**
@@ -62,6 +63,7 @@
       new ObjectStreamField("contextData", ArrayList.class),
    };
    // Protected Data ------------------------------------------------
+   private ReadOnlyVFS vfs;
    private VirtualFile file;
    private VirtualFile watchFile;
    private DeploymentContext parent;
@@ -78,8 +80,9 @@
    public DeploymentContext()
    {
    }
-   public DeploymentContext(VirtualFile file, DeploymentContext parent)
+   public DeploymentContext(ReadOnlyVFS vfs, VirtualFile file, DeploymentContext parent)
    {
+      this.vfs = vfs;
       this.file = file;
       this.parent = parent;
    }
@@ -87,6 +90,14 @@
    // Public --------------------------------------------------------
 
    /**
+    * Get the deployment context virtual file
+    */
+   public ReadOnlyVFS getVFS()
+   {
+      return vfs;
+   }
+
+   /**
     * Get the virtual file that represents the root of the deployment context
     */
    public VirtualFile getFile()
@@ -242,9 +253,10 @@
     */
    public boolean addClasspathEntry(String path)
    {
+      log.debug(getFile().getName()+", adding classpath entry: "+path);
       return classpath.add(path);
    }
-   
+
    /**
     * Adds a child subdeployment
     * 




More information about the jboss-cvs-commits mailing list