From 887d477fa8daf523b8411461451968d2c58274f4 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Mon, 14 Jan 2008 10:43:58 +0000
Subject: [PATCH] Partial fix for issue 2661 - public APIs must not reference private classes.

---
 opends/src/server/org/opends/server/core/LogRotationPolicyConfigManager.java |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/opends/src/server/org/opends/server/core/LogRotationPolicyConfigManager.java b/opends/src/server/org/opends/server/core/LogRotationPolicyConfigManager.java
index cb3b131..96f4778 100644
--- a/opends/src/server/org/opends/server/core/LogRotationPolicyConfigManager.java
+++ b/opends/src/server/org/opends/server/core/LogRotationPolicyConfigManager.java
@@ -22,7 +22,7 @@
  * CDDL HEADER END
  *
  *
- *      Portions Copyright 2006-2007 Sun Microsystems, Inc.
+ *      Portions Copyright 2006-2008 Sun Microsystems, Inc.
  */
 package org.opends.server.core;
 import org.opends.messages.Message;
@@ -240,8 +240,8 @@
       // Determine the initialization method to use: it must take a
       // single parameter which is the exact type of the configuration
       // object.
-      theClass.getMethod("initializeLogRotationPolicy", config.definition()
-          .getServerConfigurationClass());
+      theClass.getMethod("initializeLogRotationPolicy", config
+          .configurationClass());
     } catch (Exception e) {
       Message message = ERR_CONFIG_ROTATION_POLICY_INVALID_CLASS.get(className,
                                   config.dn().toString(),
@@ -269,8 +269,8 @@
       // Determine the initialization method to use: it must take a
       // single parameter which is the exact type of the configuration
       // object.
-      Method method = theClass.getMethod("initializeLogRotationPolicy",
-                             config.definition().getServerConfigurationClass());
+      Method method = theClass.getMethod("initializeLogRotationPolicy", config
+          .configurationClass());
       method.invoke(rotationPolicy, config);
     }
     catch (InvocationTargetException ite)

--
Gitblit v1.10.0