commit | 6a420d367937ae02c730f282c26054277e5a7149 | [log] [tgz] |
---|---|---|
author | Felix Meschberger <fmeschbe@apache.org> | Thu Apr 08 07:25:37 2010 +0000 |
committer | Felix Meschberger <fmeschbe@apache.org> | Thu Apr 08 07:25:37 2010 +0000 |
tree | 327d700c733f37bda3050173aab9beb04d0fbaf1 | |
parent | c46c5285db35fdcc1d009c1a56d5639f22bebc81 [diff] |
FELIX-2259 Use getAllServiceReferences method to retrieve service references to not miss some services git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@931806 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/ServicesServlet.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/ServicesServlet.java index e36ca3a..ca3945c 100644 --- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/ServicesServlet.java +++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/core/ServicesServlet.java
@@ -254,7 +254,7 @@ String filterStr = filter.toString(); try { - ServiceReference[] refs = getBundleContext().getServiceReferences( null, filterStr ); + ServiceReference[] refs = getBundleContext().getAllServiceReferences( null, filterStr ); if ( refs == null || refs.length != 1 ) { return null; @@ -274,7 +274,7 @@ { try { - return getBundleContext().getServiceReferences( null, null ); + return getBundleContext().getAllServiceReferences( null, null ); } catch ( InvalidSyntaxException e ) {