public class PropertiesConfigurationProvider extends AbstractObjectConfigurationProvider
| Constructor and Description |
|---|
PropertiesConfigurationProvider(java.util.Properties properties) |
PropertiesConfigurationProvider(java.util.Properties properties,
java.util.Map<java.lang.String,java.lang.String> variableValues) |
PropertiesConfigurationProvider(java.util.Properties properties,
java.util.Map<java.lang.String,java.lang.String> variableValues,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
Property<java.lang.Boolean> |
getBooleanProperty(ConfigurationKey key,
java.lang.Boolean defaultValue) |
Property<java.util.Date> |
getDateProperty(ConfigurationKey key,
java.util.Date defaultValue) |
Property<java.lang.Double> |
getDoubleProperty(ConfigurationKey key,
java.lang.Double defaultValue) |
Property<java.lang.Integer> |
getIntegerProperty(ConfigurationKey key,
java.lang.Integer defaultValue) |
Property<java.lang.Long> |
getLongProperty(ConfigurationKey key,
java.lang.Long defaultValue) |
Property<java.lang.String> |
getStringProperty(ConfigurationKey key,
java.lang.String defaultValue) |
boolean |
has(ConfigurationKey key)
Return true if there is a configuration value set for the given key
|
void |
setVariable(java.lang.String name,
java.lang.String value)
Change a variable value
|
getObjectPropertygetBooleanSupplier, getDateSupplier, getDoubleSupplier, getIntegerSupplier, getLongSupplier, getObjectSupplier, getStringSupplierpublic PropertiesConfigurationProvider(java.util.Properties properties)
properties - the propertiespublic PropertiesConfigurationProvider(java.util.Properties properties,
java.util.Map<java.lang.String,java.lang.String> variableValues)
public PropertiesConfigurationProvider(java.util.Properties properties,
java.util.Map<java.lang.String,java.lang.String> variableValues,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public void setVariable(java.lang.String name,
java.lang.String value)
name - namevalue - valuepublic boolean has(ConfigurationKey key)
ConfigurationProviderhas in interface ConfigurationProviderhas in class DefaultConfigurationProviderkey - configuration keypublic Property<java.lang.Boolean> getBooleanProperty(ConfigurationKey key, java.lang.Boolean defaultValue)
getBooleanProperty in class DefaultConfigurationProviderpublic Property<java.lang.Integer> getIntegerProperty(ConfigurationKey key, java.lang.Integer defaultValue)
getIntegerProperty in class DefaultConfigurationProviderpublic Property<java.lang.Long> getLongProperty(ConfigurationKey key, java.lang.Long defaultValue)
getLongProperty in class DefaultConfigurationProviderpublic Property<java.lang.Double> getDoubleProperty(ConfigurationKey key, java.lang.Double defaultValue)
getDoubleProperty in class DefaultConfigurationProviderpublic Property<java.lang.String> getStringProperty(ConfigurationKey key, java.lang.String defaultValue)
getStringProperty in class DefaultConfigurationProviderpublic Property<java.util.Date> getDateProperty(ConfigurationKey key, java.util.Date defaultValue)
getDateProperty in class DefaultConfigurationProvider