From cd3a41a0bd6762b1f63e58c6a65743f9800f5300 Mon Sep 17 00:00:00 2001
From: Nicolas Capponi <nicolas.capponi@forgerock.com>
Date: Wed, 21 Sep 2016 15:15:44 +0000
Subject: [PATCH] OPENDJ-2413 Remove uses of EmbeddedUtils class and deprecate it
---
opendj-server-legacy/src/main/java/org/opends/server/util/EmbeddedUtils.java | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/util/EmbeddedUtils.java b/opendj-server-legacy/src/main/java/org/opends/server/util/EmbeddedUtils.java
index 0b642a4..7244732 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/util/EmbeddedUtils.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/util/EmbeddedUtils.java
@@ -33,7 +33,10 @@
* This class provides a number of utility methods for using OpenDS in an
* embedded manner (i.e., running within the same JVM as another application and
* controlled by that application).
+ *
+ * @deprecated Use {@code EmbeddedDirectoryServer} class instead
*/
+@Deprecated
@org.opends.server.types.PublicAPI(
stability=org.opends.server.types.StabilityLevel.UNCOMMITTED,
mayInstantiate=false,
@@ -46,7 +49,9 @@
*
* @return {@code true} if the server is currently running, or {@code false}
* if not.
+ * @deprecated Use {@code EmbeddedDirectoryServer} class instead
*/
+ @Deprecated
public static boolean isRunning()
{
return DirectoryServer.isRunning();
@@ -62,7 +67,9 @@
* @throws InitializationException If the Directory Server is already
* running, or if an error occurs during
* server initialization or startup.
+ * @deprecated Use {@code EmbeddedDirectoryServer} class instead
*/
+ @Deprecated
public static void startServer(DirectoryEnvironmentConfig config)
throws InitializationException
{
@@ -90,7 +97,9 @@
*
* @param className The name of the class that initiated the shutdown.
* @param reason A message explaining the reason for the shutdown.
+ * @deprecated Use {@code EmbeddedDirectoryServer} class instead
*/
+ @Deprecated
public static void stopServer(String className, LocalizableMessage reason)
{
DirectoryServer.shutDown(className, reason);
@@ -107,7 +116,9 @@
* @param reason A message explaining the reason for the retart.
* @param config The environment configuration to use for the new server
* instance.
+ * @deprecated Use {@code EmbeddedDirectoryServer} class instead
*/
+ @Deprecated
public static void restartServer(String className, LocalizableMessage reason,
DirectoryEnvironmentConfig config)
{
@@ -122,7 +133,9 @@
* going to be used without the server running (e.g., to facilitate use in an
* LDAP client API, for DN processing, etc.). This will have no effect if the
* server has already been initialized for client use.
+ * @deprecated Use {@code EmbeddedDirectoryServer} class instead
*/
+ @Deprecated
public static void initializeForClientUse()
{
DirectoryServer.getInstance();
--
Gitblit v1.10.0