public class ResourceBundleConfiguration extends AbstractConfiguration
Modifier and Type | Field and Description |
---|---|
protected static String |
ERROR_KEY_BLANK |
Constructor and Description |
---|
ResourceBundleConfiguration(ResourceBundle resourceBundle) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
asFlatMap() |
ResourceBundle |
asResourceBundle() |
boolean |
containsKey(String key)
Searches for the key in this configuration.
|
Object |
get(String key)
Returns the value associated with the given key.
|
asProperties, convertValue, get, getAs, getAs, getAsBoolean, getAsBoolean, getAsDouble, getAsDouble, getAsFloat, getAsFloat, getAsInt, getAsInt, getAsLong, getAsLong, getAsString, getAsString, getAt, getAt, getConverted, getConverted
protected static final String ERROR_KEY_BLANK
@Inject public ResourceBundleConfiguration(@Nonnull ResourceBundle resourceBundle)
public boolean containsKey(@Nonnull String key)
Configuration
key
- the key to search@Nonnull public ResourceBundle asResourceBundle()
@Nullable public Object get(@Nonnull String key)
Configuration
key
- the key to search