You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Willem Jiang (JIRA)" <ji...@apache.org> on 2013/01/15 06:28:13 UTC
[jira] [Assigned] (CAMEL-5969) OsgiServiceRegistry to lookup
services with filter on name=blah
[ https://issues.apache.org/jira/browse/CAMEL-5969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang reassigned CAMEL-5969:
-----------------------------------
Assignee: Willem Jiang
> 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
> Assignee: Willem Jiang
>
> 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