Class AuditingEventListener
java.lang.Object
org.springframework.data.couchbase.core.mapping.event.AuditingEventListener
- All Implemented Interfaces:
EventListener,ApplicationListener<CouchbaseMappingEvent<?>>
public class AuditingEventListener
extends Object
implements ApplicationListener<CouchbaseMappingEvent<?>>
Event listener to populate auditing related fields on an entity about to be saved.
- Author:
- Oliver Gierke, Simon Baslé, Mark Paluch, Michael Reiche
-
Constructor Summary
ConstructorsConstructorDescriptionAuditingEventListener(ObjectFactory<Object> auditingHandlerFactory) Creates a newAuditingEventListenerusing the givenMappingContextandAuditingHandlerprovided by the givenObjectFactory. -
Method Summary
Modifier and TypeMethodDescriptionvoidonApplicationEvent(CouchbaseMappingEvent<?> event) (non-Javadoc)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
-
AuditingEventListener
public AuditingEventListener() -
AuditingEventListener
Creates a newAuditingEventListenerusing the givenMappingContextandAuditingHandlerprovided by the givenObjectFactory. Registered in CouchbaseAuditingRegistrar- Parameters:
auditingHandlerFactory- must not be null.
-
-
Method Details
-
onApplicationEvent
(non-Javadoc)- Specified by:
onApplicationEventin interfaceApplicationListener<CouchbaseMappingEvent<?>>
-