Compartilhar via


AfterLoadEvent<T> Class

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 collectionName.

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

org.springframework.context.ApplicationEvent.getTimestamp

Constructor Details

AfterLoadEvent

public AfterLoadEvent(JsonNode document, Class type, String containerName)

Creates a new AfterLoadEvent<T> 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 getType()

Returns the type for which the AfterLoadEvent<T> shall be invoked for.

Returns:

never null.

Applies to