|
Download Sources | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.liguorien.flex.generator.utils.ClassLoaderUtil
public final class ClassLoaderUtil
Provides some utility methods to find resources through several classloaders.
| Constructor Summary | |
|---|---|
ClassLoaderUtil()
|
|
| Method Summary | |
|---|---|
static boolean |
containsKey(java.util.ResourceBundle b,
java.lang.String key)
Determines if a ResourceBundle contains a given key. |
static java.net.URL |
findResource(java.lang.String name)
Finds a resource through several classloaders. |
static java.util.ResourceBundle |
getBundle(java.lang.String name)
Finds a ResourceBundle through several classloaders. |
static java.util.Locale |
getLocale()
Get the Locale of the current context FlexGenerator instance. |
static java.lang.String |
getString(java.lang.String bundleName,
java.lang.String key)
Searchs for a String resource into a ResourceBundle through several classloaders. |
static java.lang.Class<?> |
loadClass(java.lang.String name)
Finds a resource through several classloaders. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClassLoaderUtil()
| Method Detail |
|---|
public static java.net.URL findResource(java.lang.String name)
Finds a resource through several classloaders. The search sequence is the following :
public static java.lang.Class<?> loadClass(java.lang.String name)
Finds a resource through several classloaders. The search sequence is the following :
public static java.util.ResourceBundle getBundle(java.lang.String name)
Finds a ResourceBundle through several classloaders. The search sequence is the following :
public static java.lang.String getString(java.lang.String bundleName,
java.lang.String key)
Searchs for a String resource into a ResourceBundle through several classloaders. The search sequence is the following :
public static boolean containsKey(java.util.ResourceBundle b,
java.lang.String key)
b - The ResourceBundlekey - The key to check
public static java.util.Locale getLocale()
Get the Locale of the current context FlexGenerator instance.
To Locale of the generator can be changed with
FlexGenerator.setLocale(java.util.Locale). The default value is
Locale.getDefault()
|
FlexGenerator | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||