From 5d6e9428fedead57a9c9438cebe58b485ff476d2 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Fri, 14 Sep 2007 10:22:17 +0000
Subject: [PATCH] Avoid managed object definition initialization dependency problems. Using features like inherited default values and aggregation properties it is quite straightforward to encounter initialization dependency problems. For example: the global configuration will contain an aggregation property which references the default password policy. This aggregation definition is defined using a managed object path which, when decoded, contains a reference to the root configuration and its "password-policy" relation. This is what happens during initialization of the root configuration:
---
opends/src/server/org/opends/server/admin/RelativeInheritedDefaultBehaviorProvider.java | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/opends/src/server/org/opends/server/admin/RelativeInheritedDefaultBehaviorProvider.java b/opends/src/server/org/opends/server/admin/RelativeInheritedDefaultBehaviorProvider.java
index 0749254..0f9ca55 100644
--- a/opends/src/server/org/opends/server/admin/RelativeInheritedDefaultBehaviorProvider.java
+++ b/opends/src/server/org/opends/server/admin/RelativeInheritedDefaultBehaviorProvider.java
@@ -37,7 +37,7 @@
* @param <T>
* The type of values represented by this provider.
*/
-public final class RelativeInheritedDefaultBehaviorProvider<T> implements
+public final class RelativeInheritedDefaultBehaviorProvider<T> extends
DefaultBehaviorProvider<T> {
// The type of managed object expected at the relative offset.
@@ -69,7 +69,6 @@
* @throws IllegalArgumentException
* If the offset is less than 0.
*/
- @SuppressWarnings("unchecked")
public RelativeInheritedDefaultBehaviorProvider(
AbstractManagedObjectDefinition<?, ?> d, String propertyName, int offset)
throws IllegalArgumentException {
@@ -126,7 +125,7 @@
/**
- * Get the name of the property containing the inherited default
+ * Gets the name of the property containing the inherited default
* values.
*
* @return Returns the name of the property containing the inherited
@@ -148,5 +147,4 @@
public int getRelativeOffset() {
return offset;
}
-
}
--
Gitblit v1.10.0