From 48e73e27e5a6b254471fabeefa3a197dd071c1b8 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 02 Oct 2006 16:32:07 +0000
Subject: [PATCH] Perform significant refactoring in the core and plugin code in order to help make it easier for external developers to extend OpenDS.  In particular, this is a big step towards eliminating the need for developers to reference anything in the core package, and it's also a signficant simplification to the plugin API because it helps expose which operation methods are safe to call at various points in the plugin processing.

---
 opends/src/server/org/opends/server/messages/PluginMessages.java |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/messages/PluginMessages.java b/opends/src/server/org/opends/server/messages/PluginMessages.java
index 50773a6..07f38b6 100644
--- a/opends/src/server/org/opends/server/messages/PluginMessages.java
+++ b/opends/src/server/org/opends/server/messages/PluginMessages.java
@@ -769,6 +769,17 @@
 
 
   /**
+   * The message ID for the message that will be used if an attempt is made to
+   * invoke a plugin for a plugin type that it does not support.  This takes
+   * two arguments, which are the DN of the plugin configuration entry and the
+   * name of the unsupported plugin type.
+   */
+  public static final int MSGID_PLUGIN_TYPE_NOT_SUPPORTED =
+       CATEGORY_MASK_PLUGIN | SEVERITY_MASK_SEVERE_ERROR | 67;
+
+
+
+  /**
    * Associates a set of generic messages with the message IDs defined in this
    * class.
    */
@@ -1120,6 +1131,11 @@
                     "An error occurred while attempting to encode a password " +
                     "value stored in attribute %s of user entry %s:  %s.  " +
                     "Password values for this user will not be encoded.");
+
+
+    registerMessage(MSGID_PLUGIN_TYPE_NOT_SUPPORTED,
+                    "The plugin defined in configuration entry %s does not " +
+                    "support the %s plugin type.");
   }
 }
 

--
Gitblit v1.10.0