[jboss-cvs] JBossAS SVN: r59124 - projects/vfs/trunk/src/main/java/org/jboss/virtual
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Dec 18 22:01:08 EST 2006
Author: scott.stark at jboss.org
Date: 2006-12-18 22:01:07 -0500 (Mon, 18 Dec 2006)
New Revision: 59124
Modified:
projects/vfs/trunk/src/main/java/org/jboss/virtual/VFS.java
Log:
Refactor the protocol handler setup into an init method.
Modified: projects/vfs/trunk/src/main/java/org/jboss/virtual/VFS.java
===================================================================
--- projects/vfs/trunk/src/main/java/org/jboss/virtual/VFS.java 2006-12-19 03:00:02 UTC (rev 59123)
+++ projects/vfs/trunk/src/main/java/org/jboss/virtual/VFS.java 2006-12-19 03:01:07 UTC (rev 59124)
@@ -48,6 +48,11 @@
static
{
+ init();
+ }
+
+ public static void init()
+ {
String pkgs = System.getProperty("java.protocol.handler.pkgs");
if (pkgs == null || pkgs.trim().length() == 0)
{
@@ -60,7 +65,7 @@
System.setProperty("java.protocol.handler.pkgs", pkgs);
}
// keep this until AOP and HEM uses VFS internally instead of the stupid ArchiveBrowser crap.
- ArchiveBrowser.factoryFinder.put("vfsfile", new VfsArchiveBrowserFactory());
+ ArchiveBrowser.factoryFinder.put("vfsfile", new VfsArchiveBrowserFactory());
}
/**
More information about the jboss-cvs-commits
mailing list