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 Details

    • DatastoreAuditingEventListener

      public DatastoreAuditingEventListener(org.springframework.data.auditing.AuditingHandler datastoreAuditingHandler)
      Constructor.
      Parameters:
      datastoreAuditingHandler - the auditing handler to set auditing properties.
  • Method Details

    • onApplicationEvent

      public void onApplicationEvent(BeforeSaveEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<BeforeSaveEvent>