Class ModuleEventsDispatcher

  • All Implemented Interfaces:
    WriteActionListener

    public class ModuleEventsDispatcher
    extends Object
    implements WriteActionListener
    The class is responsible for listening SRepositoryListener events like moduleAdded, moduleRemoved, etc., and dispatching batch (group) events to listeners. It listens the start and finish of write action. It starts batching events at the start of write action and yields the result at the end of write action.

    The class also supports pause/resume scenario to postpone dispatch of collected events to an appropriate moment. In fact, it's rather non-knowingly-inappropriate moment, as any first write action after resume dispatches all collected events.

    See Also:
    ModelAccess.runWriteAction(Runnable)
    • Constructor Detail

    • Method Detail

      • init

        public void init()
      • dispose

        public void dispose()
      • pause

        public void pause()
      • proceed

        public void proceed()
      • flush

        public boolean flush()
      • addRepositoryBatchEventsListener

        public final void addRepositoryBatchEventsListener​(SRepositoryBatchListener listener)
      • removeRepositoryBatchEventsListener

        public final void removeRepositoryBatchEventsListener​(SRepositoryBatchListener listener)