public class AristaFlowBundle
extends java.util.ResourceBundle
AristaFlowBundle provides the localisation for localised
resources. This class provides the default (non-localised) resources, extend
it for specific local resources. It suffices to register the localised
resources appropriately in the constructor, this class handles accessing
them. Extensions do not need to provide all resources provided that they are
satisfied with the default resource.| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Class<?>> |
i18nClasses
The map containing all provided localised classes, mapped from their
abstract name (the name of the corresponding interface) to the localised,
instantiable class.
|
protected java.util.logging.Logger |
logger
My logger.
|
| Constructor and Description |
|---|
AristaFlowBundle()
Creates a new resource bundle containing all localisable resources and
adds a default for each resource.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<java.lang.String> |
getBundleNames(java.util.Locale locale)
The bundle names (suffixes for resource bundles) for the designated locale as list, with the
most specific bundle name leading.
|
java.util.Enumeration<java.lang.String> |
getKeys() |
protected java.lang.Object |
handleGetObject(java.lang.String key) |
protected final java.util.logging.Logger logger
protected java.util.Map<java.lang.String,java.lang.Class<?>> i18nClasses
public AristaFlowBundle()
public java.util.Enumeration<java.lang.String> getKeys()
getKeys in class java.util.ResourceBundleprotected java.lang.Object handleGetObject(java.lang.String key)
handleGetObject in class java.util.ResourceBundlepublic static java.util.List<java.lang.String> getBundleNames(java.util.Locale locale)
| Locale | Resulting List |
|---|---|
| de_DE_BW | [de_DE_BW, de_DE, de, ] |
| de_DE | [de_DE, de, ] |
| de_AT | [de_AT, de, ] |
| de | [de, ] |
locale - The locale for which to get the bundle names, i. e. the suffixes for bundles.