Interface ConfigurationFileFormat

All Known Implementing Classes:
PropertiesFormat, YamlFormat

public interface ConfigurationFileFormat
The format of an application's configuration files, for example properties or yaml.
Author:
Sijun Yang, Moritz Halbritter
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the extension of the configuration files of this format, including the leading dot, for example .yaml.
    forId(@Nullable String id)
    Creates the configuration file format for the given id.
    id()
    Return the id of the configuration file format.
  • Method Details

    • id

      String id()
      Return the id of the configuration file format.
      Returns:
      the id
    • fileExtension

      String fileExtension()
      Return the extension of the configuration files of this format, including the leading dot, for example .yaml.
      Returns:
      the file extension
    • forId

      static ConfigurationFileFormat forId(@Nullable String id)
      Creates the configuration file format for the given id.
      Parameters:
      id - the id
      Returns:
      the configuration file format
      Throws:
      IllegalStateException - if the configuration file format with the given id can't be found