You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Aaron Whiteside (JIRA)" <ji...@apache.org> on 2013/01/15 16:50:13 UTC

[jira] [Updated] (CAMEL-5972) OsgiServiceRegistry.lookupByType() should use BundleContext.getServiceReferences()

     [ https://issues.apache.org/jira/browse/CAMEL-5972?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aaron Whiteside updated CAMEL-5972:
-----------------------------------

    Description: 
OsgiServiceRegistry.lookupByType() should use BundleContext.getServiceReferences()

The object name should be retrieved from the service property's. I suggest a property called "name".

The filter "(name=*)" could be used to only return services with the property name.


  was:
OsgiServiceRegistry.lookupByType() should use BundleContext.getServiceReferences()

The object name should be retrieved from the service property's. I suggest a property called "name".

If the service does not have a property called name, then it is logged as WARNING/DEBUG and not returned to the caller.

    
> OsgiServiceRegistry.lookupByType() should use BundleContext.getServiceReferences()
> ----------------------------------------------------------------------------------
>
>                 Key: CAMEL-5972
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5972
>             Project: Camel
>          Issue Type: Improvement
>          Components: osgi
>    Affects Versions: 2.10.3
>         Environment: GlassFish 3.1.2
>            Reporter: Aaron Whiteside
>
> OsgiServiceRegistry.lookupByType() should use BundleContext.getServiceReferences()
> The object name should be retrieved from the service property's. I suggest a property called "name".
> The filter "(name=*)" could be used to only return services with the property name.

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