From cfc513043c5830b5a967733066068c7097b42e3c Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Wed, 15 Aug 2007 21:34:53 +0000
Subject: [PATCH] This commit is a step toward getting OpenDS internationalized. There are still issues to be resolved before we can declare that we are internationalized but this commit covers the bulk of changes needed at this time.
---
opendj-sdk/opends/src/server/org/opends/server/util/EmbeddedUtils.java | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/util/EmbeddedUtils.java b/opendj-sdk/opends/src/server/org/opends/server/util/EmbeddedUtils.java
index d2e9119..bf5c1dc 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/util/EmbeddedUtils.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/util/EmbeddedUtils.java
@@ -33,8 +33,8 @@
import org.opends.server.types.DirectoryEnvironmentConfig;
import org.opends.server.types.InitializationException;
-import static org.opends.server.messages.MessageHandler.*;
-import static org.opends.server.messages.UtilityMessages.*;
+import static org.opends.messages.UtilityMessages.*;
+import org.opends.messages.Message;
import static org.opends.server.util.ServerConstants.*;
@@ -76,9 +76,8 @@
{
if (DirectoryServer.isRunning())
{
- int msgID = MSGID_EMBEDUTILS_SERVER_ALREADY_RUNNING;
- String message = getMessage(msgID);
- throw new InitializationException(msgID, message);
+ throw new InitializationException(
+ ERR_EMBEDUTILS_SERVER_ALREADY_RUNNING.get());
}
DirectoryServer directoryServer = DirectoryServer.reinitialize(config);
@@ -93,7 +92,7 @@
* @param className The name of the class that initiated the shutdown.
* @param reason A message explaining the reason for the shutdown.
*/
- public static void stopServer(String className, String reason)
+ public static void stopServer(String className, Message reason)
{
DirectoryServer.shutDown(className, reason);
}
@@ -110,7 +109,7 @@
* @param config The environment configuration to use for the new server
* instance.
*/
- public static void restartServer(String className, String reason,
+ public static void restartServer(String className, Message reason,
DirectoryEnvironmentConfig config)
{
DirectoryServer.restart(className, reason, config);
--
Gitblit v1.10.0