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

public class AfterLoadEvent<T> 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
See Also:
  • Constructor Details

    • AfterLoadEvent

      public AfterLoadEvent(com.fasterxml.jackson.databind.JsonNode document, Class<T> type, String containerName)
      Creates a new AfterLoadEvent for the given JsonNode, type and collectionName.
      Parameters:
      document - must not be null.
      type - must not be null.
      containerName - must not be null.
  • Method Details

    • getType

      public Class<T> getType()
      Returns the type for which the AfterLoadEvent shall be invoked for.
      Returns:
      never null.