|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.javatools.resourcebundle.BundleFactory
public final class BundleFactory
The BundleFactory
provides a simplified approach to getting resource bundles from the run time resource bundle manager.
Constructor Summary | |
---|---|
BundleFactory() |
Method Summary | |
---|---|
static void |
flush() Clears out any resource bundles cached by the run time resource bundle manager |
static java.util.ResourceBundle |
getBundle(java.util.ResourceBundle resourceBundle, java.util.Locale locale) Takes a resource bundle and wraps it with the application-level override bundle |
static java.util.ResourceBundle |
getBundle(java.lang.String bundleId) Gets the resource bundle for the given name |
static java.util.ResourceBundle |
getBundle(java.lang.String bundleId, java.util.Locale locale) Gets the resource bundle for the given name |
static java.util.ResourceBundle |
getBundle(java.lang.String bundleId, java.util.Locale locale, java.lang.ClassLoader loader) Gets the resource bundle for the given name |
static java.util.ResourceBundle |
getBundle(java.lang.String bundleId, java.lang.String extension) Deprecated. since 11.0 |
static java.util.ResourceBundle |
getBundle(java.lang.String bundleId, java.lang.String extension, java.util.Locale locale) Deprecated. since 11.0 |
static java.util.ResourceBundle |
getBundle(java.lang.String bundleId, java.lang.String extension, java.util.Locale locale, java.lang.ClassLoader classLoader) Deprecated. since 11.0 |
static java.util.Locale |
getDefaultLocale() |
static java.util.Map<java.lang.String,java.lang.String> |
getMap(java.lang.String bundleId) Gets a map of key/values from the specified bundle id and locale |
static java.util.Map<java.lang.String,java.lang.String> |
getMap(java.lang.String bundleId, java.util.Locale locale) Gets a map of key/values from the specified bundle id and locale |
static java.util.Map<java.lang.String,java.lang.String> |
getMap(java.lang.String bundleId, java.util.Locale locale, java.lang.ClassLoader loader) Gets a map of key/values from the specified bundle id and locale |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BundleFactory()
Method Detail |
---|
public static void flush()
public static java.util.Map<java.lang.String,java.lang.String> getMap(java.lang.String bundleId)
bundleId
- The bundleId to use. This will only be significant if the project is set for one bundle per artifact. The bundle ID is up to the client, however is generally either {PACKAGE_NAME} + {OBJECT_NAME} + "Bundle"
or {PACKAGE_NAME} + "Bundle"
.public static java.util.Map<java.lang.String,java.lang.String> getMap(java.lang.String bundleId, java.util.Locale locale)
bundleId
- The bundleId to use. This will only be significant if the project is set for one bundle per artifact. The bundle ID is up to the client, however is generally either {PACKAGE_NAME} + {OBJECT_NAME} + "Bundle"
or {PACKAGE_NAME} + "Bundle"
.locale
- the locale to use when finding the resource bundlepublic static java.util.Map<java.lang.String,java.lang.String> getMap(java.lang.String bundleId, java.util.Locale locale, java.lang.ClassLoader loader)
bundleId
-locale
-loader
-public static final java.util.ResourceBundle getBundle(java.lang.String bundleId)
bundleId
- The bundleId to use. This will only be significant if the project is set for one bundle per artifact. The bundle ID is up to the client, however is generally either {PACKAGE_NAME} + {OBJECT_NAME} + "Bundle"
or {PACKAGE_NAME} + "Bundle"
.
@Deprecated
public static final java.util.ResourceBundle getBundle(java.lang.String bundleId,
java.lang.String extension)
bundleId
- The bundleId to use. This will only be significant if the project is set for one bundle per artifact. The bundle ID is up to the client, however is generally either {PACKAGE_NAME} + {OBJECT_NAME} + "Bundle"
or {PACKAGE_NAME} + "Bundle"
.extension
- the extension of the bundle (no longer used)
@Deprecated
public static final java.util.ResourceBundle getBundle(java.lang.String bundleId,
java.lang.String extension,
java.util.Locale locale)
bundleId
-extension
-locale
-
@Deprecated
public static final java.util.ResourceBundle getBundle(java.lang.String bundleId,
java.lang.String extension,
java.util.Locale locale,
java.lang.ClassLoader classLoader)
bundleId
-extension
-locale
-classLoader
-public static final java.util.ResourceBundle getBundle(java.lang.String bundleId, java.util.Locale locale)
bundleId
- The bundleId to use. This will only be significant if the project is set for one bundle per artifact. The bundle ID is up to the client, however is generally either {PACKAGE_NAME} + {OBJECT_NAME} + "Bundle"
or {PACKAGE_NAME} + "Bundle"
.locale
- the locale to look forpublic static java.util.ResourceBundle getBundle(java.lang.String bundleId, java.util.Locale locale, java.lang.ClassLoader loader)
bundleId
- The bundleId to use. This will only be significant if the project is set for one bundle per artifact. The bundle ID is up to the client, however is generally either {PACKAGE_NAME} + {OBJECT_NAME} + "Bundle"
or {PACKAGE_NAME} + "Bundle"
.locale
- locale the locale to look forloader
- the class loader to use to find the filepublic static java.util.ResourceBundle getBundle(java.util.ResourceBundle resourceBundle, java.util.Locale locale)
resourceBundle
- must not be nulllocale
- must not be nullpublic static java.util.Locale getDefaultLocale()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |