Class CafConfigurationDecoderProvider

java.lang.Object
com.github.cafapi.common.config.decoder.CafConfigurationDecoderProvider
All Implemented Interfaces:
ConfigurationDecoderProvider

public class CafConfigurationDecoderProvider extends Object implements ConfigurationDecoderProvider
Implements a default mechanism for selecting a Decoder to use when interpreting configuration files.
  • Constructor Details

    • CafConfigurationDecoderProvider

      public CafConfigurationDecoderProvider()
  • Method Details

    • getDecoder

      public Decoder getDecoder(BootstrapConfiguration bootstrap, Decoder defaultDecoder)
      Returns the Decoder that should be used to interpret the configuration files.
      Specified by:
      getDecoder in interface ConfigurationDecoderProvider
      Parameters:
      bootstrap - used to provide basic, initial startup configuration
      defaultDecoder - the Decoder to use if one is not configured
      Returns:
      the Decoder that should be used to interpret the configuration files