Interface AppEventHandlerRegistrar

All Known Implementing Classes:
SimpleAppEventManager

public interface AppEventHandlerRegistrar
API for registering AppEventHandler instances with topics.

This is similar in spirit to the OSGI org.osgi.service.event.EventAdmin service, but handlers are explicitly registered to work outside of OSGi environments.

Since:
2.0
Version:
1.0
Author:
matt
  • Method Details

    • registerEventHandler

      void registerEventHandler(AppEventHandler handler, String... topics)
      Register a handler for a set of topics.
      Parameters:
      handler - the handler
      topics - the topics to regsiter
    • deregisterEventHandler

      void deregisterEventHandler(AppEventHandler handler)
      Deregister a handler from all topics.
      Parameters:
      handler - the handler to deregister