Interface ConfigurationProvider
- All Known Implementing Classes:
BareConfiguration,Configuration,JNDIProvider
public interface ConfigurationProvider
configuration provider interface
-
Method Summary
Modifier and TypeMethodDescriptionretrieve a (mandatory) parameter or throw exception, also seegetConfigurationParameterOrNull(String)<T> TgetConfigurationParameter(String id, T defaultValue) getter for configuration parameter including downcastretrieve parameter
-
Method Details
-
getConfigurationParameter
retrieve a (mandatory) parameter or throw exception, also seegetConfigurationParameterOrNull(String)- Parameters:
id-- Returns:
- configuration parameter instance
-
getConfigurationParameter
getter for configuration parameter including downcast- Parameters:
id-defaultValue-- Returns:
- configuration parameter instance or defaultValue
- Throws:
ClassCastException- if configurationParameter is not of provided type
-
getConfigurationParameterOrNull
retrieve parameter- Parameters:
id-- Returns:
- configuration parameter instance or NULL
-