[jboss-cvs] JBossAS SVN: r88216 - projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/memory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue May 5 10:06:23 EDT 2009


Author: alesj
Date: 2009-05-05 10:06:23 -0400 (Tue, 05 May 2009)
New Revision: 88216

Modified:
   projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/memory/MemoryContext.java
   projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/memory/MemoryContextFactory.java
Log:
javadocs, remove unneccesary root.

Modified: projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/memory/MemoryContext.java
===================================================================
--- projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/memory/MemoryContext.java	2009-05-05 14:05:28 UTC (rev 88215)
+++ projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/memory/MemoryContext.java	2009-05-05 14:06:23 UTC (rev 88216)
@@ -48,14 +48,10 @@
    /** The root file */
    private final MemoryContextHandler root;
    
-   /** A reference to the virtual file of the root to stop it getting closed */
-   private final VirtualFile rootFile;
-
    protected MemoryContext(URL url) throws URISyntaxException
    {
       super(url);
       root = new MemoryContextHandler(this, null, url, url.getFile());
-      rootFile = root.getVirtualFile();
    }
 
    public String getName()

Modified: projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/memory/MemoryContextFactory.java
===================================================================
--- projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/memory/MemoryContextFactory.java	2009-05-05 14:05:28 UTC (rev 88215)
+++ projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/memory/MemoryContextFactory.java	2009-05-05 14:06:23 UTC (rev 88216)
@@ -39,6 +39,7 @@
  * The roots are indexed as the 'host' part of the URLs they are stored under 
  * 
  * @author <a href="kabir.khan at jboss.com">Kabir Khan</a>
+ * @author <a href="ales.justin at jboss.com">Ales Justin</a>
  * @version $Revision: 1.1 $
  */
 public class MemoryContextFactory implements VFSContextFactory
@@ -102,7 +103,8 @@
 
    /**
     * Creates a new root MemoryContext, or returns an already exixting one of one already 
-    * exists for the name
+    * exists for the name.
+    *
     * @param url The url of the root, we use the 'host' part of the name for indexing the context  
     * @return The found or created context
     * @throws IllegalArgumentException If the url parameter contains a path
@@ -135,7 +137,8 @@
    }
 
    /**
-    * Creates a 'directory' within the context determined by the url host part
+    * Creates a 'directory' within the context determined by the url host part.
+    *
     * @param url The url of the directory we want to create
     * @return The created directory
     * @throws IllegalArgumentException if there is no root matching the host part of the url 
@@ -151,7 +154,8 @@
    }
    
    /**
-    * Creates a 'file' within the context determined by the url host part
+    * Creates a 'file' within the context determined by the url host part.
+    *
     * @param url The url of the directory we want to create
     * @param contents The contents of the file
     * @return The created file
@@ -168,7 +172,8 @@
    }
    
    /**
-    * Deletes a root MemoryContext 
+    * Deletes a root MemoryContext.
+    *
     * @param url of the root context we want to delete
     * @return true if we deleted a root MemoryContext, false otherwise
     * @throws IllegalArgumentException If the url parameter contains a path
@@ -183,7 +188,8 @@
    }
 
    /**
-    * Deletes a 'file' or a 'directory' 
+    * Deletes a 'file' or a 'directory'.
+    *
     * @param url of the 'file' or 'directory' we want to delete 
     * @return true if we deleted a 'file' or 'directory', false otherwise
     */




More information about the jboss-cvs-commits mailing list