Class ChainingSourceCallback
java.lang.Object
org.eluder.coveralls.maven.plugin.source.ChainingSourceCallback
- All Implemented Interfaces:
SourceCallback
- Direct Known Subclasses:
CoverageTracingLogger
Source callback handler that allows chaining multiple callback handlers. Chained callback
handler is executed after this callback.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidonBegin()Called before source parsing has started.protected voidDefaults to no-op implementation.final voidCalled after all sources are handled.protected voidDefaults to no-op implementation.final voidHandles a parsed source file.protected abstract voidonSourceInternal(Source source) On source internal.
-
Constructor Details
-
ChainingSourceCallback
-
-
Method Details
-
onBegin
Description copied from interface:SourceCallbackCalled before source parsing has started.- Specified by:
onBeginin interfaceSourceCallback- Throws:
ProcessingException- if processing failsIOException- if an I/O error occurs
-
onSource
Description copied from interface:SourceCallbackHandles a parsed source file.- Specified by:
onSourcein interfaceSourceCallback- Parameters:
source- the source file- Throws:
ProcessingException- if further processing of the source failsIOException- if an I/O error occurs
-
onComplete
Description copied from interface:SourceCallbackCalled after all sources are handled.- Specified by:
onCompletein interfaceSourceCallback- Throws:
ProcessingException- if processing failsIOException- if an I/O error occurs
-
onBeginInternal
Defaults to no-op implementation.- Throws:
ProcessingException- if processing failsIOException- if an I/O error occurs- See Also:
-
onSourceInternal
On source internal.- Parameters:
source- the source file- Throws:
ProcessingException- if further processing of the source failsIOException- if an I/O error occurs- See Also:
-
onCompleteInternal
Defaults to no-op implementation.- Throws:
ProcessingException- if processing failsIOException- if an I/O error occurs- See Also:
-