Class AuditingEventListener
java.lang.Object
org.springframework.data.couchbase.core.mapping.event.AuditingEventListener
- All Implemented Interfaces:
EventListener
,ApplicationListener<CouchbaseMappingEvent<Object>>
public class AuditingEventListener
extends Object
implements ApplicationListener<CouchbaseMappingEvent<Object>>
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
ConstructorDescriptionAuditingEventListener
(ObjectFactory<Object> auditingHandlerFactory) Creates a newAuditingEventListener
using the givenMappingContext
andAuditingHandler
provided by the givenObjectFactory
. -
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
-
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
- Specified by:
onApplicationEvent
in interfaceApplicationListener<CouchbaseMappingEvent<Object>>
-