AfterLoadEvent<T> Class
- java.
lang. Object - java.
util. EventObject - org.
springframework. context. ApplicationEvent - com.
azure. spring. data. cosmos. core. mapping. event. CosmosMappingEvent<T> - com.
azure. spring. data. cosmos. core. mapping. event. AfterLoadEvent<T>
- com.
- com.
- org.
- java.
Type Parameters
- T
the type of the event.
public class AfterLoadEvent
extends CosmosMappingEvent<com.fasterxml.jackson.databind.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
Constructor Summary
Constructor | Description |
---|---|
AfterLoadEvent(JsonNode document, Class<T> type, String containerName) |
Creates a new AfterLoadEvent<T> for the given JsonNode, type and collection |
Method Summary
Modifier and Type | Method and Description |
---|---|
Class<T> |
getType()
Returns the type for which the AfterLoadEvent<T> shall be invoked for. |
Methods inherited from CosmosMappingEvent
Methods inherited from java.lang.Object
Methods inherited from java.util.EventObject
Methods inherited from org.springframework.context.ApplicationEvent
Constructor Details
AfterLoadEvent
public AfterLoadEvent(JsonNode document, Class
Creates a new AfterLoadEvent<T> for the given JsonNode, type and collectionName.
Parameters:
Method Details
getType
public Class
Returns the type for which the AfterLoadEvent<T> shall be invoked for.
Returns:
Applies to
Azure SDK for Java