Class DatastoreAuditingEventListener
java.lang.Object
com.google.cloud.spring.data.datastore.repository.support.DatastoreAuditingEventListener
- All Implemented Interfaces:
EventListener
,org.springframework.context.ApplicationListener<BeforeSaveEvent>
public class DatastoreAuditingEventListener
extends Object
implements org.springframework.context.ApplicationListener<BeforeSaveEvent>
Auditing event listener that listens for
BeforeSaveEvent
.- Since:
- 1.2
-
Constructor Summary
ConstructorDescriptionDatastoreAuditingEventListener
(org.springframework.data.auditing.AuditingHandler datastoreAuditingHandler) Constructor. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
DatastoreAuditingEventListener
public DatastoreAuditingEventListener(org.springframework.data.auditing.AuditingHandler datastoreAuditingHandler) Constructor.- Parameters:
datastoreAuditingHandler
- the auditing handler to set auditing properties.
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEvent
in interfaceorg.springframework.context.ApplicationListener<BeforeSaveEvent>
-