|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.acsinet_solutions.util.text.PropertyMessageFactory
public class PropertyMessageFactory
A ResourceBundle-based message factory implementation. Multiple ResourceBundles may be combined into a single map to provide combination of keys from different sources. That means that key naming is important to avoid collitions.
| Constructor Summary | |
|---|---|
PropertyMessageFactory(java.lang.String path)
Public constructor |
|
| Method Summary | |
|---|---|
java.lang.String |
getMessage(java.lang.String key,
java.lang.Object... args)
Get a message associated with the given key and optional arguments. |
void |
loadMessages(java.util.ResourceBundle bundle)
Load the messages from the given bundle name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertyMessageFactory(java.lang.String path)
path - A not-null valid path to the resource bundle| Method Detail |
|---|
public final void loadMessages(java.util.ResourceBundle bundle)
public final java.lang.String getMessage(java.lang.String key,
java.lang.Object... args)
MessageFactory
getMessage in interface MessageFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||