public class LocalizedMessageFactory extends AbstractMessageFactory
LocalizedMessage
instances for
newMessage(String, Object...)
.Constructor and Description |
---|
LocalizedMessageFactory(ResourceBundle resourceBundle) |
LocalizedMessageFactory(String baseName) |
Modifier and Type | Method and Description |
---|---|
String |
getBaseName()
Gets the resource bundle base name if set.
|
ResourceBundle |
getResourceBundle()
Gets the resource bundle if set.
|
Message |
newMessage(String message,
Object... params)
Creates
StringFormattedMessage instances. |
newMessage, newMessage
public LocalizedMessageFactory(ResourceBundle resourceBundle)
public LocalizedMessageFactory(String baseName)
public String getBaseName()
public ResourceBundle getResourceBundle()
public Message newMessage(String message, Object... params)
StringFormattedMessage
instances.newMessage
in interface MessageFactory
newMessage
in class AbstractMessageFactory
message
- The message format String.params
- The parameters for the message.MessageFactory.newMessage(String, Object...)
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.