From feb5d90ec016c99712f19c5485cf7633cd38f111 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 23 Mar 2007 14:26:04 +0000
Subject: [PATCH] Merge admin framework from config-prototype-branch onto trunk.

---
 opends/src/server/org/opends/server/api/PasswordValidator.java |   19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/opends/src/server/org/opends/server/api/PasswordValidator.java b/opends/src/server/org/opends/server/api/PasswordValidator.java
index 85d32a9..9e0b255 100644
--- a/opends/src/server/org/opends/server/api/PasswordValidator.java
+++ b/opends/src/server/org/opends/server/api/PasswordValidator.java
@@ -30,7 +30,8 @@
 
 import java.util.Set;
 
-import org.opends.server.config.ConfigEntry;
+import org.opends.server.admin.std.server.
+            PasswordValidatorCfg;
 import org.opends.server.config.ConfigException;
 import org.opends.server.core.Operation;
 import org.opends.server.types.ByteString;
@@ -39,24 +40,23 @@
 
 
 
-
 /**
  * This class defines the set of methods and structures that must be
  * implemented by a Directory Server module that may be used to
  * determine whether a proposed password is acceptable for a user.
+ *
+ * @param  <T>  The type of configuration handled by this password
+ *              validator.
  */
 public abstract class PasswordValidator
+       <T extends PasswordValidatorCfg>
 {
-
-
-
   /**
    * Initializes this password validator based on the information in
    * the provided configuration entry.
    *
-   * @param  configEntry  The configuration entry that contains the
-   *                      information to use to initialize this
-   *                      password validator.
+   * @param  configuration  The configuration to use to initialize
+   *                        this password validator.
    *
    * @throws  ConfigException  If an unrecoverable problem arises in
    *                           the process of performing the
@@ -67,8 +67,7 @@
    *                                   related to the server
    *                                   configuration.
    */
-  public abstract void initializePasswordValidator(
-                            ConfigEntry configEntry)
+  public abstract void initializePasswordValidator(T configuration)
          throws ConfigException, InitializationException;
 
 

--
Gitblit v1.10.0