Class MongoMappingEventPublisher

All Implemented Interfaces:

public class MongoMappingEventPublisher extends Object implements ApplicationEventPublisher
An implementation of ApplicationEventPublisher that will only fire MappingContextEvents for use by the index creator when MongoTemplate is used 'stand-alone', that is not declared inside a Spring ApplicationContext. Declare MongoTemplate inside an ApplicationContext to enable the publishing of all persistence events such as AfterLoadEvent, AfterSaveEvent, etc.
Jon Brisbin, Oliver Gierke, Mark Paluch