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