|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EventHandler<ContextType,EventType>
Abstraction to allow event handling logic to be componentized.
| Method Summary | |
|---|---|
boolean |
accept(Object event)
Returns true if this handler can consume the given event. |
void |
handle(EventType event)
Handles the given event. |
void |
init(ContextType context)
Called to initialize the handler w/context. |
| Method Detail |
|---|
void init(ContextType context)
boolean accept(Object event)
void handle(EventType event)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||