|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.spice.salt.i18n.I18nResourceManager
public class I18nResourceManager
Manager for I18nResources objects. The manager caches the I18nResources object based on the ClassLoader and Locale that the I18nResources is loaded from.
| Constructor Summary | |
|---|---|
I18nResourceManager()
|
|
| Method Summary | |
|---|---|
static void |
clearResourceCache()
Clear the cache of all resources currently loaded into the system. |
static I18nResources |
getBaseResources(String basename,
ClassLoader classLoader)
Retrieve resource with specified basename. |
static I18nResources |
getBaseResources(String basename,
Locale locale,
ClassLoader classLoader)
Retrieve resource with specified basename in specified locale. |
static I18nResources |
getClassResources(Class clazz)
Retrieve resource for specified Class. |
static I18nResources |
getClassResources(Class clazz,
Locale locale)
Retrieve resource for specified Class. |
static I18nResources |
getPackageResources(Class clazz)
Retrieve resource for specified Classes package. |
static I18nResources |
getPackageResources(Class clazz,
Locale locale)
Retrieve resource for specified Classes package. |
static I18nResources |
getResources(String resource,
ClassLoader classLoader)
Retrieve resource for specified name. |
static I18nResources |
getResources(String resource,
Locale locale,
ClassLoader classLoader)
Retrieve resource for specified name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public I18nResourceManager()
| Method Detail |
|---|
public static final void clearResourceCache()
throws SecurityException
Note that the caller must have been granted the
"i18n.clearCompleteCache" RuntimePermission or else a security
exception will be thrown.
SecurityException - if the caller does not have permission to clear
cache
public static final I18nResources getBaseResources(String basename,
ClassLoader classLoader)
basename - the basename
public static final I18nResources getBaseResources(String basename,
Locale locale,
ClassLoader classLoader)
basename - the basename
public static final I18nResources getResources(String resource,
ClassLoader classLoader)
resource - the base location
public static final I18nResources getResources(String resource,
Locale locale,
ClassLoader classLoader)
resource - the base location
public static final I18nResources getPackageResources(Class clazz)
clazz - the Class
public static final I18nResources getPackageResources(Class clazz,
Locale locale)
clazz - the Class
public static final I18nResources getClassResources(Class clazz)
clazz - the Class
public static final I18nResources getClassResources(Class clazz,
Locale locale)
clazz - the Class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||