You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2013/03/06 11:32:13 UTC

[jira] [Commented] (CAMEL-6130) EndpointHelper.setReferenceProperties() does not work with OSGiServiceRegistry

    [ https://issues.apache.org/jira/browse/CAMEL-6130?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13594577#comment-13594577 ] 

Claus Ibsen commented on CAMEL-6130:
------------------------------------

I think the fix should be on the OSGi side instead. So if Object.class is provided as type then it should ignore that. Or rely on the fact that any type is an Object.
                
> EndpointHelper.setReferenceProperties() does not work with OSGiServiceRegistry
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-6130
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6130
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.10.4
>            Reporter: Aaron Whiteside
>            Priority: Critical
>         Attachments: CAMEL-6130.patch
>
>
> EndpointHelper.setReferenceProperties() does not work with OSGiServiceRegistry
> setReferenceProperties() is hard-coded to lookup services of type Object.class.
> It should use reflection to determine the type that the setter method accepts and then use that type to lookup the reference in the service registry.
> At the moment this issue is stopping #bean references in Endpoints from being resolved when using an OSGiServiceRegistry, in OSGi you need to know the class of the service you want before hand.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira