net.ranides.assira.events
Interface EventListener<T extends Event>

Type Parameters:
T - typ obsługiwanych zdarzeń
All Known Subinterfaces:
Configuration, EventRouter, Observable
All Known Implementing Classes:
AbstractConfiguration, EventLockQue, EventLockUnsafe, EventRouterDispatcher, EventRouterThread, JSONConfiguration, NamedEventListener, NamedEventRouter, ReflectEventListener, SwingEventListener, XMLConfiguration

public interface EventListener<T extends Event>

Interfejs reprezentujący obiekt nasłuchujący na wystąpienie zdarzeń określonej klasy (lub klasy pochodnej).

Author:
ranides

Method Summary
 void handleEvent(T event)
          Metoda implementująca reakcję na zdarzenie.
 

Method Detail

handleEvent

void handleEvent(T event)
Metoda implementująca reakcję na zdarzenie. Należy zwrócić uwagę, że wątek, w którym metoda zostanie wywołana, może być trudny do ustalenia.

Dokładniej rzecz ujmując: o tym, w jakim wątku zostanie wywołana metoda decyduje EventRouter, do którego Listener został podpięty. Jeśli podpięto obiekt do wielu EventRouter'ów, to każdy może zostać wywołany w zupełnie innym kontekście.

Parameters:
event -


Copyright © 2013. All Rights Reserved.