net.sf.mmm.util.event.base
Class AbstractSynchronizedEventSource<E extends Event,L extends EventListener<E>>

java.lang.Object
  extended by net.sf.mmm.util.component.base.AbstractComponent
      extended by net.sf.mmm.util.component.base.AbstractLoggableComponent
          extended by net.sf.mmm.util.event.base.AbstractEventSource<E,L>
              extended by net.sf.mmm.util.event.base.AbstractSynchronizedEventSource<E,L>
Type Parameters:
E - is the templated type of the events to send.
L - is the templated type of the listeners that can be registered here and that will receive the sent events.
All Implemented Interfaces:
EventSource<E,L>
Direct Known Subclasses:
AbstractMultiThreadedEventSource

public abstract class AbstractSynchronizedEventSource<E extends Event,L extends EventListener<E>>
extends AbstractEventSource<E,L>

This class extends AbstractEventSource with the ability of synchronization and therefore is thread-safe.
It uses a ConcurrentLinkedQueue and therefore allows adding or removing of listeners during event-handling.

Since:
1.0.1
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Constructor Summary
AbstractSynchronizedEventSource()
          The constructor.
 
Method Summary
 
Methods inherited from class net.sf.mmm.util.event.base.AbstractEventSource
addListener, fireEvent, fireEvent, handleListenerError, removeListener
 
Methods inherited from class net.sf.mmm.util.component.base.AbstractLoggableComponent
doInitialize, getLogger, setLogger
 
Methods inherited from class net.sf.mmm.util.component.base.AbstractComponent
doInitialized, getInitializationState, initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSynchronizedEventSource

public AbstractSynchronizedEventSource()
The constructor.



Copyright © 2001-2010 mmm-Team. All Rights Reserved.