Hi All,
I just started doing some tests with Felix Framework 4.0 and it looks like
public <S> Collection<ServiceReference<S>>
BundleContext::getServiceReferences(Class<S> clazz, String filter)
is ignoring the filter parameter, looking at BundleContextImpl code,
it looks like that is the case
public <S> Collection<ServiceReference<S>> getServiceReferences(
Class<S> clazz, String filter)
throws InvalidSyntaxException
{
ServiceReference<S>[] refs =
(ServiceReference<S>[])
getServiceReferences(clazz.getName(), null); /// The filter param
should be here instead of the null.
return (refs == null)
? Collections.EMPTY_LIST
: (Collection<ServiceReference<S>>) Arrays.asList(refs);
}
Thanks,
Lucas