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
Document
s 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 newAfterLoadEvent
for the givenDocument
, type and collectionName. -
Method Summary
Modifier and TypeMethodDescriptiongetType()
Returns the type for which theAfterLoadEvent
shall be invoked for.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
-
AfterLoadEvent
Creates a newAfterLoadEvent
for 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 theAfterLoadEvent
shall be invoked for.- Returns:
- never null.
-