Interface ConfigFormat

All Known Implementing Classes:
IniConfigFormat, YamlConfigFormat

public interface ConfigFormat
Format strategy for config map persistence.
  • Method Details

    • id

      Format identifier.
      Returns:
      Format identifier.
    • toInternal

      String toInternal(String contents) throws IOException
      Normalizes source format text into INI-style content consumed by ConfigMap.
      Parameters:
      contents - The source contents.
      Returns:
      INI-style contents.
      Throws:
      IOException - Thrown by underlying stream.
    • fromInternal

      Writes a map to this format.
      Parameters:
      map - The map to write.
      Returns:
      Serialized contents in this format.
      Throws:
      IOException - Thrown by underlying stream.