Interface ConfigReporter

  • All Known Implementing Classes:
    DefaultConfigReporter

    public interface ConfigReporter
    Helper class to build configuration reports.
    • Method Detail

      • value

        void value​(String key,
                   Object value)
        Add the specified value to this report.
        Parameters:
        key - Key.
        value - Value.
      • section

        ConfigReporter section​(String name)
        Creates a new sub-section of this report.
        Parameters:
        name - Section name.
        Returns:
        Section.
      • section

        default void section​(String name,
                             Consumer<ConfigReporter> report)
        Applies the given consumer to a sub-section of this report.
        Parameters:
        name - Section name (see section(String)).
        report - Consumer of sub-section reporter.