|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ops4j.util.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(java.lang.String baseName)
Retrieve resource with specified basename. |
static Resources |
getBaseResources(java.lang.String baseName,
java.lang.ClassLoader classLoader)
Retrieve resource with specified basename. |
static Resources |
getBaseResources(java.lang.String baseName,
java.util.Locale locale,
java.lang.ClassLoader classLoader)
Retrieve resource with specified basename. |
static Resources |
getClassResources(java.lang.Class clazz)
Retrieve resource for specified Class. |
static Resources |
getClassResources(java.lang.Class clazz,
java.util.Locale locale)
Retrieve resource for specified Class. |
static java.lang.String |
getClassResourcesBaseName(java.lang.Class clazz)
Retrieve resource basename for specified Class. |
static Resources |
getPackageResources(java.lang.Class clazz)
Retrieve resource for specified Classes package. |
static Resources |
getPackageResources(java.lang.Class clazz,
java.util.Locale locale)
Retrieve resource for specified Classes package. |
static java.lang.String |
getPackageResourcesBaseName(java.lang.Class clazz)
Retrieve resource basename for specified Classes package. |
static Resources |
getResources(java.lang.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 Resources getBaseResources(java.lang.String baseName)
baseName - the basename
public static Resources getBaseResources(java.lang.String baseName,
java.lang.ClassLoader classLoader)
baseName - the basenameclassLoader - the classLoader to load resources from
public static Resources getBaseResources(java.lang.String baseName,
java.util.Locale locale,
java.lang.ClassLoader classLoader)
baseName - the basenameclassLoader - the classLoader to load resources fromlocale - the locale of the resources requested.
public static void clearResourceCache()
throws java.lang.SecurityException
RuntimePermission or
else a security exception will be thrown.
java.lang.SecurityException - if the caller does not have permission to clear cachepublic static Resources getResources(java.lang.String name)
name - the name to use when looking up resources
public static Resources getPackageResources(java.lang.Class clazz)
clazz - the Class
public static Resources getPackageResources(java.lang.Class clazz,
java.util.Locale locale)
clazz - the Classlocale - the locale of the package resources requested.
public static Resources getClassResources(java.lang.Class clazz)
clazz - the Class
public static Resources getClassResources(java.lang.Class clazz,
java.util.Locale locale)
clazz - the Classlocale - the requested Locale.
public static java.lang.String getPackageResourcesBaseName(java.lang.Class clazz)
clazz - the Class
public static java.lang.String getClassResourcesBaseName(java.lang.Class clazz)
clazz - the Class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||