From 32034d853f3a284424ccfa87b6de210f1ca814e1 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Tue, 29 Nov 2011 00:31:21 +0000
Subject: [PATCH] Fix OPENDJ-43 (Synchronous Connection decorator implementations should not use AsynchronousConnections) and OPENDJ-328 (Make it easier to implement connection decorators).

---
 opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/RootDSE.java |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/RootDSE.java b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/RootDSE.java
index c153fbe..067d9d2 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/RootDSE.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/RootDSE.java
@@ -135,7 +135,8 @@
 
 
   /**
-   * Reads the Root DSE from the Directory Server using the provided connection.
+   * Asynchronously reads the Root DSE from the Directory Server using the
+   * provided connection.
    * <p>
    * If the Root DSE is not returned by the Directory Server then the request
    * will fail with an {@link EntryNotFoundException}. More specifically, the
@@ -150,14 +151,13 @@
    * @throws UnsupportedOperationException
    *           If the connection does not support search operations.
    * @throws IllegalStateException
-   *           If the connection has already been closed, i.e. if {@code
-   *           isClosed() == true}.
+   *           If the connection has already been closed, i.e. if
+   *           {@code isClosed() == true}.
    * @throws NullPointerException
    *           If the {@code connection} was {@code null}.
    */
-  public static FutureResult<RootDSE> readRootDSE(
-      final AsynchronousConnection connection,
-      final ResultHandler<? super RootDSE> handler)
+  public static FutureResult<RootDSE> readRootDSEAsync(
+      final Connection connection, final ResultHandler<? super RootDSE> handler)
       throws UnsupportedOperationException, IllegalStateException,
       NullPointerException
   {
@@ -175,7 +175,7 @@
     };
 
     final FutureResult<SearchResultEntry> innerFuture = connection
-        .searchSingleEntry(SEARCH_REQUEST, future);
+        .searchSingleEntryAsync(SEARCH_REQUEST, future);
     future.setFutureResult(innerFuture);
     return future;
   }

--
Gitblit v1.10.0