public abstract class BaseConfigurationStrategy extends Object implements ConfigurationStrategy
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
BaseConfigurationStrategy() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
get(ConfigurationKey configurationKey)
Retrieve the String value for this key.
|
boolean |
getBoolean(ConfigurationKey<Boolean> configurationKey)
Retrieves the value for the provided , falling back to the 's
ConfigurationKey.getDefaultValue() if nothing can be found. |
<T> Class<? extends T> |
getClass(ConfigurationKey<Class<? extends T>> configurationKey)
Retrieves the value for the provided , falling back to the 's
ConfigurationKey.getDefaultValue() if nothing can be found. |
int |
getInt(ConfigurationKey<Integer> configurationKey)
Retrieves the value for the provided , falling back to the 's
ConfigurationKey.getDefaultValue() if nothing can be found. |
long |
getLong(ConfigurationKey<Long> configurationKey)
Retrieves the value for the provided , falling back to the 's
ConfigurationKey.getDefaultValue() if nothing can be found. |
String |
getString(ConfigurationKey<String> configurationKey)
Retrieves the value for the provided , falling back to the 's
ConfigurationKey.getDefaultValue() if nothing can be found. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init
public final boolean getBoolean(ConfigurationKey<Boolean> configurationKey)
ConfigurationStrategy
ConfigurationKey.getDefaultValue()
if nothing can be found.getBoolean
in interface ConfigurationStrategy
configurationKey
- the configuration key. MUST NOT BE NULL.public final long getLong(ConfigurationKey<Long> configurationKey)
ConfigurationStrategy
ConfigurationKey.getDefaultValue()
if nothing can be found.getLong
in interface ConfigurationStrategy
configurationKey
- the configuration key. MUST NOT BE NULL.public final int getInt(ConfigurationKey<Integer> configurationKey)
ConfigurationStrategy
ConfigurationKey.getDefaultValue()
if nothing can be found.getInt
in interface ConfigurationStrategy
configurationKey
- the configuration key. MUST NOT BE NULL.public final String getString(ConfigurationKey<String> configurationKey)
ConfigurationStrategy
ConfigurationKey.getDefaultValue()
if nothing can be found.getString
in interface ConfigurationStrategy
configurationKey
- the configuration key. MUST NOT BE NULL.public <T> Class<? extends T> getClass(ConfigurationKey<Class<? extends T>> configurationKey)
ConfigurationStrategy
ConfigurationKey.getDefaultValue()
if nothing can be found.getClass
in interface ConfigurationStrategy
configurationKey
- the configuration key. MUST NOT BE NULL.protected abstract String get(ConfigurationKey configurationKey)
configurationKey
- the key to retrieve. MUST NOT BE NULL.Copyright © 2006–2019 Jasig. All rights reserved.