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 newAuditingEventListener
using the givenMappingContext
andAuditingHandler
provided by the givenObjectFactory
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onApplicationEvent
(CouchbaseMappingEvent<?> event) (non-Javadoc)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
-
AuditingEventListener
public AuditingEventListener() -
AuditingEventListener
Creates a newAuditingEventListener
using the givenMappingContext
andAuditingHandler
provided by the givenObjectFactory
. Registered in CouchbaseAuditingRegistrar- Parameters:
auditingHandlerFactory
- must not be null.
-
-
Method Details
-
onApplicationEvent
(non-Javadoc)- Specified by:
onApplicationEvent
in interfaceApplicationListener<CouchbaseMappingEvent<?>>
-