Eclipse Platform
Release 3.6

org.eclipse.osgi.framework.eventmgr
Class EventListeners

java.lang.Object
  extended by org.eclipse.osgi.framework.eventmgr.EventListeners

Deprecated. As of 3.5. Replaced by CopyOnWriteIdentityMap.

public class EventListeners
extends Object

This class manages a list of listeners. Listeners may be added or removed as necessary. This class uses identity for comparison, not equals.

Since:
3.1
Restriction:
This class is not intended to be subclassed by clients.

Constructor Summary
EventListeners()
          Deprecated. Creates an empty listener list.
EventListeners(int capacity)
          Deprecated. Creates an empty listener list.
 
Method Summary
 void addListener(Object listener, Object listenerObject)
          Deprecated. Add a listener to the list.
 void removeAllListeners()
          Deprecated. Remove all listeners from the list.
 void removeListener(Object listener)
          Deprecated. Remove a listener from the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventListeners

public EventListeners()
Deprecated. 
Creates an empty listener list.


EventListeners

public EventListeners(int capacity)
Deprecated. 
Creates an empty listener list.

Parameters:
capacity - This argument is ignored.
Method Detail

addListener

public void addListener(Object listener,
                        Object listenerObject)
Deprecated. 
Add a listener to the list. If a listener object is already in the list, then it is replaced. This method calls the put method.

Parameters:
listener - This is the listener object to be added to the list.
listenerObject - This is an optional listener-specific object. This object will be passed to the EventDispatcher along with the listener when the listener is to be called. This may be null
Throws:
IllegalArgumentException - If listener is null.

removeListener

public void removeListener(Object listener)
Deprecated. 
Remove a listener from the list. This method calls the remove method.

Parameters:
listener - This is the listener object to be removed from the list.
Throws:
IllegalArgumentException - If listener is null.

removeAllListeners

public void removeAllListeners()
Deprecated. 
Remove all listeners from the list. This method calls the clear method.


Eclipse Platform
Release 3.6

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.