From 70d3c6a9d98e5b002fda985a8ac0a60c0cb79026 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Wed, 04 Oct 2006 21:47:08 +0000
Subject: [PATCH] Add a new org.opends.server.types.DirectoryConfig class that can be used to expose a number of the methods from the DirectoryServer class as part of the public interface while reducing the need for extensions to reference code in the org.opends.server.core package.
---
opends/src/server/org/opends/server/plugins/LDAPADListPlugin.java | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/opends/src/server/org/opends/server/plugins/LDAPADListPlugin.java b/opends/src/server/org/opends/server/plugins/LDAPADListPlugin.java
index ef8ad9c..596de77 100644
--- a/opends/src/server/org/opends/server/plugins/LDAPADListPlugin.java
+++ b/opends/src/server/org/opends/server/plugins/LDAPADListPlugin.java
@@ -35,10 +35,10 @@
import org.opends.server.api.plugin.PreParsePluginResult;
import org.opends.server.config.ConfigEntry;
import org.opends.server.config.ConfigException;
-import org.opends.server.core.DirectoryServer;
import org.opends.server.types.AttributeType;
import org.opends.server.types.DebugLogCategory;
import org.opends.server.types.DebugLogSeverity;
+import org.opends.server.types.DirectoryConfig;
import org.opends.server.types.ObjectClass;
import org.opends.server.types.operation.PreParseSearchOperation;
@@ -83,13 +83,11 @@
* {@inheritDoc}
*/
@Override()
- public final void initializePlugin(DirectoryServer directoryServer,
- Set<PluginType> pluginTypes,
+ public final void initializePlugin(Set<PluginType> pluginTypes,
ConfigEntry configEntry)
throws ConfigException
{
assert debugEnter(CLASS_NAME, "initializePlugin",
- String.valueOf(directoryServer),
String.valueOf(pluginTypes), String.valueOf(configEntry));
@@ -117,7 +115,7 @@
// Register the appropriate supported feature with the Directory Server.
- DirectoryServer.registerSupportedFeature(OID_LDAP_ADLIST_FEATURE);
+ DirectoryConfig.registerSupportedFeature(OID_LDAP_ADLIST_FEATURE);
}
@@ -155,7 +153,7 @@
if (attrName.startsWith("@"))
{
String lowerName = toLowerCase(attrName.substring(1));
- ObjectClass oc = DirectoryServer.getObjectClass(lowerName);
+ ObjectClass oc = DirectoryConfig.getObjectClass(lowerName, false);
if (oc == null)
{
debugMessage(DebugLogCategory.PLUGIN, DebugLogSeverity.WARNING,
--
Gitblit v1.10.0