logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1563188 - /logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/LocalizedMessageFactory.java
Date Fri, 31 Jan 2014 17:35:39 GMT
Author: ggregory
Date: Fri Jan 31 17:35:39 2014
New Revision: 1563188

URL: http://svn.apache.org/r1563188
Log:
Add accessors to help port from v1's missing Logger.getResourceBundle().

Modified:
    logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/LocalizedMessageFactory.java

Modified: logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/LocalizedMessageFactory.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/LocalizedMessageFactory.java?rev=1563188&r1=1563187&r2=1563188&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/LocalizedMessageFactory.java
(original)
+++ logging/log4j/log4j2/trunk/log4j-api/src/main/java/org/apache/logging/log4j/message/LocalizedMessageFactory.java
Fri Jan 31 17:35:39 2014
@@ -44,6 +44,26 @@ public class LocalizedMessageFactory ext
 
 
     /**
+     * Gets the resource bundle base name if set.
+     * 
+     * @return the resource bundle base name if set. May be null.
+     */
+    public String getBaseName() {
+        return this.baseName;
+    }
+
+
+    /**
+     * Gets the resource bundle if set.
+     * 
+     * @return the resource bundle if set. May be null.
+     */
+    public ResourceBundle getResourceBundle() {
+        return this.resourceBundle;
+    }
+
+
+    /**
      * Creates {@link org.apache.logging.log4j.message.StringFormattedMessage} instances.
      *
      * @param message The message format String.



Mime
View raw message