FormattedMessage instances for MessageFactory2 methods (and MessageFactory by
extension.)
Note to implementors:
This class does not implement any MessageFactory2 methods and lets the superclass funnel those calls
through newMessage(String, Object..
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final transient ResourceBundle | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the resource bundle base name if set. May be null.Gets the resource bundle base name if set. |
| public ResourceBundle | Returns: the resource bundle if set. May be null.Gets the resource bundle if set. |
| public Message | newMessage(final String
a message String key)Overrides org. Implements org. Creates a new message based on a String. |
| public Message | Returns: The LocalizedMessage.The key String, used as a message if the key is absent. key, final Object... The parameters for the message at the given key. params)Implements org. Creates |
| baseName | back to summary |
|---|---|
| private final String baseName | |
| resourceBundle | back to summary |
|---|---|
| private final transient ResourceBundle resourceBundle | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. | |
| LocalizedMessageFactory | back to summary |
|---|---|
| public LocalizedMessageFactory(final ResourceBundle resourceBundle) | |
| LocalizedMessageFactory | back to summary |
|---|---|
| public LocalizedMessageFactory(final String baseName) | |
| getBaseName | back to summary |
|---|---|
| public String getBaseName() Gets the resource bundle base name if set.
| |
| getResourceBundle | back to summary |
|---|---|
| public ResourceBundle getResourceBundle() Gets the resource bundle if set.
| |
| newMessage | back to summary |
|---|---|
| public Message newMessage(final String key) Overrides org. Implements org. Doc from org. Creates a new message based on a String. | |
| newMessage | back to summary |
|---|---|
| public Message newMessage(final String key, final Object... params) Implements org. Creates
| |