Interface AuditListener
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
ChecksAndFilesSuppressionFileGeneratorAuditListener,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 TypeMethodDescriptionvoidaddError(AuditEvent event) Notify that an audit error was discovered on a specific file.voidaddException(AuditEvent event, Throwable throwable) Notify that an exception happened while performing audit.voidauditFinished(AuditEvent event) Notify that the audit is finished.voidauditStarted(AuditEvent event) Notify that the audit is about to start.voidfileFinished(AuditEvent event) Notify that audit is finished on a specific file.voidfileStarted(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
-