Interface EventListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
CompositeEventListener

public interface EventListener
extends java.util.EventListener
This interface is implemented by clients who want to listen for events.
  • Method Summary

    Modifier and Type Method Description
    void processEvent​(Event event)
    This method is called for each event that is generated.
  • Method Details

    • processEvent

      void processEvent​(Event event)
      This method is called for each event that is generated. With the event's ID it is possible to react to certain events. Events can also simply be recorded and presented to a user. It is possible to throw an (unchecked) exception if the processing needs to be aborted because some special event occurred. This way the client can configure the behaviour of the observed application.
      Parameters:
      event - the event