|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EventHandler<EVENT,RESULT>
Declares the consumer of events.
Subclasses will get references to EventProducer instances and will register their EventListener to these. This gives
the control to the EventHandler at holding the references to the EventProducer, too. The EventHandler
can so decide to unregister at any given time.
Since the EventHandler is often used to hold controlling business logic this kind of component referencing will better
reflect the logic requirements.
| Method Summary | |
|---|---|
EventHandler<EVENT,RESULT> |
registerAtEventProducers()
Registers itself via EventListener instances at the internally hold references to EventProducer instances |
EventHandler<EVENT,RESULT> |
setEventProducers(Iterable<? extends EventProducer> eventProducers)
Sets a ordered List of EventProducer references to the EventHandler. |
EventHandler<EVENT,RESULT> |
unregisterAtEventProducers()
Unregisters all its EventListener from the EventProducer instances |
| Method Detail |
|---|
EventHandler<EVENT,RESULT> setEventProducers(Iterable<? extends EventProducer> eventProducers)
List of EventProducer references to the EventHandler.
eventProducers -
registerAtEventProducers(),
unregisterAtEventProducers()EventHandler<EVENT,RESULT> registerAtEventProducers()
EventListener instances at the internally hold references to EventProducer instances
unregisterAtEventProducers()EventHandler<EVENT,RESULT> unregisterAtEventProducers()
EventListener from the EventProducer instances
registerAtEventProducers()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||