[
https://issues.apache.org/jira/browse/CAMEL-5969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Willem Jiang resolved CAMEL-5969.
---------------------------------
Resolution: Fixed
Fix Version/s: 2.11.0
The patch was applied into trunk.
> 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
> Fix For: 2.11.0
>
>
> 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