Class BeforeSaveEvent<E>

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.data.mongodb.core.mapping.event.MongoMappingEvent<E>
org.springframework.data.mongodb.core.mapping.event.BeforeSaveEvent<E>
All Implemented Interfaces:
Serializable

public class BeforeSaveEvent<E> extends MongoMappingEvent<E>
MongoMappingEvent triggered before save of a document.
Author:
Jon Brisbin, Christoph Strobl, Mark Paluch
See Also:
  • Constructor Details

    • BeforeSaveEvent

      public BeforeSaveEvent(E source, org.bson.Document document, String collectionName)
      Creates new BeforeSaveEvent.
      Parameters:
      source - must not be null.
      document - must not be null.
      collectionName - must not be null.
      Since:
      1.8