From 2a9a447352de6e72a308fd814f40137252daf74e Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Fri, 12 Aug 2011 19:18:51 +0000
Subject: [PATCH] Minor code cleanups: move SynchronousConnection and AbstractConnectionFactory out of public API.

---
 opendj3/opendj-ldap-sdk/src/main/java/com/forgerock/opendj/util/AbstractConnectionFactory.java |   21 ++++++++++-----------
 1 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AbstractConnectionFactory.java b/opendj3/opendj-ldap-sdk/src/main/java/com/forgerock/opendj/util/AbstractConnectionFactory.java
similarity index 81%
rename from opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AbstractConnectionFactory.java
rename to opendj3/opendj-ldap-sdk/src/main/java/com/forgerock/opendj/util/AbstractConnectionFactory.java
index c54d4b9..032021f 100644
--- a/opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/AbstractConnectionFactory.java
+++ b/opendj3/opendj-ldap-sdk/src/main/java/com/forgerock/opendj/util/AbstractConnectionFactory.java
@@ -23,16 +23,19 @@
  *
  *
  *      Copyright 2009-2010 Sun Microsystems, Inc.
+ *      Portions copyright 2011 ForgeRock AS
  */
 
-package org.forgerock.opendj.ldap;
+package com.forgerock.opendj.util;
+
+import org.forgerock.opendj.ldap.*;
 
 
 
 /**
- * This class provides a skeletal implementation of the {@code
- * ConnectionFactory} interface, to minimize the effort required to implement
- * this interface.
+ * This class provides a skeletal implementation of the
+ * {@code ConnectionFactory} interface, to minimize the effort required to
+ * implement this interface.
  */
 public abstract class AbstractConnectionFactory implements ConnectionFactory
 {
@@ -58,13 +61,9 @@
    * {@inheritDoc}
    * <p>
    * The default implementation is to convert the asynchronous connection
-   * returned from {@code blockingGetAsynchronousConnection()} to a synchronous
-   * connection using a {@link SynchronousConnection} as per the following code:
-   *
-   * <pre>
-   * return new SynchronousConnection(blockingGetAsynchronousConnection());
-   * </pre>
-   *
+   * returned from {@code getAsynchronousConnection()} to a synchronous
+   * connection using {@link AsynchronousConnection#getSynchronousConnection()}.
+   * <p>
    * Implementations should override this method if they wish to return a
    * different type of synchronous connection.
    *

--
Gitblit v1.10.0