Class EventCollector

java.lang.Object
com.logicaldoc.core.communication.EventCollector

@Component("eventCollector") public class EventCollector extends Object
A collector of events that can distribute them to a set of listeners
Since:
7.7.1
Author:
Marco Meschieri - LogicalDOC
  • Constructor Details

    • EventCollector

      public EventCollector()
  • Method Details

    • get

      public static EventCollector get()
    • addListener

      public void addListener(EventListener listener)
    • removeListener

      public void removeListener(EventListener listener)
    • newEvent

      public void newEvent(History history)
      Notifies all the listeners in another thread
      Parameters:
      history - the history to notify
    • getConfig

      public ContextProperties getConfig()
    • setConfig

      public void setConfig(ContextProperties config)
    • isEnabled

      public static boolean isEnabled()