java.lang.Object
fr.paris.lutece.plugins.wiki.modules.ai.service.event.WikiEventService

@ApplicationScoped public class WikiEventService extends Object
Service for managing Wiki AI events and subscriptions
  • Constructor Details

    • WikiEventService

      public WikiEventService()
  • Method Details

    • subscribe

      public AutoCloseable subscribe(Consumer<WikiEvent> consumer)
      Subscribe to wiki events
      Parameters:
      consumer - the event consumer
      Returns:
      an AutoCloseable to unsubscribe
    • dispatchEvent

      public void dispatchEvent(WikiEvent event)
      Dispatch an event to all subscribers
      Parameters:
      event - the event to dispatch