Interface PostEventPublisher

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface PostEventPublisher
Narrow SPI the PostingEngine uses to emit DocumentPostedEvent/ DocumentUnpostedEvent after a post/unpost transaction commits.

The core module deliberately does not depend on spring-context, so it cannot reference ApplicationEventPublisher directly. onec-framework-starter provides the bridge implementation (a lambda over ApplicationEventPublisher::publishEvent) so application code can simply @EventListener for these events — the first-class, Spring-bean-reachable "after post" extension point that doesn't require the Kafka outbox.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    publish(Object event)
     
  • Method Details

    • publish

      void publish(Object event)