From 5ab6bc9651264d936b94e321c4903ef5b104b4f7 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Wed, 19 Dec 2007 09:55:26 +0000
Subject: [PATCH] Fix for issue 2446 part #1.

---
 opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/SubCommandHandlerFactory.java |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/SubCommandHandlerFactory.java b/opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/SubCommandHandlerFactory.java
index d9b00e1..82b1f12 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/SubCommandHandlerFactory.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/SubCommandHandlerFactory.java
@@ -62,8 +62,9 @@
     /**
      * {@inheritDoc}
      */
-    public Void visitInstantiable(InstantiableRelationDefinition<?, ?> rd,
-        ManagedObjectPath<?, ?> p) {
+    public <C extends ConfigurationClient, S extends Configuration>
+        Void visitInstantiable(
+        InstantiableRelationDefinition<C, S> rd, ManagedObjectPath<?, ?> p) {
       try {
         // Create the sub-commands.
         createHandlers.add(CreateSubCommandHandler.create(parser, p, rd));
@@ -87,8 +88,9 @@
     /**
      * {@inheritDoc}
      */
-    public Void visitOptional(OptionalRelationDefinition<?, ?> rd,
-        ManagedObjectPath<?, ?> p) {
+    public <C extends ConfigurationClient, S extends Configuration>
+        Void visitOptional(
+        OptionalRelationDefinition<C, S> rd, ManagedObjectPath<?, ?> p) {
       try {
         // Create the sub-commands.
         createHandlers.add(CreateSubCommandHandler.create(parser, p, rd));
@@ -112,8 +114,9 @@
     /**
      * {@inheritDoc}
      */
-    public Void visitSingleton(SingletonRelationDefinition<?, ?> rd,
-        ManagedObjectPath<?, ?> p) {
+    public <C extends ConfigurationClient, S extends Configuration>
+        Void visitSingleton(
+        SingletonRelationDefinition<C, S> rd, ManagedObjectPath<?, ?> p) {
       try {
         // Create the sub-commands.
         getPropHandlers.add(GetPropSubCommandHandler.create(parser, p, rd));

--
Gitblit v1.10.0