Class BeforeConvertEvent<T>
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.data.mongodb.core.mapping.event.MongoMappingEvent<T>
org.springframework.data.mongodb.core.mapping.event.BeforeConvertEvent<T>
- All Implemented Interfaces:
Serializable
Event being thrown before a domain object is converted to be persisted.
- Author:
- Jon Brisbin, Oliver Gierke, Christoph Strobl, Mark Paluch
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionBeforeConvertEvent
(T source, String collectionName) Creates newBeforeConvertEvent
. -
Method Summary
Methods inherited from class org.springframework.data.mongodb.core.mapping.event.MongoMappingEvent
getCollectionName, getDocument, getSource
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
BeforeConvertEvent
Creates newBeforeConvertEvent
.- Parameters:
source
- must not be null.collectionName
- must not be null.- Since:
- 1.8
-