com.stuffthathappens.classbus
Interface EventSubscriber<T>


public interface EventSubscriber<T>

To receive events, you must implement this interface. An "event" is actually any Java object. Subscribers are only notified if both the channel and event Matcher objects pass.

Author:
Eric M. Burke
See Also:
EventService.subscribe(Matcher, Matcher, EventSubscriber), MatcherMaker

Method Summary
 void onEvent(T event)
          Invoked if the event passes the channel and event matchers.
 

Method Detail

onEvent

void onEvent(T event)
Invoked if the event passes the channel and event matchers.

Parameters:
event - the object being delivered via the "bus".