Class 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
    • Constructor Detail

      • AfterLoadEvent

        public AfterLoadEvent​(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 Detail

      • getType

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