| Implementation of
ListenerContainerIF that uses a reads/write lock to handle concurrency in a safe and
fast way.
The registered listeners are offered to subclasses through the protected
AbstractListenerContainer.getListeners method. This
method returns a reference to an array containing the registered listeners. A new array holding the listeners
is created everytime a modification on the registration list is required (add/remove listener). Therefore,
subclasses can safely iterate over the received array.
Your code sould look like this:
Object[] listeners = getListeners();
for(int i=0; i
version: $Revision: 1.8 $, $Date: 2004/03/16 08:48:33 $ author: Christian Nedregaard (christian_nedregaard@email.com) author: $Author: brenuart $ (current maintainer) since: Proxool 0.7 |