public class ResourceBundleLocalizationContext
extends com.cloudera.director.spi.v1.model.util.AbstractLocalizationContext
Modifier and Type | Class and Description |
---|---|
static class |
ResourceBundleLocalizationContext.ResourceBundleLocalizationContextFactory
Default localization context factory implementation.
|
static interface |
ResourceBundleLocalizationContext.ResourceBundleResolver
Resolver for locale-specific resource bundles.
|
Modifier and Type | Field and Description |
---|---|
static com.cloudera.director.spi.v1.model.LocalizationContext.Factory |
FACTORY
The default resource bundle localization factory.
|
Constructor and Description |
---|
ResourceBundleLocalizationContext(Locale locale,
String keyPrefix,
ResourceBundle resourceBundle)
Creates a resource bundle localization context with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
String |
localize(String defaultValue,
String... keyComponents) |
public static final com.cloudera.director.spi.v1.model.LocalizationContext.Factory FACTORY
public ResourceBundleLocalizationContext(Locale locale, String keyPrefix, ResourceBundle resourceBundle)
locale
- the localekeyPrefix
- the key prefix of the context, which can be used for property namespacingresourceBundle
- the backing resource bundleCopyright © 2016. All rights reserved.