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/14 19:22:12 UTC

[jira] [Created] (CAMEL-5969) OsgiServiceRegistry to lookup services with filter on name=blah

Aaron Whiteside created CAMEL-5969:
--------------------------------------

             Summary: OsgiServiceRegistry to lookup services with filter on name=blah
                 Key: CAMEL-5969
                 URL: https://issues.apache.org/jira/browse/CAMEL-5969
             Project: Camel
          Issue Type: Improvement
          Components: osgi
    Affects Versions: 2.10.3
         Environment: Glassfish 3.1.2
            Reporter: Aaron Whiteside


OsgiServiceRegistry to lookup services with filter on name=blah

When using the # bean resolver prefix in plain OSGi (not blueprint) the only way to lookup a service is by specifying the full registered class/interface name of that service.

The OsgiServiceRegistry should also try and lookup a service like the OsgiComponentResolver does using a filter on a service property. I suggest that the filter be on a property called "name".

This means the method public <T> T lookup(String name, Class<T> type) should try to lookup the service with the class from the type parameter and filter on "(name=" + 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