public abstract class DefaultConfigurationProvider extends java.lang.Object implements ConfigurationProvider
| Constructor and Description |
|---|
DefaultConfigurationProvider() |
| Modifier and Type | Method and Description |
|---|---|
abstract Property<java.lang.Boolean> |
getBooleanProperty(ConfigurationKey key,
java.lang.Boolean defaultValue) |
com.google.common.base.Supplier<java.lang.Boolean> |
getBooleanSupplier(ConfigurationKey key,
java.lang.Boolean defaultValue)
Return the given configuration as a boolean.
|
abstract Property<java.util.Date> |
getDateProperty(ConfigurationKey key,
java.util.Date defaultValue) |
com.google.common.base.Supplier<java.util.Date> |
getDateSupplier(ConfigurationKey key,
java.util.Date defaultValue)
Return the given configuration as a date.
|
abstract Property<java.lang.Double> |
getDoubleProperty(ConfigurationKey key,
java.lang.Double defaultValue) |
com.google.common.base.Supplier<java.lang.Double> |
getDoubleSupplier(ConfigurationKey key,
java.lang.Double defaultValue)
Return the given configuration as a double.
|
abstract Property<java.lang.Integer> |
getIntegerProperty(ConfigurationKey key,
java.lang.Integer defaultValue) |
com.google.common.base.Supplier<java.lang.Integer> |
getIntegerSupplier(ConfigurationKey key,
java.lang.Integer defaultValue)
Return the given configuration as an integer.
|
abstract Property<java.lang.Long> |
getLongProperty(ConfigurationKey key,
java.lang.Long defaultValue) |
com.google.common.base.Supplier<java.lang.Long> |
getLongSupplier(ConfigurationKey key,
java.lang.Long defaultValue)
Return the given configuration as a long.
|
abstract <T> Property<T> |
getObjectProperty(ConfigurationKey key,
T defaultValue,
java.lang.Class<T> objectType) |
<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.
|
abstract Property<java.lang.String> |
getStringProperty(ConfigurationKey key,
java.lang.String defaultValue) |
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
|
public boolean has(ConfigurationKey key)
ConfigurationProviderhas in interface ConfigurationProviderkey - configuration keypublic com.google.common.base.Supplier<java.lang.Boolean> getBooleanSupplier(ConfigurationKey key, java.lang.Boolean defaultValue)
ConfigurationProvidergetBooleanSupplier in interface ConfigurationProviderkey - configuration keypublic com.google.common.base.Supplier<java.lang.Integer> getIntegerSupplier(ConfigurationKey key, java.lang.Integer defaultValue)
ConfigurationProvidergetIntegerSupplier in interface ConfigurationProviderkey - configuration keypublic com.google.common.base.Supplier<java.lang.Long> getLongSupplier(ConfigurationKey key, java.lang.Long defaultValue)
ConfigurationProvidergetLongSupplier in interface ConfigurationProviderkey - configuration keypublic com.google.common.base.Supplier<java.lang.Double> getDoubleSupplier(ConfigurationKey key, java.lang.Double defaultValue)
ConfigurationProvidergetDoubleSupplier in interface ConfigurationProviderkey - configuration keypublic com.google.common.base.Supplier<java.lang.String> getStringSupplier(ConfigurationKey key, java.lang.String defaultValue)
ConfigurationProvidergetStringSupplier in interface ConfigurationProviderkey - configuration keypublic com.google.common.base.Supplier<java.util.Date> getDateSupplier(ConfigurationKey key, java.util.Date defaultValue)
ConfigurationProvidergetDateSupplier in interface ConfigurationProviderkey - configuration keypublic <T> com.google.common.base.Supplier<T> getObjectSupplier(ConfigurationKey key, T defaultValue, java.lang.Class<T> objectType)
ConfigurationProvidergetObjectSupplier in interface ConfigurationProviderT - type of the configuration to returnkey - configuration keydefaultValue - value to return when key is not foundobjectType - Class of the configuration to returnpublic abstract Property<java.lang.Boolean> getBooleanProperty(ConfigurationKey key, java.lang.Boolean defaultValue)
public abstract Property<java.lang.Integer> getIntegerProperty(ConfigurationKey key, java.lang.Integer defaultValue)
public abstract Property<java.lang.Long> getLongProperty(ConfigurationKey key, java.lang.Long defaultValue)
public abstract Property<java.lang.Double> getDoubleProperty(ConfigurationKey key, java.lang.Double defaultValue)
public abstract Property<java.lang.String> getStringProperty(ConfigurationKey key, java.lang.String defaultValue)
public abstract Property<java.util.Date> getDateProperty(ConfigurationKey key, java.util.Date defaultValue)
public abstract <T> Property<T> getObjectProperty(ConfigurationKey key, T defaultValue, java.lang.Class<T> objectType)