de.phleisch.app.itsucks.event.impl
Class SynchronEventDispatcherImpl

java.lang.Object
  extended by de.phleisch.app.itsucks.event.impl.SynchronEventDispatcherImpl
All Implemented Interfaces:
EventDispatcher

public class SynchronEventDispatcherImpl
extends java.lang.Object
implements EventDispatcher


Constructor Summary
SynchronEventDispatcherImpl()
           
 
Method Summary
 void fireEvent(Event pEvent)
          Fires an event and dispatches it to all registered observers.
 void init()
          Initializes the Event dispatcher and starts the dispatch thread
 void registerObserver(EventObserver pObserver)
          Registers an new observer.
 void registerObserver(EventObserver pObserver, EventFilter pFilter)
          Registers an new observer.
 void shutdown()
          Shutdown the Event dispatcher.
 void unregisterObserver(EventObserver pObserver)
          Unregisters the given observer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynchronEventDispatcherImpl

public SynchronEventDispatcherImpl()
Method Detail

init

public void init()
Description copied from interface: EventDispatcher
Initializes the Event dispatcher and starts the dispatch thread

Specified by:
init in interface EventDispatcher

shutdown

public void shutdown()
Description copied from interface: EventDispatcher
Shutdown the Event dispatcher.

Specified by:
shutdown in interface EventDispatcher

registerObserver

public void registerObserver(EventObserver pObserver)
Description copied from interface: EventDispatcher
Registers an new observer. All events are dispatched to this observer.

Specified by:
registerObserver in interface EventDispatcher

registerObserver

public void registerObserver(EventObserver pObserver,
                             EventFilter pFilter)
Description copied from interface: EventDispatcher
Registers an new observer. All events are filtered by the given event filter.

Specified by:
registerObserver in interface EventDispatcher

unregisterObserver

public void unregisterObserver(EventObserver pObserver)
Description copied from interface: EventDispatcher
Unregisters the given observer.

Specified by:
unregisterObserver in interface EventDispatcher

fireEvent

public void fireEvent(Event pEvent)
Description copied from interface: EventDispatcher
Fires an event and dispatches it to all registered observers.

Specified by:
fireEvent in interface EventDispatcher


Copyright © 2010. All Rights Reserved.