[Jboss-cvs] JBossAS SVN: r55391 - projects/microcontainer/trunk/container/src/main/org/jboss/vfs/file

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Aug 7 18:41:08 EDT 2006


Author: scott.stark at jboss.org
Date: 2006-08-07 18:41:07 -0400 (Mon, 07 Aug 2006)
New Revision: 55391

Modified:
   projects/microcontainer/trunk/container/src/main/org/jboss/vfs/file/FileSystemVFS.java
Log:
Correct the looping over all searchContexts in resolveFile to stop as soon as a match is found.

Modified: projects/microcontainer/trunk/container/src/main/org/jboss/vfs/file/FileSystemVFS.java
===================================================================
--- projects/microcontainer/trunk/container/src/main/org/jboss/vfs/file/FileSystemVFS.java	2006-08-07 22:31:43 UTC (rev 55390)
+++ projects/microcontainer/trunk/container/src/main/org/jboss/vfs/file/FileSystemVFS.java	2006-08-07 22:41:07 UTC (rev 55391)
@@ -132,6 +132,8 @@
             // See if we can create a virtual file from the context
             match = resolveFile(path, ctx);
          }
+         if( match != null )
+            break;
       }
       return match;
    }
@@ -141,11 +143,17 @@
       return null;
    }
 
+   /**
+    * TODO
+    */
    public List<VirtualFile> resolveFiles(String path, List<URL> searchContexts)
    {
       return null;
    }
 
+   /**
+    * Clear the Map<String, VirtualFile> of name to VF hits
+    */
    public void clear()
    {
       fileCache.clear();
@@ -157,6 +165,10 @@
       return scanner;
    }
 
+   /**
+    * Get the rootURL for the VFS
+    * @return rootURL for the VFS
+    */
    public URL getRootURL()
    {
       return rootURL;




More information about the jboss-cvs-commits mailing list