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
public class AfterLoadEvent<T> extends CosmosMappingEvent<JsonNode>
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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description AfterLoadEvent(JsonNode document, Class<T> type, String containerName)Creates a newAfterLoadEventfor the givenJsonNode, type and collectionName.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<T>getType()Returns the type for which theAfterLoadEventshall be invoked for.-
Methods inherited from class com.azure.spring.data.cosmos.core.mapping.event.CosmosMappingEvent
getContainerName, getDocument, getSource
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Method Detail
-
getType
public Class<T> getType()
Returns the type for which theAfterLoadEventshall be invoked for.- Returns:
- never null.
-
-