Module spring.data.mongodb
Class AfterLoadEvent<T>
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.data.mongodb.core.mapping.event.MongoMappingEvent<org.bson.Document>
org.springframework.data.mongodb.core.mapping.event.AfterLoadEvent<T>
- All Implemented Interfaces:
Serializable
Event to be triggered after loading
Documents to be mapped onto a given type.- Author:
- Oliver Gierke, Jon Brisbin, Christoph Leiter, Christoph Strobl, Mark Paluch
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionAfterLoadEvent(org.bson.Document document, Class<T> type, String collectionName) Creates a newAfterLoadEventfor the givenDocument, type and collectionName. -
Method Summary
Modifier and TypeMethodDescriptiongetType()Returns the type for which theAfterLoadEventshall be invoked for.Methods inherited from class org.springframework.data.mongodb.core.mapping.event.MongoMappingEvent
getCollectionName, getDocument, getSourceMethods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
AfterLoadEvent
Creates a newAfterLoadEventfor the givenDocument, type and collectionName.- Parameters:
document- must not be null.type- must not be null.collectionName- must not be null.- Since:
- 1.8
-
-
Method Details
-
getType
Returns the type for which theAfterLoadEventshall be invoked for.- Returns:
- never null.
-