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 TypeMethodDescriptionvoid
onBegin()
Called before source parsing has started.void
Called after all sources are handled.void
Handles a parsed source file.
-
Constructor Details
-
UniqueSourceCallback
-
-
Method Details
-
onBegin
Description copied from interface:SourceCallback
Called before source parsing has started.- Specified by:
onBegin
in interfaceSourceCallback
- Throws:
ProcessingException
- if processing failsIOException
- if an I/O error occurs
-
onSource
Description copied from interface:SourceCallback
Handles a parsed source file.- Specified by:
onSource
in 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:SourceCallback
Called after all sources are handled.- Specified by:
onComplete
in interfaceSourceCallback
- Throws:
ProcessingException
- if processing failsIOException
- if an I/O error occurs
-