|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.logging.log4j.message.AbstractMessageFactory
org.apache.logging.log4j.message.LocalizedMessageFactory
public class LocalizedMessageFactory
Creates LocalizedMessage instances for
newMessage(String, Object...).
| Constructor Summary | |
|---|---|
LocalizedMessageFactory(ResourceBundle resourceBundle)
|
|
LocalizedMessageFactory(String baseName)
|
|
| Method Summary | |
|---|---|
String |
getBaseName()
Gets the resource bundle base name if set. |
ResourceBundle |
getResourceBundle()
Gets the resource bundle if set. |
Message |
newMessage(String key,
Object... params)
Creates StringFormattedMessage instances. |
| Methods inherited from class org.apache.logging.log4j.message.AbstractMessageFactory |
|---|
newMessage, newMessage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalizedMessageFactory(ResourceBundle resourceBundle)
public LocalizedMessageFactory(String baseName)
| Method Detail |
|---|
public String getBaseName()
public ResourceBundle getResourceBundle()
public Message newMessage(String key,
Object... params)
StringFormattedMessage instances.
newMessage in interface MessageFactorynewMessage in class AbstractMessageFactorykey - The key String, used as a message if the key is absent.params - The parameters for the message at the given key.
MessageFactory.newMessage(String, Object...)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 1999-2014 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.