|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.toolforge.karma.core.bundle.BundleCache
Helper class initializing ResourceBundle and caching instances to enable localized messages.
Interface applications can extend this class to add and retrieve cached bundle.
| Field Summary | |
static java.lang.String |
ERROR_MESSAGES_KEY
|
static java.lang.String |
FRONTEND_MESSAGES_KEY
|
| Method Summary | |
void |
flush()
Flushes this cache. |
java.util.ResourceBundle |
getBundle(java.lang.String bundleKey)
Retrieves a bundle from the cache by bundleKey. |
static BundleCache |
getInstance()
Initializes the cache or returns the cache. |
void |
register(java.lang.String bundleKey,
java.util.ResourceBundle bundle)
Registers a resource bundle in the cache. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String ERROR_MESSAGES_KEY
public static final java.lang.String FRONTEND_MESSAGES_KEY
| Method Detail |
public static BundleCache getInstance()
public final void register(java.lang.String bundleKey,
java.util.ResourceBundle bundle)
bundleKey - The unique key to the bundle. All keys are transformed into uppercase.bundle - The resource bundle to register in this cache.public final java.util.ResourceBundle getBundle(java.lang.String bundleKey)
bundleKey.
bundleKey - The unique key to this bundle.
bundleKey in the cache.public final void flush()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||