From e0e6d30a905e47931a89b7e9063d752a6f28106d Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Wed, 05 Feb 2014 22:45:49 +0000
Subject: [PATCH] OPENDJ-1235: Migrate configuration framework

---
 opendj-config/src/main/java/org/forgerock/opendj/config/client/ldap/LDAPManagementContext.java |   28 +++++-----------------------
 1 files changed, 5 insertions(+), 23 deletions(-)

diff --git a/opendj-config/src/main/java/org/forgerock/opendj/config/client/ldap/LDAPManagementContext.java b/opendj-config/src/main/java/org/forgerock/opendj/config/client/ldap/LDAPManagementContext.java
index 76ca873..784be53 100644
--- a/opendj-config/src/main/java/org/forgerock/opendj/config/client/ldap/LDAPManagementContext.java
+++ b/opendj-config/src/main/java/org/forgerock/opendj/config/client/ldap/LDAPManagementContext.java
@@ -27,7 +27,6 @@
 package org.forgerock.opendj.config.client.ldap;
 
 import org.forgerock.opendj.config.LDAPProfile;
-import org.forgerock.opendj.config.PropertyDefinitionsOptions;
 import org.forgerock.opendj.config.client.ManagementContext;
 import org.forgerock.opendj.config.client.spi.Driver;
 import org.forgerock.util.Reject;
@@ -44,15 +43,12 @@
      *            The LDAP connection.
      * @param profile
      *            The LDAP profile.
-     * @param options
-     *            Options to decode values of property definitions.
      * @return Returns the new management context.
      */
-    public static ManagementContext createFromContext(LDAPConnection connection, LDAPProfile profile,
-        PropertyDefinitionsOptions options) {
-        Reject.ifNull(connection, profile, options);
-        LDAPDriver driver = new LDAPDriver(connection, profile, options);
-        LDAPManagementContext context = new LDAPManagementContext(driver, options);
+    public static ManagementContext createFromContext(LDAPConnection connection, LDAPProfile profile) {
+        Reject.ifNull(connection, profile);
+        LDAPDriver driver = new LDAPDriver(connection, profile);
+        LDAPManagementContext context = new LDAPManagementContext(driver);
         driver.setManagementContext(context);
         return context;
     }
@@ -60,13 +56,9 @@
     /** The LDAP management context driver. */
     private final LDAPDriver driver;
 
-    /** Options to validate and decode values of property definitions. */
-    private final PropertyDefinitionsOptions options;
-
     /** Private constructor. */
-    private LDAPManagementContext(LDAPDriver driver, PropertyDefinitionsOptions options) {
+    private LDAPManagementContext(LDAPDriver driver) {
         this.driver = driver;
-        this.options = options;
     }
 
     /** {@inheritDoc} */
@@ -74,14 +66,4 @@
     protected Driver getDriver() {
         return driver;
     }
-
-    /**
-     * Returns the property definitions options.
-     *
-     * @return the options to validate and decode values of property
-     *         definitions.
-     */
-    protected PropertyDefinitionsOptions getPropertyDefOptions() {
-        return options;
-    }
 }

--
Gitblit v1.10.0