From a3fec1e316d6942be1dc1fd8fde1464f18ba12b6 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Sun, 24 Jun 2007 22:19:02 +0000
Subject: [PATCH] Migrate the attribute syntax configuration to the admin framework.

---
 opendj-sdk/opends/src/server/org/opends/server/api/AttributeSyntax.java |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/api/AttributeSyntax.java b/opendj-sdk/opends/src/server/org/opends/server/api/AttributeSyntax.java
index d931794..02caf9c 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/api/AttributeSyntax.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/api/AttributeSyntax.java
@@ -28,7 +28,7 @@
 
 
 
-import org.opends.server.config.ConfigEntry;
+import org.opends.server.admin.std.server.AttributeSyntaxCfg;
 import org.opends.server.config.ConfigException;
 import org.opends.server.types.ByteString;
 import org.opends.server.types.InitializationException;
@@ -39,16 +39,18 @@
  * This class defines the set of methods and structures that must be
  * implemented by a Directory Server module that implements an
  * attribute syntax.
+ *
+ * @param  <T>  The type of configuration handled by this attribute
+ *              syntax.
  */
-public abstract class AttributeSyntax
+public abstract class AttributeSyntax<T extends AttributeSyntaxCfg>
 {
   /**
    * Initializes this attribute syntax based on the information in the
    * provided configuration entry.
    *
-   * @param  configEntry  The configuration entry that contains the
-   *                      information to use to initialize this
-   *                      attribute syntax.
+   * @param  configuration  The configuration to use to initialize
+   *                        this attribute syntax.
    *
    * @throws  ConfigException  If an unrecoverable problem arises in
    *                           the process of performing the
@@ -59,7 +61,7 @@
    *                                   related to the server
    *                                   configuration.
    */
-  public abstract void initializeSyntax(ConfigEntry configEntry)
+  public abstract void initializeSyntax(T configuration)
          throws ConfigException, InitializationException;
 
 

--
Gitblit v1.10.0