Revision: 7759
Author: victormote
Date: 2006-07-07 18:42:02 -0700 (Fri, 07 Jul 2006)
ViewCVS: http://svn.sourceforge.net/foray/?rev=7759&view=rev
Log Message:
-----------
Extract a static method so that it can be used by other strategies.
Modified Paths:
--------------
trunk/foray/foray-common/src/java/org/foray/common/url/PropertyProtocolRegistration.java
Modified: trunk/foray/foray-common/src/java/org/foray/common/url/PropertyProtocolRegistration.java
===================================================================
--- trunk/foray/foray-common/src/java/org/foray/common/url/PropertyProtocolRegistration.java 2006-07-08 01:23:15 UTC (rev 7758)
+++ trunk/foray/foray-common/src/java/org/foray/common/url/PropertyProtocolRegistration.java 2006-07-08 01:42:02 UTC (rev 7759)
@@ -29,7 +29,6 @@
import java.net.URLStreamHandler;
import java.util.StringTokenizer;
-
/**
* An implementation of {#link ProtocolHandlerRegistry} which modifies the
* "java.protocol.handler.pkgs" property to register new URLStreamHandlers.
@@ -45,6 +44,15 @@
}
void doRegister(String protocol, URLStreamHandler handler) {
+ propertyRegistration(protocol, handler);
+ }
+
+ /**
+ * @param protocol
+ * @param handler
+ */
+ public static void propertyRegistration(String protocol,
+ URLStreamHandler handler) {
/* Parse the path. */
Class theClass = handler.getClass();
String classPath = theClass.getName();
@@ -101,4 +109,5 @@
searchPath += "|" + packagePrefix;
System.setProperty(javaProperty, searchPath);
}
+
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|