Author: bago
Date: Fri Jan 21 10:56:18 2011
New Revision: 1061733

URL: http://svn.apache.org/viewvc?rev=1061733&view=rev
Log:
Switch log method parameters and add @since tags (MAILET-33)

Modified:
    james/mailet/api/trunk/src/main/java/org/apache/mailet/MailetContext.java

Modified: 
james/mailet/api/trunk/src/main/java/org/apache/mailet/MailetContext.java
URL: 
http://svn.apache.org/viewvc/james/mailet/api/trunk/src/main/java/org/apache/mailet/MailetContext.java?rev=1061733&r1=1061732&r2=1061733&view=diff
==============================================================================
--- james/mailet/api/trunk/src/main/java/org/apache/mailet/MailetContext.java 
(original)
+++ james/mailet/api/trunk/src/main/java/org/apache/mailet/MailetContext.java 
Fri Jan 21 10:56:18 2011
@@ -181,10 +181,12 @@ public interface MailetContext {
      * Writes the specified message to a mailet log. The name and type of
      * the mailet log is specific to the mailet container.
      *
-     * @param message the message to be written to the log
      * @param level {@link LogLevel} to use
+     * @param message the message to be written to the log
+     * 
+     * @since 2.5
      */
-    void log(String message, LogLevel level);
+    void log(LogLevel level, String message);
 
     /**
      * Writes the specified message to a mailet log, along with the stack
@@ -194,8 +196,10 @@ public interface MailetContext {
      * @param message the message to be written to the log
      * @param t the Throwable whose stack trace is to be written to the log
      * @param level {@link LogLevel} to use
+     * 
+     * @since 2.5
      */
-    void log(String message, Throwable t, LogLevel level);
+    void log(LogLevel level, String message, Throwable t);
     
     /**
      * Returns the Postmaster address for this mailet context.
@@ -236,6 +240,7 @@ public interface MailetContext {
      *
      * @param mailAddress the full address of the account to be checked
      * @return true if the account is a local account, false otherwise
+     * 
      * @since Mailet API 2.4
      */
     boolean isLocalEmail(MailAddress mailAddress);


Reply via email to