You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by gd...@apache.org on 2001/11/10 00:17:47 UTC
cvs commit: xml-axis/java/src/org/apache/axis/handlers BasicHandler.java
gdaniels 01/11/09 15:17:47
Modified: java/src/org/apache/axis Handler.java
java/src/org/apache/axis/handlers BasicHandler.java
Log:
Be a little friendlier about that last change, just in case anyone's still
using addOption in a bunch of places. Deprecate it and delegate to the
new method in BasicHandler.
Revision Changes Path
1.23 +7 -0 xml-axis/java/src/org/apache/axis/Handler.java
Index: Handler.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/Handler.java,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- Handler.java 2001/11/09 23:13:01 1.22
+++ Handler.java 2001/11/09 23:17:47 1.23
@@ -104,6 +104,13 @@
* Add the given option (name/value) to this handler's bag of options
*/
public void setOption(String name, Object value);
+
+ /**
+ * Old version of setOption()
+ *
+ * @deprecated replaced by setOption, to be more consistent
+ */
+ public void addOption(String name, Object value);
/**
* Returns the option corresponding to the 'name' given
1.22 +9 -0 xml-axis/java/src/org/apache/axis/handlers/BasicHandler.java
Index: BasicHandler.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/org/apache/axis/handlers/BasicHandler.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- BasicHandler.java 2001/11/09 23:13:01 1.21
+++ BasicHandler.java 2001/11/09 23:17:47 1.22
@@ -113,6 +113,15 @@
if ( options == null ) options = new Hashtable();
options.put( name, value );
}
+
+ /**
+ * Old version of setOption()
+ *
+ * @deprecated replaced by setOption, to be more consistent
+ */
+ public void addOption(String name, Object value) {
+ setOption(name, value);
+ }
/**
* Returns the option corresponding to the 'name' given