Class AfterLoadEvent<T>
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
com.azure.spring.data.cosmos.core.mapping.event.CosmosMappingEvent<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
ConstructorsConstructorDescriptionAfterLoadEvent(JsonNode document, Class<T> type, String containerName) Creates a newAfterLoadEventfor the givenJsonNode, type and collectionName. -
Method Summary
Modifier and TypeMethodDescriptiongetType()Returns the type for which theAfterLoadEventshall be invoked for.Methods inherited from class com.azure.spring.data.cosmos.core.mapping.event.CosmosMappingEvent
getContainerName, getDocument, getSourceMethods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
AfterLoadEvent
Creates a newAfterLoadEventfor 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 theAfterLoadEventshall be invoked for.- Returns:
- never null.
-