Class CafConfigurationDecoderProvider
java.lang.Object
com.github.cafapi.common.config.decoder.CafConfigurationDecoderProvider
- All Implemented Interfaces:
ConfigurationDecoderProvider
Implements a default mechanism for selecting a Decoder to use when interpreting configuration files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDecoder
(BootstrapConfiguration bootstrap, Decoder defaultDecoder) Returns the Decoder that should be used to interpret the configuration files.
-
Constructor Details
-
CafConfigurationDecoderProvider
public CafConfigurationDecoderProvider()
-
-
Method Details
-
getDecoder
Returns the Decoder that should be used to interpret the configuration files.- Specified by:
getDecoder
in interfaceConfigurationDecoderProvider
- Parameters:
bootstrap
- used to provide basic, initial startup configurationdefaultDecoder
- the Decoder to use if one is not configured- Returns:
- the Decoder that should be used to interpret the configuration files
-