Class DomainEventProducerListener

java.lang.Object
org.nuxeo.ecm.core.event.stream.DomainEventProducerListener
All Implemented Interfaces:
javax.transaction.Synchronization, EventListener

public class DomainEventProducerListener extends Object implements EventListener, javax.transaction.Synchronization
Dispatches core events to domain event producers.
Since:
11.4
  • Field Details

  • Constructor Details

    • DomainEventProducerListener

      public DomainEventProducerListener()
  • Method Details

    • handleEvent

      public void handleEvent(Event event)
      Description copied from interface: EventListener
      Handle the given event. The listener can cancel the event by calling Event.cancel()
      Specified by:
      handleEvent in interface EventListener
      Parameters:
      event - the event
    • initDomainEventProducers

      protected void initDomainEventProducers()
    • cleanDomainEventProducers

      protected void cleanDomainEventProducers()
    • beforeCompletion

      public void beforeCompletion()
      Specified by:
      beforeCompletion in interface javax.transaction.Synchronization
    • afterCompletion

      public void afterCompletion(int status)
      Specified by:
      afterCompletion in interface javax.transaction.Synchronization
    • produceDomainEvents

      protected void produceDomainEvents()
    • registerSynchronization

      protected boolean registerSynchronization(javax.transaction.Synchronization sync) throws javax.transaction.RollbackException
      Throws:
      javax.transaction.RollbackException