FELIX-3783 use static strings for service names to prevent ClassNotFoundError's when the API is not available

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1413487 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManagerBase.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManagerBase.java
index 195ed1e..8af2928 100644
--- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManagerBase.java
+++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigManagerBase.java
@@ -50,9 +50,9 @@
 
     private static final long serialVersionUID = -6691093960031418130L;
 
-    private static final String CONFIGURATION_ADMIN_NAME = ConfigurationAdmin.class.getName();
+    static final String CONFIGURATION_ADMIN_NAME = "org.osgi.service.cm.ConfigurationAdmin";
 
-    private static final String META_TYPE_NAME = MetaTypeService.class.getName();
+    static final String META_TYPE_NAME = "org.osgi.service.metatype.MetaTypeService";
 
 
     protected ConfigurationAdmin getConfigurationAdmin()
diff --git a/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigurationAdminConfigurationPrinter.java b/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigurationAdminConfigurationPrinter.java
index 72220c3..8d2abb1 100644
--- a/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigurationAdminConfigurationPrinter.java
+++ b/webconsole/src/main/java/org/apache/felix/webconsole/internal/compendium/ConfigurationAdminConfigurationPrinter.java
@@ -55,8 +55,7 @@
      */
     public void printConfiguration(PrintWriter pw)
     {
-        ServiceReference sr = getBundleContext().getServiceReference(
-            ConfigurationAdmin.class.getName());
+        ServiceReference sr = getBundleContext().getServiceReference( ConfigManagerBase.CONFIGURATION_ADMIN_NAME );
         if (sr == null)
         {
             pw.println("Status: Configuration Admin Service not available");