Package org.scijava.event.bushe
Interface EventSubscriber<T>
-
- All Known Subinterfaces:
EventSubscriber<E>
public interface EventSubscriber<T>Callback interface for class-based subscribers of anEventService.- Author:
- Michael Bushe michael@bushe.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonEvent(T event)Handle a published event.
-
-
-
Method Detail
-
onEvent
void onEvent(T event)
Handle a published 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)andEventService.subscribeExactlyStrongly(Class, EventSubscriber).- Parameters:
event- The Object that is being published.
-
-