类 AuditApplicationEvent
- java.lang.Object
- java.util.EventObject
- org.springframework.context.ApplicationEvent
- org.springframework.boot.actuate.audit.listener.AuditApplicationEvent
- 所有已实现的接口:
Serializable
public class AuditApplicationEvent extends org.springframework.context.ApplicationEvent
SpringApplicationEvent
to encapsulateAuditEvent
s.- 另请参阅:
- 序列化表格
字段概要
从类继承的字段 java.util.EventObject
source
构造器概要
构造器 构造器 说明 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
.
构造器详细资料
AuditApplicationEvent
public AuditApplicationEvent(String principal, String type, Map<String,Object> data)
Create a newAuditApplicationEvent
that wraps a newly createdAuditEvent
.- 参数:
principal
- the principaltype
- the event typedata
- the event data- 另请参阅:
AuditEvent(String, String, Map)
AuditApplicationEvent
public AuditApplicationEvent(String principal, String type, String... data)
Create a newAuditApplicationEvent
that wraps a newly createdAuditEvent
.- 参数:
principal
- the principaltype
- the event typedata
- the event data- 另请参阅:
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
.- 参数:
timestamp
- the timestampprincipal
- the principaltype
- the event typedata
- the event data- 另请参阅:
AuditEvent(Instant, String, String, Map)
AuditApplicationEvent
public AuditApplicationEvent(AuditEvent auditEvent)
Create a newAuditApplicationEvent
that wraps the specifiedAuditEvent
.- 参数:
auditEvent
- the source of this event
方法详细资料
getAuditEvent
public AuditEvent getAuditEvent()
Get the audit event.- 返回:
- the audit event