Interface EventHandler
- All Superinterfaces:
EventListener
- All Known Implementing Classes:
ServicesEventHandler
An event handler receives events about things happening to
extensions and extension points. For example, when they
are registered or updated. An event handler is usually paired with
an
EventFilter
that sorts out which types of event that should be
sent to the event handler.- Version:
- 2.8
- Author:
- nicklas
- Last modified
- $Date: 2008-09-11 22:08:14 +0200 (to, 11 sep 2008) $
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleEvent
(EventType event, ExtensionPoint<?> extensionPoint, Extension<?> extension) Handle an event.
-
Method Details
-
handleEvent
Handle an event. Since the types of events are likely to expand in the future, we recommend that the event handler is written so that it only responds to specific event types or that it is paired with anEventFilter
that filters out undesired events.- Parameters:
event
- The event that happendextensionPoint
- The extension point that the extension extends, or that the event happened toextension
- The extension the event happend to, or null if the event happended to the extension point
-