Class UniqueSourceCallback
java.lang.Object
org.eluder.coveralls.maven.plugin.source.UniqueSourceCallback
- All Implemented Interfaces:
SourceCallback
Source callback that tracks passed by source files and provides only unique
source files to the delegate. Note that the implementation is not thread
safe so the
onSource(org.eluder.coveralls.maven.plugin.domain.Source)
can be called only from single thread concurrently.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonBegin()Called before source parsing has started.voidCalled after all sources are handled.voidHandles a parsed source file.
-
Constructor Details
-
UniqueSourceCallback
-
-
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
-