org.springframework.data.mongodb.core.mapping.event

Class AfterLoadEvent<T>

  • All Implemented Interfaces:
    Serializable


    public class AfterLoadEvent<T>
    extends MongoMappingEvent<org.bson.Document>
    Event to be triggered after loading Documents to be mapped onto a given type.
    Author:
    Oliver Gierke, Jon Brisbin, Christoph Leiter, Christoph Strobl, Mark Paluch
    See Also:
    Serialized Form
    • Constructor Detail

      • AfterLoadEvent

        public AfterLoadEvent(org.bson.Document document,
                              Class<T> type,
                              String collectionName)
        Creates a new AfterLoadEvent for the given Document, type and collectionName.
        Parameters:
        document - must not be null.
        type - must not be null.
        collectionName - must not be null.
        Since:
        1.8
    • Method Detail

      • getType

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