|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.dpml.i18n.ResourceManager
public final class ResourceManager
Manager for resources.
Method Summary | |
---|---|
static void |
clearResourceCache()
Clear the cache of all resources currently loaded into the system. |
static Resources |
getBaseResources(String baseName)
Retrieve resource with specified basename. |
static Resources |
getBaseResources(String baseName,
ClassLoader classLoader)
Retrieve resource with specified basename. |
static Resources |
getBaseResources(String baseName,
Locale locale,
ClassLoader classLoader)
Retrieve resource with specified basename. |
static Resources |
getClassResources(Class clazz)
Retrieve resource for specified Class. |
static Resources |
getClassResources(Class clazz,
Locale locale)
Retrieve resource for specified Class. |
static String |
getClassResourcesBaseName(Class clazz)
Retrieve resource basename for specified Class. |
static Resources |
getPackageResources(Class clazz)
Retrieve resource for specified Classes package. |
static Resources |
getPackageResources(Class clazz,
Locale locale)
Retrieve resource for specified Classes package. |
static String |
getPackageResourcesBaseName(Class clazz)
Retrieve resource basename for specified Classes package. |
static Resources |
getResources(String name)
Retrieve resource for specified name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final Resources getBaseResources(String baseName)
baseName
- the basename
public static final Resources getBaseResources(String baseName, ClassLoader classLoader)
baseName
- the basenameclassLoader
- the classLoader to load resources from
public static final Resources getBaseResources(String baseName, Locale locale, ClassLoader classLoader)
baseName
- the basenamelocale
- the localeclassLoader
- the classLoader to load resources from
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 getResources(String name)
name
- the name to use when looking up resources
public static final Resources getPackageResources(Class clazz)
clazz
- the Class
public static final Resources getPackageResources(Class clazz, Locale locale)
clazz
- the Classlocale
- the locale
public static final Resources getClassResources(Class clazz)
clazz
- the Class
public static final Resources getClassResources(Class clazz, Locale locale)
clazz
- the Classlocale
- the requested Locale.
public static final String getPackageResourcesBaseName(Class clazz)
clazz
- the Class
public static final String getClassResourcesBaseName(Class clazz)
clazz
- the Class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |