Class DefaultConfigReporter

  • All Implemented Interfaces:
    ConfigReporter

    public class DefaultConfigReporter
    extends Object
    implements ConfigReporter
    Default implementation of interface.

    This class uses an internal buffer to accumulate reported values. Resulting report can be obtained via report() method.

    • Constructor Detail

      • DefaultConfigReporter

        public DefaultConfigReporter()
        Constructs a new instance.
    • Method Detail

      • report

        public static String report​(ConfigReportSupport subject)
        Returns a configuration report for the specified subject.
        Parameters:
        subject - Subject.
        Returns:
        Report.
      • report

        public String report()
        Returns report.
        Returns:
        Report.
      • value

        public void value​(String key,
                          Object value)
        Description copied from interface: ConfigReporter
        Add the specified value to this report.
        Specified by:
        value in interface ConfigReporter
        Parameters:
        key - Key.
        value - Value.