Interface ConfigurationProvider
-
- All Known Implementing Classes:
BareConfiguration
,Configuration
,JNDIProvider
public interface ConfigurationProvider
configuration provider interface
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Object
getConfigurationParameter(java.lang.String id)
retrieve a (mandatory) parameter or throw exception, also seegetConfigurationParameterOrNull(String)
<T> T
getConfigurationParameter(java.lang.String id, T defaultValue)
getter for configuration parameter including downcastjava.lang.Object
getConfigurationParameterOrNull(java.lang.String id)
retrieve parameter
-
-
-
Method Detail
-
getConfigurationParameter
java.lang.Object getConfigurationParameter(java.lang.String id)
retrieve a (mandatory) parameter or throw exception, also seegetConfigurationParameterOrNull(String)
- Parameters:
id
-- Returns:
- configuration parameter instance
-
getConfigurationParameter
<T> T getConfigurationParameter(java.lang.String id, T defaultValue)
getter for configuration parameter including downcast- Parameters:
id
-defaultValue
-- Returns:
- configuration parameter instance or defaultValue
- Throws:
java.lang.ClassCastException
- if configurationParameter is not of provided type
-
getConfigurationParameterOrNull
java.lang.Object getConfigurationParameterOrNull(java.lang.String id)
retrieve parameter- Parameters:
id
-- Returns:
- configuration parameter instance or NULL
-
-