Revision: 7774
Author: victormote
Date: 2006-07-08 11:46:02 -0700 (Sat, 08 Jul 2006)
ViewCVS: http://svn.sourceforge.net/foray/?rev=7774&view=rev
Log Message:
-----------
Rename methods (per Vincent Hennebert's suggestion).
Modified Paths:
--------------
trunk/foray/foray-common/src/java/org/foray/common/url/PropertyProtocolRegistration.java
trunk/foray/foray-common/src/java/org/foray/common/url/ProtocolRegistrationBroker.java
trunk/foray/foray-common/src/java/org/foray/common/url/classpath/Handler.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 18:42:47 UTC (rev 7773)
+++ trunk/foray/foray-common/src/java/org/foray/common/url/PropertyProtocolRegistration.java 2006-07-08 18:46:02 UTC (rev 7774)
@@ -50,7 +50,7 @@
/**
* Constructor.
- * @see ProtocolRegistrationBroker#getStrategy
+ * @see ProtocolRegistrationBroker#getRegistrationStrategy
*/
public PropertyProtocolRegistration() {
}
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 18:42:47 UTC (rev 7773)
+++ trunk/foray/foray-common/src/java/org/foray/common/url/ProtocolRegistrationBroker.java 2006-07-08 18:46:02 UTC (rev 7774)
@@ -43,10 +43,10 @@
* The default strategy is {@link UniversalProtocolRegistration}, and it
* will be selected automatically unless this method is used to set a
* different strategy <em>before the first call</em> to the
- * {@link #getStrategy} method.
+ * {@link #getRegistrationStrategy} method.
* @param strategy the registry used to record custom URL protocol handlers
*/
- public static synchronized void setStrategy(
+ public static synchronized void setRegistrationStrategy (
ProtocolRegistrationStrategy strategy) {
if (strategy != null) {
String className = ProtocolRegistrationBroker.class.getName();
@@ -61,7 +61,8 @@
* @return The {@link ProtocolRegistrationStrategy} to be used for custom
* URL handler registration for this session.
*/
- public static synchronized ProtocolRegistrationStrategy getStrategy() {
+ public static synchronized ProtocolRegistrationStrategy
+ getRegistrationStrategy() {
if (strategy == null) {
strategy = new UniversalProtocolRegistration();
}
Modified: trunk/foray/foray-common/src/java/org/foray/common/url/classpath/Handler.java
===================================================================
--- trunk/foray/foray-common/src/java/org/foray/common/url/classpath/Handler.java 2006-07-08 18:42:47 UTC (rev 7773)
+++ trunk/foray/foray-common/src/java/org/foray/common/url/classpath/Handler.java 2006-07-08 18:46:02 UTC (rev 7774)
@@ -81,7 +81,7 @@
if (!alreadyRegistered) {
URLStreamHandler handler = new Handler();
ProtocolRegistrationStrategy registry =
- ProtocolRegistrationBroker.getStrategy();
+ ProtocolRegistrationBroker.getRegistrationStrategy();
registry.registerProtocolHandler(Handler.PROTOCOL, handler);
alreadyRegistered = true;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|