Interface AuditListener
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
DefaultLogger
,MetadataGeneratorLogger
,SarifLogger
,SeverityLevelCounter
,XMLLogger
,XpathFileGeneratorAuditListener
Listener in charge of receiving events from the Checker.
Typical events sequence is:
auditStarted (fileStarted (addError)* fileFinished )* auditFinished
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addError
(AuditEvent event) Notify that an audit error was discovered on a specific file.void
addException
(AuditEvent event, Throwable throwable) Notify that an exception happened while performing audit.void
auditFinished
(AuditEvent event) Notify that the audit is finished.void
auditStarted
(AuditEvent event) Notify that the audit is about to start.void
fileFinished
(AuditEvent event) Notify that audit is finished on a specific file.void
fileStarted
(AuditEvent event) Notify that audit is about to start on a specific file.
-
Method Details
-
auditStarted
Notify that the audit is about to start.- Parameters:
event
- the event details
-
auditFinished
Notify that the audit is finished.- Parameters:
event
- the event details
-
fileStarted
Notify that audit is about to start on a specific file.- Parameters:
event
- the event details
-
fileFinished
Notify that audit is finished on a specific file.- Parameters:
event
- the event details
-
addError
Notify that an audit error was discovered on a specific file.- Parameters:
event
- the event details
-
addException
Notify that an exception happened while performing audit.- Parameters:
event
- the event detailsthrowable
- details of the exception
-