FELIX-2979 Use String constants instead of class literals for the service names to allow the class to load
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1129635 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ComponentsServlet.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ComponentsServlet.java
index b4688c8..08d743e 100644
--- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ComponentsServlet.java
+++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ComponentsServlet.java
@@ -71,9 +71,9 @@
//private static final String OPERATION_CONFIGURE = "configure";
// needed services
- private static final String SCR_SERVICE = ScrService.class.getName();
- private static final String META_TYPE_NAME = MetaTypeService.class.getName();
- private static final String CONFIGURATION_ADMIN_NAME = ConfigurationAdmin.class.getName();
+ private static final String SCR_SERVICE = "org.apache.felix.scr.ScrService";
+ private static final String META_TYPE_NAME = "org.osgi.service.metatype.MetaTypeService";
+ private static final String CONFIGURATION_ADMIN_NAME = "org.osgi.service.cm.ConfigurationAdmin";
// templates
private final String TEMPLATE;