Class AfterLoadEvent<T>
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.azure.spring.data.cosmos.core.mapping.event.CosmosMappingEvent<com.fasterxml.jackson.databind.JsonNode>
com.azure.spring.data.cosmos.core.mapping.event.AfterLoadEvent<T>
- All Implemented Interfaces:
Serializable
Spring Application Event that fires for all reads after a document is loaded and before it is serialized to
a domain object
Ported to cosmos from spring-data-mongo
https://github.com/spring-projects/spring-data-mongodb/blob/main/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/mapping/event/AfterLoadEvent.java
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionAfterLoadEvent
(com.fasterxml.jackson.databind.JsonNode document, Class<T> type, String containerName) Creates a newAfterLoadEvent
for the givenJsonNode
, type and collectionName. -
Method Summary
Modifier and TypeMethodDescriptiongetType()
Returns the type for which theAfterLoadEvent
shall be invoked for.Methods inherited from class com.azure.spring.data.cosmos.core.mapping.event.CosmosMappingEvent
getContainerName, getDocument, getSource
Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
AfterLoadEvent
public AfterLoadEvent(com.fasterxml.jackson.databind.JsonNode document, Class<T> type, String containerName) Creates a newAfterLoadEvent
for the givenJsonNode
, type and collectionName.- Parameters:
document
- must not be null.type
- must not be null.containerName
- must not be null.
-
-
Method Details
-
getType
Returns the type for which theAfterLoadEvent
shall be invoked for.- Returns:
- never null.
-