[ http://issues.apache.org/jira/browse/XMLRPC-121?page=all ]

Eugene Prokopiev updated XMLRPC-121:
------------------------------------

    Attachment: ObjectHandlerMapping.java

This is implementation which can use already created objects as handlers. It's 
dirty hack because copy code from AbstractReflectiveHandlerMapping. So, it will 
be more suitable to rewrite AbstractReflectiveHandlerMapping for such handlers 
creating.

I can't know how to write another implementation to create handlers instances 
from external factory by name because there are no information about instance 
methods which used by ObjectHandlerMapping. Is it possible to use reflection 
only on calling methods?

> Additional ways to create request handlers
> ------------------------------------------
>
>                 Key: XMLRPC-121
>                 URL: http://issues.apache.org/jira/browse/XMLRPC-121
>             Project: XML-RPC
>          Issue Type: Improvement
>          Components: Source
>    Affects Versions: 3.0
>            Reporter: Eugene Prokopiev
>         Attachments: ObjectHandlerMapping.java
>
>
> Now it's possible to create handlers only by class name (different instances 
> on every request or one instance for all request). It can be very useful to 
> create handlers based on already created instances (as in XML-RPC 1.2) or by 
> some external factory which can return instance (new or already created or 
> from pool) by some string name. Any IoC (Spring, HiveMind, ...) container can 
> be an example of such factory. This can be done by 
> RequestProcessorFactoryFactory implementation analog with String parameter 
> instead of Class.

-- 
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