Can not pass implementation class reference to XFireExporter
------------------------------------------------------------

                 Key: XFIRE-863
                 URL: http://jira.codehaus.org/browse/XFIRE-863
             Project: XFire
          Issue Type: Bug
          Components: Spring
    Affects Versions: 1.2.4
            Reporter: Ilya Kuleshov
         Assigned To: Dan Diephouse
         Attachments: XFireExporter.patch

It is impossible to pass an implementation class reference to XFireExporter 
bean. It tries to create an AOP proxy in getProxyForService() method:

  proxyFactory.addInterface( 
getXFireService().getServiceInfo().getServiceClass() );

which leads to

IllegalArgumentException in 
org.springframework.aop.framework.AdvisedSupport.addInterface method.

This behaviour differs from  ServiceBean's implementation that just returns the 
result of

getServiceBean()

and therefore works well with all classes.

I have attached a patch that simply adds a proxyInterface property to 
XFireExporter. This property is used to create an AOP proxy if serviceClass 
property refers to an implementation class.


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

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to