From 35af51f9683f5ef8cec66baca7b89aa1e1cbc44e Mon Sep 17 00:00:00 2001
From: coulbeck <coulbeck@localhost>
Date: Fri, 11 May 2007 23:27:30 +0000
Subject: [PATCH] Issue 1532: Remove ConfigEntry from Backend API. (DS-1532)
---
opends/src/server/org/opends/server/core/DirectoryServer.java | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/DirectoryServer.java b/opends/src/server/org/opends/server/core/DirectoryServer.java
index 296bc41..eb2986c 100644
--- a/opends/src/server/org/opends/server/core/DirectoryServer.java
+++ b/opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -48,8 +48,11 @@
import javax.management.MBeanServerFactory;
import org.opends.server.admin.ClassLoaderProvider;
+import org.opends.server.admin.server.ServerManagementContext;
import org.opends.server.admin.std.server.PasswordValidatorCfg;
import org.opends.server.admin.std.server.SynchronizationProviderCfg;
+import org.opends.server.admin.std.server.RootDSEBackendCfg;
+import org.opends.server.admin.std.server.RootCfg;
import org.opends.server.api.*;
import org.opends.server.api.plugin.PluginType;
import org.opends.server.api.plugin.StartupPluginResult;
@@ -2190,11 +2193,12 @@
// Make sure to initialize the root DSE backend separately after all other
// backends.
- ConfigEntry rootDSEConfigEntry;
+ RootDSEBackendCfg rootDSECfg;
try
{
- DN rootDSEConfigDN = DN.decode(DN_ROOT_DSE_CONFIG);
- rootDSEConfigEntry = configHandler.getConfigEntry(rootDSEConfigDN);
+ RootCfg root =
+ ServerManagementContext.getInstance().getRootConfiguration();
+ rootDSECfg = root.getRootDSEBackend();
}
catch (Exception e)
{
@@ -2208,9 +2212,9 @@
throw new InitializationException(msgID, message, e);
}
- DN[] baseDNs = { DN.nullDN() };
rootDSEBackend = new RootDSEBackend();
- rootDSEBackend.initializeBackend(rootDSEConfigEntry, baseDNs);
+ rootDSEBackend.configureBackend(rootDSECfg);
+ rootDSEBackend.initializeBackend();
}
--
Gitblit v1.10.0