public class EternalLocalizedTextSetCache extends Object implements LocalizedTextSetCache
LocalizedTextSetCache that stores an infinite number of LocalizedTextSet
instances in a simple internal map structure, forever or until cleared.| Constructor and Description |
|---|
EternalLocalizedTextSetCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the cache.
|
Set<LocalizedTextSet> |
getCachedTextSets() |
LocalizedTextSet |
getLocalizedTextSet(String application,
String group)
Gets a
LocalizedTextSet for a group of items from the cache. |
void |
reload()
Reloads all LocalizedTextSet instances kept in the cache.
|
void |
reload(String application,
String group)
Reloads the specific LocalizedTextSet instance if kept in the cache.
|
int |
size() |
void |
storeLocalizedTextSet(LocalizedTextSet textSet)
Stores a LocalizedTextSet in the cache.
|
public final LocalizedTextSet getLocalizedTextSet(String application, String group)
LocalizedTextSet for a group of items from the cache.getLocalizedTextSet in interface LocalizedTextSetCacheapplication - Application to get the group of items from.group - Name of the group.public final void storeLocalizedTextSet(LocalizedTextSet textSet)
storeLocalizedTextSet in interface LocalizedTextSetCachetextSet - LocalizedTextSet to save.public final int size()
size in interface LocalizedTextSetCachepublic final void clear()
clear in interface LocalizedTextSetCachepublic final void reload()
reload in interface LocalizedTextSetCachepublic final void reload(String application, String group)
reload in interface LocalizedTextSetCacheapplication - Application of the set of items.group - Group of the set of items.public final Set<LocalizedTextSet> getCachedTextSets()
getCachedTextSets in interface LocalizedTextSetCacheCopyright © 2017. All rights reserved.