public interface Reporter
GenerationReporter. many default methods are just used to give the user
a better callable interface and should not be implemented by an extending class.| Modifier and Type | Method and Description |
|---|---|
void |
report(ReportLevel level,
Report report)
Reports the given
Report at the specified level. |
void |
report(ReportLevel level,
java.util.function.Supplier<Report> reportSupplier)
This method has the same intentions as
report(ReportLevel, Report), but a supplier is given. |
default void |
reportDebug(Report report)
Calls
report(ReportLevel, Report) with the level ReportLevel.DEBUG and the given report. |
default void |
reportDebug(java.util.function.Supplier<Report> reportSupplier)
Calls
report(ReportLevel, Supplier) with the level ReportLevel.DEBUG and the given supplier. |
default void |
reportError(Report report)
Calls
report(ReportLevel, Report) with the level ReportLevel.ERROR and the given report. |
default void |
reportError(java.util.function.Supplier<Report> reportSupplier)
Calls
report(ReportLevel, Supplier) with the level ReportLevel.ERROR and the given supplier. |
default void |
reportFatal(Report report)
Calls
report(ReportLevel, Report) with the level ReportLevel.FATAL and the given report. |
default void |
reportFatal(java.util.function.Supplier<Report> reportSupplier)
Calls
report(ReportLevel, Supplier) with the level ReportLevel.FATAL and the given supplier. |
default void |
reportInfo(Report report)
Calls
report(ReportLevel, Report) with the level ReportLevel.INFO and the given report. |
default void |
reportInfo(java.util.function.Supplier<Report> reportSupplier)
Calls
report(ReportLevel, Supplier) with the level ReportLevel.INFO and the given supplier. |
default void |
reportTrace(Report report)
Calls
report(ReportLevel, Report) with the level ReportLevel.TRACE and the given report. |
default void |
reportTrace(java.util.function.Supplier<Report> reportSupplier)
Calls
report(ReportLevel, Supplier) with the level ReportLevel.TRACE and the given supplier. |
default void |
reportWarn(Report report)
Calls
report(ReportLevel, Report) with the level ReportLevel.WARN and the given report. |
default void |
reportWarn(java.util.function.Supplier<Report> reportSupplier)
Calls
report(ReportLevel, Supplier) with the level ReportLevel.WARN and the given supplier. |
default void reportTrace(Report report)
report(ReportLevel, Report) with the level ReportLevel.TRACE and the given report.report - what should be reported at level ReportLevel.TRACEdefault void reportTrace(java.util.function.Supplier<Report> reportSupplier)
report(ReportLevel, Supplier) with the level ReportLevel.TRACE and the given supplier.reportSupplier - what should be reported if the reporter listens at level ReportLevel.TRACEdefault void reportDebug(Report report)
report(ReportLevel, Report) with the level ReportLevel.DEBUG and the given report.report - what should be reported at level ReportLevel.DEBUGdefault void reportDebug(java.util.function.Supplier<Report> reportSupplier)
report(ReportLevel, Supplier) with the level ReportLevel.DEBUG and the given supplier.reportSupplier - what should be reported if the reporter listens at level ReportLevel.DEBUGdefault void reportInfo(Report report)
report(ReportLevel, Report) with the level ReportLevel.INFO and the given report.report - what should be reported at level ReportLevel.INFOdefault void reportInfo(java.util.function.Supplier<Report> reportSupplier)
report(ReportLevel, Supplier) with the level ReportLevel.INFO and the given supplier.reportSupplier - what should be reported if the reporter listens at level ReportLevel.INFOdefault void reportWarn(Report report)
report(ReportLevel, Report) with the level ReportLevel.WARN and the given report.report - what should be reported at level ReportLevel.WARNdefault void reportWarn(java.util.function.Supplier<Report> reportSupplier)
report(ReportLevel, Supplier) with the level ReportLevel.WARN and the given supplier.reportSupplier - what should be reported if the reporter listens at level ReportLevel.WARNdefault void reportError(Report report)
report(ReportLevel, Report) with the level ReportLevel.ERROR and the given report.report - what should be reported at level ReportLevel.ERRORdefault void reportError(java.util.function.Supplier<Report> reportSupplier)
report(ReportLevel, Supplier) with the level ReportLevel.ERROR and the given supplier.reportSupplier - what should be reported if the reporter listens at level ReportLevel.ERRORdefault void reportFatal(Report report)
report(ReportLevel, Report) with the level ReportLevel.FATAL and the given report.report - what should be reported at level ReportLevel.FATALdefault void reportFatal(java.util.function.Supplier<Report> reportSupplier)
report(ReportLevel, Supplier) with the level ReportLevel.FATAL and the given supplier.reportSupplier - what should be reported if the reporter listens at level ReportLevel.FATALvoid report(ReportLevel level, Report report)
Report at the specified level. The levels are used so that any Reporter may
filter information it wishes to receive.level - the of the report. Must not be nullreport - the report itself. Must not be nullvoid report(ReportLevel level, java.util.function.Supplier<Report> reportSupplier)
report(ReportLevel, Report), but a supplier is given.
If any big calculations need to be performed for a Report generation this method can be used to guarantee
lazy evaluation only if a Reporter is really interested in the report of the given level.level - the of the report. Must not be nullreportSupplier - a supplier which can compute the real report. It and the returned Report must not
be nullCopyright © 2019. All rights reserved.