From de9ad4f938491567e539ab5151320ec901ae1251 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 18 Sep 2006 17:06:45 +0000
Subject: [PATCH] Add test cases for various server elements, including:

---
 opends/src/server/org/opends/server/core/PluginConfigManager.java |   34 ++++++++++++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/core/PluginConfigManager.java b/opends/src/server/org/opends/server/core/PluginConfigManager.java
index 584704b..bf7afae 100644
--- a/opends/src/server/org/opends/server/core/PluginConfigManager.java
+++ b/opends/src/server/org/opends/server/core/PluginConfigManager.java
@@ -554,6 +554,40 @@
 
 
 
+  /**
+   * Retrieves the set of plugins that have been registered with the Directory
+   * Server.
+   *
+   * @return  The set of plugins that have been registered with the Directory
+   *          Server.
+   */
+  public ConcurrentHashMap<DN,DirectoryServerPlugin> getRegisteredPlugins()
+  {
+    assert debugEnter(CLASS_NAME, "getRegisteredPlugins");
+
+    return registeredPlugins;
+  }
+
+
+
+  /**
+   * Retrieves the plugin with the specified configuration entry DN.
+   *
+   * @param  pluginDN  The DN of the configuration entry for the plugin to
+   *                   retrieve.
+   *
+   * @return  The requested plugin, or <CODE>null</CODE> if there is no such
+   *          plugin.
+   */
+  public DirectoryServerPlugin getRegisteredPlugin(DN pluginDN)
+  {
+    assert debugEnter(CLASS_NAME, "getRegisteredPlugin",
+                      String.valueOf(pluginDN));
+
+    return registeredPlugins.get(pluginDN);
+  }
+
+
 
   /**
    * Indicates whether the configuration entry that will result from a proposed

--
Gitblit v1.10.0