|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.tools.resource.ResourceInfoRepository
Repository of localizable and customizable resources.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
static String |
ENUM
Supported API: false |
private static Hashtable |
infoCache
|
private static String |
RESOURCE
|
static String |
STRING
Supported API: false |
(package private) static boolean |
VERBOSE
|
Constructor Summary | |
ResourceInfoRepository()
|
Method Summary | |
static void |
clearCache()
Empty the cache, so that ResourceInfo requests will be fulfilled by loading the files. |
protected static ResourceInfo |
constructInfo(String name)
|
protected static boolean |
fileExists(String fullFileName)
|
static ResourceInfo |
getResourceInfo(String infoName)
Get an existing Info instance for the infoName, if one exists. |
static ResourceInfo |
getResourceInfo(String infoName,
Locale locale)
Get an existing Info instance for the infoName, for the specified locale, if one exists. |
private static ResourceInfo |
loadInfo(String infoName,
Locale locale,
ResourceInfo localizingInfo,
ResourceInfo info)
|
private static PropertiesMap |
read(String infoName,
Locale locale,
boolean customization)
|
private static PropertiesMap |
readFile(String fullFileName,
Locale locale)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
public static final String STRING
public static final String ENUM
private static final Hashtable infoCache
static final boolean VERBOSE
Constructor Detail |
public ResourceInfoRepository()
Method Detail |
public static ResourceInfo getResourceInfo(String infoName) throws WTResourceException
infoName
-
WTResourceException
public static ResourceInfo getResourceInfo(String infoName, Locale locale) throws WTResourceException
infoName
- locale
-
WTResourceException
private static ResourceInfo loadInfo(String infoName, Locale locale, ResourceInfo localizingInfo, ResourceInfo info) throws WTResourceException
WTResourceException
private static PropertiesMap read(String infoName, Locale locale, boolean customization) throws WTResourceException
WTResourceException
private static PropertiesMap readFile(String fullFileName, Locale locale) throws WTResourceException
WTResourceException
protected static boolean fileExists(String fullFileName)
protected static ResourceInfo constructInfo(String name) throws WTResourceException
WTResourceException
public static void clearCache()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |