Module spring.data.mongodb
Class AbstractMongoEventListener<E>
java.lang.Object
org.springframework.data.mongodb.core.mapping.event.AbstractMongoEventListener<E>
- All Implemented Interfaces:
EventListener,ApplicationListener<MongoMappingEvent<?>>
- Direct Known Subclasses:
LoggingEventListener,ValidatingMongoEventListener
public abstract class AbstractMongoEventListener<E>
extends Object
implements ApplicationListener<MongoMappingEvent<?>>
Base class to implement domain class specific
ApplicationListeners.- Author:
- Jon Brisbin, Oliver Gierke, Martin Baumgartner, Christoph Strobl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonAfterConvert(AfterConvertEvent<E> event) CapturesAfterConvertEvent.voidonAfterDelete(AfterDeleteEvent<E> event) CapturesAfterDeleteEvent.voidonAfterLoad(AfterLoadEvent<E> event) CapturesAfterLoadEvent.voidonAfterSave(AfterSaveEvent<E> event) CapturesAfterSaveEvent.voidonApplicationEvent(MongoMappingEvent<?> event) voidonBeforeConvert(BeforeConvertEvent<E> event) CapturesBeforeConvertEvent.voidonBeforeDelete(BeforeDeleteEvent<E> event) CaptureBeforeDeleteEvent.voidonBeforeSave(BeforeSaveEvent<E> event) CapturesBeforeSaveEvent.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
-
AbstractMongoEventListener
public AbstractMongoEventListener()Creates a newAbstractMongoEventListener.
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceApplicationListener<E>
-
onBeforeConvert
CapturesBeforeConvertEvent.- Parameters:
event- never null.- Since:
- 1.8
-
onBeforeSave
CapturesBeforeSaveEvent.- Parameters:
event- will never be null.- Since:
- 1.8
-
onAfterSave
CapturesAfterSaveEvent.- Parameters:
event- will never be null.- Since:
- 1.8
-
onAfterLoad
CapturesAfterLoadEvent.- Parameters:
event- will never be null.- Since:
- 1.8
-
onAfterConvert
CapturesAfterConvertEvent.- Parameters:
event- will never be null.- Since:
- 1.8
-
onAfterDelete
CapturesAfterDeleteEvent.- Parameters:
event- will never be null.- Since:
- 1.8
-
onBeforeDelete
CaptureBeforeDeleteEvent.- Parameters:
event- will never be null.- Since:
- 1.8
-