From 747224b472c37b0f1325344918fcc08265bb1b09 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Thu, 03 May 2007 09:37:28 +0000
Subject: [PATCH] Three introspection related changes required in order to support the CLI:

---
 opendj-sdk/opends/src/server/org/opends/server/admin/server/DNBuilder.java |   21 +++++++++++++++------
 1 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/admin/server/DNBuilder.java b/opendj-sdk/opends/src/server/org/opends/server/admin/server/DNBuilder.java
index 4219b2e..3d89202 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/admin/server/DNBuilder.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/admin/server/DNBuilder.java
@@ -29,6 +29,9 @@
 
 
 
+import org.opends.server.admin.AbstractManagedObjectDefinition;
+import org.opends.server.admin.Configuration;
+import org.opends.server.admin.ConfigurationClient;
 import org.opends.server.admin.InstantiableRelationDefinition;
 import org.opends.server.admin.LDAPProfile;
 import org.opends.server.admin.ManagedObjectPath;
@@ -120,8 +123,10 @@
   /**
    * {@inheritDoc}
    */
-  public void appendManagedObjectPathElement(
-      InstantiableRelationDefinition<?, ?> r, String name) {
+  public <C extends ConfigurationClient, S extends Configuration>
+      void appendManagedObjectPathElement(
+          InstantiableRelationDefinition<? super C, ? super S> r,
+          AbstractManagedObjectDefinition<C, S> d, String name) {
     // Add the RDN sequence representing the relation.
     appendManagedObjectPathElement((RelationDefinition) r);
 
@@ -155,8 +160,10 @@
   /**
    * {@inheritDoc}
    */
-  public void appendManagedObjectPathElement(
-      OptionalRelationDefinition<?, ?> r) {
+  public <C extends ConfigurationClient, S extends Configuration>
+      void appendManagedObjectPathElement(
+          OptionalRelationDefinition<? super C, ? super S> r,
+          AbstractManagedObjectDefinition<C, S> d) {
     // Add the RDN sequence representing the relation.
     appendManagedObjectPathElement((RelationDefinition) r);
   }
@@ -166,8 +173,10 @@
   /**
    * {@inheritDoc}
    */
-  public void appendManagedObjectPathElement(
-      SingletonRelationDefinition<?, ?> r) {
+  public <C extends ConfigurationClient, S extends Configuration>
+      void appendManagedObjectPathElement(
+          SingletonRelationDefinition<? super C, ? super S> r,
+          AbstractManagedObjectDefinition<C, S> d) {
     // Add the RDN sequence representing the relation.
     appendManagedObjectPathElement((RelationDefinition) r);
   }

--
Gitblit v1.10.0