Class AbstractCouchbaseEventListener<E>
java.lang.Object
org.springframework.data.couchbase.core.mapping.event.AbstractCouchbaseEventListener<E>
- All Implemented Interfaces:
EventListener
,ApplicationListener<CouchbaseMappingEvent<?>>
- Direct Known Subclasses:
LoggingEventListener
,ValidatingCouchbaseEventListener
public class AbstractCouchbaseEventListener<E>
extends Object
implements ApplicationListener<CouchbaseMappingEvent<?>>
Base class to implement domain class specific
ApplicationListener
s.- Author:
- Jon Brisbin, Oliver Gierke, Martin Baumgartner, Michael Nitschinger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onAfterDelete
(Object source, CouchbaseDocument doc) void
onAfterSave
(E source, CouchbaseDocument doc) void
onApplicationEvent
(CouchbaseMappingEvent<?> event) void
onBeforeConvert
(E source) void
onBeforeDelete
(Object source, CouchbaseDocument doc) void
onBeforeSave
(E source, CouchbaseDocument doc) 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
-
AbstractCouchbaseEventListener
public AbstractCouchbaseEventListener()
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEvent
in interfaceApplicationListener<E>
-
onBeforeConvert
-
onBeforeSave
-
onAfterSave
-
onAfterDelete
-
onBeforeDelete
-