[ 
http://issues.apache.org/jira/browse/XMLRPC-121?page=comments#action_12449359 ] 
            
Eugene Prokopiev commented on XMLRPC-121:
-----------------------------------------

Spring configuration may be like this:

<beans>
       
        <bean name="xmlRpcServer" 
class="org.springframework.remoting.xmlrpc.XmlRpcServerBean">
                <property name="port" value="1025"/>
                <property name="handlersByName">
                        <map>
                                <entry key="modemManager" 
value-ref="modemManager"/>
                        </map>
                </property>
        </bean>

        <bean name="modemManager" class="devman.modem.ModemManager"/>

</beans>

> 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, XmlRpcServerBean.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