Howdy,

>Well, before I commit to Java 1.2 Collections, I'd like to explore the
>possibility of doing away with Vector and List, Hashtable and Map.  Why
>not create some semantically meaningful interfaces of our own that
could
>then be backed by implementations that adhere to whatever JDK we want?
>What do we gain by using Collections?

You gain several things from using java.util's interfaces, because
they're a common standard in the java world:
- More XML-RPC users are familiar with the interfaces, reducing the
barrier to usage,
- More XML-RPC users/developers can work with these interfaces, reducing
the barrier to patch/enhancement contributions
- Less code is specific to XML-RPC, therefore the XML-RPC distribution
is smaller, simpler, and less buggy
- More XML-RPC implementations can directly interact with these
interfaces without custom code by the user, as interfaces such as Map
and List have direct equivalents in other programming languages.

On the other hand, what would you gain from defining your own interfaces
for these structures?  Note that XML-RPC would be free to use whatever
implementation, including a custom one not part of java.util, for the
Map/List interface.

Just thoughts on this issue ;)  I love how light and small XML-RPC is
already.

Yoav Shapira

>
>I'm thinking something like:
>XmlRpcConnection connection = new XmlRpcConnection("192.168.1.1");
>XmlRpcRequest request = new XmlRpcRequest("sample.multiply");
>request.addParameter(4);
>request.addParameter(8);
>
>XmlRpcResponse response = connection.execute(request);
>int answer = ((Integer) response.getValue()).intValue();
>
>It would be trivial to create an XmlRpcArray that contained the
>responses and provide Java 1.2 stuff in a wrapper or helper class (like
>Iterators).  Something similar could be done with XmlRpcStruct.
>
>Thoughts?
>--
>Ryan Hoegg
>ISIS Networks
>http://www.isisnetworks.net



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.

Reply via email to