public interface ConfigurationProvider
Configuration| Modifier and Type | Method and Description |
|---|---|
com.google.common.base.Supplier<java.lang.Boolean> |
getBooleanSupplier(ConfigurationKey key,
java.lang.Boolean defaultValue)
Return the given configuration as a boolean.
|
com.google.common.base.Supplier<java.util.Date> |
getDateSupplier(ConfigurationKey key,
java.util.Date defaultValue)
Return the given configuration as a date.
|
com.google.common.base.Supplier<java.lang.Double> |
getDoubleSupplier(ConfigurationKey key,
java.lang.Double defaultValue)
Return the given configuration as a double.
|
com.google.common.base.Supplier<java.lang.Integer> |
getIntegerSupplier(ConfigurationKey key,
java.lang.Integer defaultValue)
Return the given configuration as an integer.
|
com.google.common.base.Supplier<java.lang.Long> |
getLongSupplier(ConfigurationKey key,
java.lang.Long defaultValue)
Return the given configuration as a long.
|
<T> com.google.common.base.Supplier<T> |
getObjectSupplier(ConfigurationKey key,
T defaultValue,
java.lang.Class<T> objectType)
Return the given configuration as an object of the given type.
|
com.google.common.base.Supplier<java.lang.String> |
getStringSupplier(ConfigurationKey key,
java.lang.String defaultValue)
Return the given configuration as a string.
|
boolean |
has(ConfigurationKey key)
Return true if there is a configuration value set for the given key
|
boolean has(ConfigurationKey key)
key - configuration keycom.google.common.base.Supplier<java.lang.Boolean> getBooleanSupplier(ConfigurationKey key, java.lang.Boolean defaultValue)
key - configuration keycom.google.common.base.Supplier<java.lang.Integer> getIntegerSupplier(ConfigurationKey key, java.lang.Integer defaultValue)
key - configuration keycom.google.common.base.Supplier<java.lang.Long> getLongSupplier(ConfigurationKey key, java.lang.Long defaultValue)
key - configuration keycom.google.common.base.Supplier<java.lang.Double> getDoubleSupplier(ConfigurationKey key, java.lang.Double defaultValue)
key - configuration keycom.google.common.base.Supplier<java.lang.String> getStringSupplier(ConfigurationKey key, java.lang.String defaultValue)
key - configuration keycom.google.common.base.Supplier<java.util.Date> getDateSupplier(ConfigurationKey key, java.util.Date defaultValue)
key - configuration key<T> com.google.common.base.Supplier<T> getObjectSupplier(ConfigurationKey key, T defaultValue, java.lang.Class<T> objectType)
T - type of the configuration to returnkey - configuration keydefaultValue - value to return when key is not foundobjectType - Class of the configuration to return