Class AuditApplicationEvent
- java.lang.Object
- java.util.EventObject
- org.springframework.context.ApplicationEvent
- org.springframework.boot.actuate.audit.listener.AuditApplicationEvent
- All Implemented Interfaces:
Serializable
public class AuditApplicationEvent extends org.springframework.context.ApplicationEvent
SpringApplicationEvent
to encapsulateAuditEvent
s.- See Also:
- Serialized Form
Field Summary
Fields inherited from class java.util.EventObject
source
Constructor Summary
Constructors Constructor Description AuditApplicationEvent(String principal, String type, String... data)
Create a newAuditApplicationEvent
that wraps a newly createdAuditEvent
.AuditApplicationEvent(String principal, String type, Map<String,Object> data)
Create a newAuditApplicationEvent
that wraps a newly createdAuditEvent
.AuditApplicationEvent(Instant timestamp, String principal, String type, Map<String,Object> data)
Create a newAuditApplicationEvent
that wraps a newly createdAuditEvent
.AuditApplicationEvent(AuditEvent auditEvent)
Create a newAuditApplicationEvent
that wraps the specifiedAuditEvent
.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuditEvent
getAuditEvent()
Get the audit event.Methods inherited from class java.util.EventObject
getSource, toString
Constructor Detail
AuditApplicationEvent
public AuditApplicationEvent(String principal, String type, Map<String,Object> data)
Create a newAuditApplicationEvent
that wraps a newly createdAuditEvent
.- Parameters:
principal
- the principaltype
- the event typedata
- the event data- See Also:
AuditEvent(String, String, Map)
AuditApplicationEvent
public AuditApplicationEvent(String principal, String type, String... data)
Create a newAuditApplicationEvent
that wraps a newly createdAuditEvent
.- Parameters:
principal
- the principaltype
- the event typedata
- the event data- See Also:
AuditEvent(String, String, String...)
AuditApplicationEvent
public AuditApplicationEvent(Instant timestamp, String principal, String type, Map<String,Object> data)
Create a newAuditApplicationEvent
that wraps a newly createdAuditEvent
.- Parameters:
timestamp
- the timestampprincipal
- the principaltype
- the event typedata
- the event data- See Also:
AuditEvent(Instant, String, String, Map)
AuditApplicationEvent
public AuditApplicationEvent(AuditEvent auditEvent)
Create a newAuditApplicationEvent
that wraps the specifiedAuditEvent
.- Parameters:
auditEvent
- the source of this event
Method Detail
getAuditEvent
public AuditEvent getAuditEvent()
Get the audit event.- Returns:
- the audit event