Revision: 7767
Author: victormote
Date: 2006-07-07 19:27:21 -0700 (Fri, 07 Jul 2006)
ViewCVS: http://svn.sourceforge.net/foray/?rev=7767&view=rev
Log Message:
-----------
Make the Universal strategy the default one. Applications that wish to use a different one should use the "set" method to select the one they want.
Modified Paths:
--------------
trunk/foray/foray-common/src/java/org/foray/common/url/ProtocolRegistrationBroker.java
Modified: trunk/foray/foray-common/src/java/org/foray/common/url/ProtocolRegistrationBroker.java
===================================================================
--- trunk/foray/foray-common/src/java/org/foray/common/url/ProtocolRegistrationBroker.java 2006-07-08 02:24:28 UTC (rev 7766)
+++ trunk/foray/foray-common/src/java/org/foray/common/url/ProtocolRegistrationBroker.java 2006-07-08 02:27:21 UTC (rev 7767)
@@ -57,13 +57,10 @@
* @return The custom ProtocolHandlerRegistry instance for this session.
*/
public static synchronized ProtocolRegistrationStrategy getRegistry() {
- /* Here a mechanism will have to be added to choose between the two
- * methods of registering a protocol handler: URLStreamHandlerFactory
- * or Java property
- */
if (registry == null) {
- registry = new PropertyProtocolRegistration();
+ registry = new UniversalProtocolRegistration();
}
return registry;
}
+
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|