public interface EventSubscriber<T>
EventService.| Modifier and Type | Method and Description |
|---|---|
void |
onEvent(T event)
Handle a published event.
|
void onEvent(T event)
The EventService calls this method on each publication of an object that matches the
class or interface passed to one of the EventService's class-based subscribe methods, specifically, EventService.subscribe(Class,EventSubscriber) EventService.subscribeExactly(Class,EventSubscriber)
EventService.subscribeStrongly(Class,EventSubscriber) and EventService.subscribeExactlyStrongly(Class,
EventSubscriber).
event - The Object that is being published.Copyright © 2009–2023 SciJava. All rights reserved.