public class NullAuditLogger extends Object implements AuditLogger
AuditLogger that does nothing.| Modifier and Type | Field and Description |
|---|---|
static NullAuditLogger |
INSTANCE
Returns a singleton instance to this logger.
|
| Constructor and Description |
|---|
NullAuditLogger() |
| Modifier and Type | Method and Description |
|---|---|
void |
logFailed(Object command,
Throwable failureCause,
List<EventMessage> events)
Writes a failure entry to the audit logs.
|
void |
logSuccessful(Object command,
Object returnValue,
List<EventMessage> events)
Writes a success entry to the audit logs.
|
public static final NullAuditLogger INSTANCE
public void logSuccessful(Object command, Object returnValue, List<EventMessage> events)
logSuccessful in interface AuditLoggercommand - The command that has been handledreturnValue - The return value of the command handlerevents - The events that were generated during command handlingpublic void logFailed(Object command, Throwable failureCause, List<EventMessage> events)
logFailed in interface AuditLoggercommand - The command being executedfailureCause - The cause of the rollback. May be null if the rollback was not caused by an
exceptionevents - any events staged for storage or publishingCopyright © 2010-2014. All Rights Reserved.