T
- the type of the original eventpublic interface AuditEntryConverter<T>
Audited
event into a standard audit format.
Implementations must have a nullary (no argument) constructor and are intended to be lightweight, stateless classes. Converters are instantiated for each event and discarded after the event has been converted.
Modifier and Type | Method and Description |
---|---|
AuditEntry |
convert(T event,
AuditEntryBuilder builder)
Converts an
Audited event into a standard audit format. |
@Nonnull AuditEntry convert(@Nonnull T event, AuditEntryBuilder builder)
Audited
event into a standard audit format.builder
- an audit entry builder which has the source IP address set by the callerevent
- the original annotated eventCopyright © 2019 Atlassian. All rights reserved.