Package graphql.schema.diff.reporting
Class ChainedReporter
- java.lang.Object
-
- graphql.schema.diff.reporting.ChainedReporter
-
- All Implemented Interfaces:
DifferenceReporter
@PublicApi public class ChainedReporter extends java.lang.Object implements DifferenceReporter
A reporter that chains together one or more difference reporters
-
-
Constructor Summary
Constructors Constructor Description ChainedReporter(DifferenceReporter... reporters)
ChainedReporter(java.util.List<DifferenceReporter> reporters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onEnd()
Called when the difference operation if finishedvoid
report(DiffEvent differenceEvent)
Called to report a difference
-
-
-
Constructor Detail
-
ChainedReporter
public ChainedReporter(DifferenceReporter... reporters)
-
ChainedReporter
public ChainedReporter(java.util.List<DifferenceReporter> reporters)
-
-
Method Detail
-
report
public void report(DiffEvent differenceEvent)
Description copied from interface:DifferenceReporter
Called to report a difference- Specified by:
report
in interfaceDifferenceReporter
- Parameters:
differenceEvent
- the event describing the difference
-
onEnd
public void onEnd()
Description copied from interface:DifferenceReporter
Called when the difference operation if finished- Specified by:
onEnd
in interfaceDifferenceReporter
-
-