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