Class AbstractCosmosEventListener<E>

  • All Implemented Interfaces:
    EventListener, org.springframework.context.ApplicationListener<CosmosMappingEvent<?>>

    public abstract class AbstractCosmosEventListener<E>
    extends Object
    implements org.springframework.context.ApplicationListener<CosmosMappingEvent<?>>
    Abstract Event Listener. Can be extended and registered as a bean to capture spring application events 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/AbstractMongoEventListener.java
    • Method Detail

      • onApplicationEvent

        public void onApplicationEvent​(CosmosMappingEvent<?> event)
        Specified by:
        onApplicationEvent in interface org.springframework.context.ApplicationListener<E>