[ 
http://issues.apache.org/jira/browse/XMLRPC-75?page=comments#action_12367658 ] 

Jochen Wiedmann commented on XMLRPC-75:
---------------------------------------

Walter, I have added the interfaces XmlRpcListableHandlerMapping, and 
XmlRpcMetaDataHandler. Please note:

- I have added some comments. They represent my thoughts. As such, they are 
questionable.
  Please read them carefully and verify, whether they meet your expectations.
- I have added methods getMethodSignatures() and getMethodHelp() to the handler 
mapping.
  Obviously, the will usually be implemented by simply calling the respective 
handlers
  methods. However, I find it thinkable, that a handler mapping will not do 
this.

If the above is fine for you, then I suggest the following steps to follow:

- Modify your XmlRpcSystemImpl to use the handler mapping methods.
  (Nice idea, btw, to implement it like this. Did you note, that it can easily 
be
  added to the property mappings by simply adding a property "system"?
  Dynamic addition isn't required.)
- Make the default handler mappings implement listable handler mapping.
- Same for the default handlers, which should implement metadada handler.





> Introspection Patch for XML-RPC, current to SVN 2005-12-29 (r359943)
> --------------------------------------------------------------------
>
>          Key: XMLRPC-75
>          URL: http://issues.apache.org/jira/browse/XMLRPC-75
>      Project: XML-RPC
>         Type: New Feature
>   Components: Source
>     Versions: unspecified
>     Reporter: Walter Mundt
>     Assignee: Jochen Wiedmann
>  Attachments: IntrospectionExample.java, xmlrpc-2.0-beta-introspection.patch, 
> xmlrpc3-metadata.diff, xmlrpc3-metadata.diff
>
> I've taken Aaron Hamid's Introspection patch (which was in turn derived from 
> the one here: 
> http://xmlrpc-c.sourceforge.net/hacks/helma-xmlrpc-introspection.diff ) and 
> basically rewritten it to work with the current XML-RPC library.
> I tried to set it up so that it followed the existing coding style as much as 
> possible, and would not break any existing applications.  For example, when I 
> needed a list of handlers supported by a particular mapping, I added a new 
> interface XmlRpcListableHandlerMapping that provides this information, made 
> the default handler implement it, and designed my code so that if it were not 
> implemented by a handler in use, everything  would work except the 
> system.listMethods functionality that relies on it.
> I hope you will be able to integrate this code into the next version of the 
> library; please contact me with any questions or issues.  I will be attaching 
> the patch to this issue if I can so that the problem with his previous patch 
> will not occur.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to