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
Spring
ApplicationEvent to encapsulate AuditEvents.- Since:
- 1.0.0
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionAuditApplicationEvent(String principal, String type, String... data) Create a newAuditApplicationEventthat wraps a newly createdAuditEvent.Create a newAuditApplicationEventthat wraps a newly createdAuditEvent.Create a newAuditApplicationEventthat wraps a newly createdAuditEvent.AuditApplicationEvent(AuditEvent auditEvent) Create a newAuditApplicationEventthat wraps the specifiedAuditEvent. -
Method Summary
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
AuditApplicationEvent
Create a newAuditApplicationEventthat wraps a newly createdAuditEvent.- Parameters:
principal- the principaltype- the event typedata- the event data- See Also:
-
AuditApplicationEvent
Create a newAuditApplicationEventthat wraps a newly createdAuditEvent.- Parameters:
principal- the principaltype- the event typedata- the event data- See Also:
-
AuditApplicationEvent
public AuditApplicationEvent(Instant timestamp, String principal, String type, Map<String, Object> data) Create a newAuditApplicationEventthat wraps a newly createdAuditEvent.- Parameters:
timestamp- the timestampprincipal- the principaltype- the event typedata- the event data- See Also:
-
AuditApplicationEvent
Create a newAuditApplicationEventthat wraps the specifiedAuditEvent.- Parameters:
auditEvent- the source of this event
-
-
Method Details
-
getAuditEvent
Get the audit event.- Returns:
- the audit event
-