Package io.hekate.core.report
Class DefaultConfigReporter
- java.lang.Object
-
- io.hekate.core.report.DefaultConfigReporter
-
- All Implemented Interfaces:
ConfigReporter
public class DefaultConfigReporter extends Object implements ConfigReporter
-
-
Constructor Summary
Constructors Constructor Description DefaultConfigReporter()
Constructs a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
report()
Returns report.static String
report(ConfigReportSupport subject)
Returns a configuration report for the specified subject.ConfigReporter
section(String name)
Creates a new sub-section of this report.void
value(String key, Object value)
Add the specified value to this report.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.hekate.core.report.ConfigReporter
section
-
-
-
-
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 interfaceConfigReporter
- Parameters:
key
- Key.value
- Value.
-
section
public ConfigReporter section(String name)
Description copied from interface:ConfigReporter
Creates a new sub-section of this report.- Specified by:
section
in interfaceConfigReporter
- Parameters:
name
- Section name.- Returns:
- Section.
-
-