|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.spice.salt.i18n.ResourceManager
Manager for resources.
Constructor Summary | |
ResourceManager()
|
Method Summary | |
static void |
clearResourceCache()
Clear the cache of all resources currently loaded into the system. |
static Resources |
getBaseResources(String basename,
ClassLoader classLoader)
Retrieve resource with specified basename. |
static Resources |
getClassResources(Class clazz)
Retrieve resource for specified Class. |
static Resources |
getPackageResources(Class clazz)
Retrieve resource for specified Classes package. |
static Resources |
getResources(String resource,
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 ResourceManager()
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
cachepublic static final Resources getBaseResources(String basename, ClassLoader classLoader)
basename
- the basename
public static final Resources getResources(String resource, ClassLoader classLoader)
resource
- the base location
public static final Resources getPackageResources(Class clazz)
clazz
- the Class
public static final Resources getClassResources(Class clazz)
clazz
- the Class
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |