public class AuditDataEventListener extends Object implements DataStoreEventListener<DataStoreEvent>
event listener context to add support for auditing entities as per the specifications set forth by Spring
Data Commons.| Constructor and Description |
|---|
AuditDataEventListener(org.springframework.data.domain.AuditorAware auditorAware) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.data.domain.AuditorAware |
getAuditorAware() |
void |
onEvent(DataStoreEvent event)
Will be called by the data store when a relevant event happens
|
public AuditDataEventListener(org.springframework.data.domain.AuditorAware auditorAware)
public void onEvent(DataStoreEvent event)
DataStoreEventListeneronEvent in interface DataStoreEventListener<DataStoreEvent>event - the event that has taken placepublic org.springframework.data.domain.AuditorAware getAuditorAware()
Copyright © 2014–2016. All rights reserved.