|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.cas.client.configuration.BaseConfigurationStrategy
public abstract class BaseConfigurationStrategy
Base class to provide most of the boiler-plate code (i.e. checking for proper values, returning defaults, etc.
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
BaseConfigurationStrategy()
|
|
| Method Summary | ||
|---|---|---|
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. |
|
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jasig.cas.client.configuration.ConfigurationStrategy |
|---|
init |
| Field Detail |
|---|
protected final org.slf4j.Logger logger
| Constructor Detail |
|---|
public BaseConfigurationStrategy()
| Method Detail |
|---|
public final boolean getBoolean(ConfigurationKey<Boolean> configurationKey)
ConfigurationStrategyConfigurationKey.getDefaultValue() if nothing can be found.
getBoolean in interface ConfigurationStrategyconfigurationKey - the configuration key. MUST NOT BE NULL.
public final long getLong(ConfigurationKey<Long> configurationKey)
ConfigurationStrategyConfigurationKey.getDefaultValue() if nothing can be found.
getLong in interface ConfigurationStrategyconfigurationKey - the configuration key. MUST NOT BE NULL.
public final int getInt(ConfigurationKey<Integer> configurationKey)
ConfigurationStrategyConfigurationKey.getDefaultValue() if nothing can be found.
getInt in interface ConfigurationStrategyconfigurationKey - the configuration key. MUST NOT BE NULL.
public final String getString(ConfigurationKey<String> configurationKey)
ConfigurationStrategyConfigurationKey.getDefaultValue() if nothing can be found.
getString in interface ConfigurationStrategyconfigurationKey - the configuration key. MUST NOT BE NULL.
public <T> Class<? extends T> getClass(ConfigurationKey<Class<? extends T>> configurationKey)
ConfigurationStrategyConfigurationKey.getDefaultValue() if nothing can be found.
getClass in interface ConfigurationStrategyconfigurationKey - the configuration key. MUST NOT BE NULL.
protected abstract String get(ConfigurationKey configurationKey)
configurationKey - the key to retrieve. MUST NOT BE NULL.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||