From 0958fc1f4901bae7b2e33fcdbb8c2b2177989811 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 03 May 2007 23:27:46 +0000
Subject: [PATCH] Perform some minor reformatting in the new log publisher classes in the org.opends.server.api package to make them more consistent with the formatting used by other classes in that package and to fix some javadoc typos.

---
 opends/src/server/org/opends/server/api/ErrorLogPublisher.java |   63 ++++++++++++++++++++-----------
 1 files changed, 40 insertions(+), 23 deletions(-)

diff --git a/opends/src/server/org/opends/server/api/ErrorLogPublisher.java b/opends/src/server/org/opends/server/api/ErrorLogPublisher.java
index beacc1f..0199a1f 100644
--- a/opends/src/server/org/opends/server/api/ErrorLogPublisher.java
+++ b/opends/src/server/org/opends/server/api/ErrorLogPublisher.java
@@ -22,28 +22,32 @@
  * CDDL HEADER END
  *
  *
- *      Portions Copyright 2006-2007 Sun Microsystems, Inc.
+ *      Portions Copyright 2007 Sun Microsystems, Inc.
  */
 package org.opends.server.api;
 
-import org.opends.server.admin.std.server.ErrorLogPublisherCfg;
-import org.opends.server.config.ConfigException;
-import org.opends.server.types.InitializationException;
-import org.opends.server.types.ErrorLogCategory;
-import org.opends.server.types.ErrorLogSeverity;
+
 
 import java.util.HashSet;
 import java.util.HashMap;
 
+import org.opends.server.admin.std.server.ErrorLogPublisherCfg;
+import org.opends.server.config.ConfigException;
+import org.opends.server.types.ErrorLogCategory;
+import org.opends.server.types.ErrorLogSeverity;
+import org.opends.server.types.InitializationException;
+
+
+
 /**
  * This class defines the set of methods and structures that must be
  * implemented for a Directory Server error log publisher.
  *
- * @param <T> The type of error log publisher configuration handled
- *            by this log publisher implementation.
+ * @param  <T>  The type of error log publisher configuration handled
+ *              by this log publisher implementation.
  */
 public abstract class ErrorLogPublisher
-    <T extends ErrorLogPublisherCfg>
+       <T extends ErrorLogPublisherCfg>
 {
   /**
    * The hash map that will be used to define specific log severities
@@ -51,37 +55,49 @@
    */
   protected HashMap<ErrorLogCategory,HashSet<ErrorLogSeverity>>
       definedSeverities =
-      new HashMap<ErrorLogCategory, HashSet<ErrorLogSeverity>>();
+           new HashMap<ErrorLogCategory, HashSet<ErrorLogSeverity>>();
+
+
 
   /**
    * The set of default log severities that will be used if no custom
    * severities have been defined for the associated category.
    */
-  protected HashSet<ErrorLogSeverity> defaultSeverities =
-      new HashSet<ErrorLogSeverity>();
+  protected HashSet<ErrorLogSeverity>
+       defaultSeverities = new HashSet<ErrorLogSeverity>();
+
+
+
   /**
    * Initializes this access publisher provider based on the
    * information in the provided debug publisher configuration.
    *
-   * @param config
-   *          The error publisher configuration that contains the
-   *          information to use to initialize this error publisher.
-   * @throws org.opends.server.config.ConfigException
-   *           If an unrecoverable problem arises in the process of
-   *           performing the initialization as a result of the server
-   *           configuration.
-   * @throws org.opends.server.types.InitializationException
-   *           If a problem occurs during initialization that is not
-   *           related to the server configuration.
+   * @param  config  The error publisher configuration that contains
+   *                 the information to use to initialize this error
+   *                 publisher.
+   *
+   * @throws  ConfigException  If an unrecoverable problem arises in
+   *                           the process of performing the
+   *                           initialization as a result of the
+   *                           server configuration.
+   *
+   * @throws  InitializationException  If a problem occurs during
+   *                                   initialization that is not
+   *                                   related to the server
+   *                                   configuration.
    */
   public abstract void initializeErrorLogPublisher(T config)
-      throws ConfigException, InitializationException;
+         throws ConfigException, InitializationException;
+
+
 
   /**
    * Close this publisher.
    */
   public abstract void close();
 
+
+
   /**
    * Writes a message to the error log using the provided information.
    *
@@ -99,3 +115,4 @@
                                 String message, int errorID);
 
 }
+

--
Gitblit v1.10.0