FELIX-3861 Assign the plugin to the "Web Console" category
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1538345 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/webconsole-plugins/memoryusage/src/main/java/org/apache/felix/webconsole/plugins/memoryusage/internal/Activator.java b/webconsole-plugins/memoryusage/src/main/java/org/apache/felix/webconsole/plugins/memoryusage/internal/Activator.java
index 1b4ee5d..6fd44da 100644
--- a/webconsole-plugins/memoryusage/src/main/java/org/apache/felix/webconsole/plugins/memoryusage/internal/Activator.java
+++ b/webconsole-plugins/memoryusage/src/main/java/org/apache/felix/webconsole/plugins/memoryusage/internal/Activator.java
@@ -50,6 +50,7 @@
// install Web Console plugin
Dictionary<String, Object> pluginProps = new Hashtable<String, Object>();
pluginProps.put("felix.webconsole.label", MemoryUsageConstants.LABEL);
+ pluginProps.put("felix.webconsole.category", MemoryUsageConstants.CATEGORY);
new AbstractServiceFactory(bundleContext, pluginProps, "javax.servlet.Servlet",
"org.apache.felix.webconsole.ConfigurationPrinter")
{
diff --git a/webconsole-plugins/memoryusage/src/main/java/org/apache/felix/webconsole/plugins/memoryusage/internal/MemoryUsageConstants.java b/webconsole-plugins/memoryusage/src/main/java/org/apache/felix/webconsole/plugins/memoryusage/internal/MemoryUsageConstants.java
index 87964e1..a1f113e 100644
--- a/webconsole-plugins/memoryusage/src/main/java/org/apache/felix/webconsole/plugins/memoryusage/internal/MemoryUsageConstants.java
+++ b/webconsole-plugins/memoryusage/src/main/java/org/apache/felix/webconsole/plugins/memoryusage/internal/MemoryUsageConstants.java
@@ -38,6 +38,12 @@
static final String LABEL = "memoryusage";
/**
+ * The category under which the Memory Usage Web Console Plugin
+ * is listed.
+ */
+ static final String CATEGORY = "Web Console";
+
+ /**
* The name of the property providing the filesystem location where the
* memory dumps should be placed. If this location is relative it is located
* inside the bundle private data area.