Package ch.autumo.beetroot.utils.common
Class PreprocessingResourceBundle
java.lang.Object
java.util.ResourceBundle
ch.autumo.beetroot.utils.common.PreprocessingResourceBundle
Pre-processes special resource bundle entries.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.ResourceBundle
ResourceBundle.Control -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPlaceholder for {$APP_NAME}.static final StringPlaceholder for {$APP_VERSION}.Fields inherited from class java.util.ResourceBundle
parent -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(String key) static ResourceBundleCreate a pre-processed bundle if necessary (based on type), otherwise return a standard bundle.static ResourceBundlegetBundle(String type, String baseName, Locale locale, ClassLoader loader) Create a pre-processed bundle if necessary (based on type), otherwise return a standard bundle.static ResourceBundlegetBundle(String type, String baseName, Locale locale, ClassLoader loader, ResourceBundle.Control control) Create a pre-processed bundle if necessary (based on type), otherwise return a standard bundle.static ResourceBundlegetBundle(String type, String baseName, Locale locale, ResourceBundle.Control control) Create a pre-processed bundle if necessary (based on type), otherwise return a standard bundle.getKeys()protected ObjecthandleGetObject(String key) Methods inherited from class java.util.ResourceBundle
clearCache, clearCache, getBaseBundleName, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent
-
Field Details
-
PLACEHOLDER_APP_NAME
Placeholder for {$APP_NAME}.- See Also:
-
PLACEHOLDER_APP_VERSION
Placeholder for {$APP_VERSION}.- See Also:
-
-
Method Details
-
handleGetObject
- Specified by:
handleGetObjectin classResourceBundle
-
getKeys
- Specified by:
getKeysin classResourceBundle
-
containsKey
- Overrides:
containsKeyin classResourceBundle
-
getBundle
Create a pre-processed bundle if necessary (based on type), otherwise return a standard bundle.- Parameters:
type- bundle typebaseName- base namelocale- locale- Returns:
- pre-processed or standard bundle
-
getBundle
public static ResourceBundle getBundle(String type, String baseName, Locale locale, ClassLoader loader) Create a pre-processed bundle if necessary (based on type), otherwise return a standard bundle.- Parameters:
type- bundle typebaseName- base namelocale- localeloader- class loader- Returns:
- pre-processed or standard bundle
-
getBundle
public static ResourceBundle getBundle(String type, String baseName, Locale locale, ResourceBundle.Control control) Create a pre-processed bundle if necessary (based on type), otherwise return a standard bundle.- Parameters:
type- bundle typebaseName- base namelocale- localecontrol- resource bundle control- Returns:
- pre-processed or standard bundle
-
getBundle
public static ResourceBundle getBundle(String type, String baseName, Locale locale, ClassLoader loader, ResourceBundle.Control control) Create a pre-processed bundle if necessary (based on type), otherwise return a standard bundle.- Parameters:
type- bundle typebaseName- base namelocale- localeloader- class loadercontrol- resource bundle control- Returns:
- pre-processed or standard bundle
-