javax.rad.remote
Class AbstractConnection.ListenerDelegate<K>

java.lang.Object
  extended by javax.rad.remote.AbstractConnection.ListenerDelegate<K>
Type Parameters:
K - the listener interface
Direct Known Subclasses:
AbstractConnection.CallBackResultDelegate, AbstractConnection.PropertyChangedDelegate
Enclosing class:
AbstractConnection

public static class AbstractConnection.ListenerDelegate<K>
extends Object

The ListenerDelegate is the base class for listener delegates.


Constructor Summary
AbstractConnection.ListenerDelegate()
           
 
Method Summary
 void add(String pName, K pListener)
          Adds a listener for a specific name.
 List<K> getListeners(String pName)
          Gets all available listeners for the given name.
 void remove(K pListener)
          Removes a listener from internal listener lists.
 void remove(String pName, K pListener)
          Removes a specific or all listener for a specific name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractConnection.ListenerDelegate

public AbstractConnection.ListenerDelegate()
Method Detail

getListeners

public List<K> getListeners(String pName)
Gets all available listeners for the given name.

Parameters:
pName - the name
Returns:
the listeners

add

public void add(String pName,
                K pListener)
Adds a listener for a specific name.

Parameters:
pName - the name
pListener - the listener for the name

remove

public void remove(String pName,
                   K pListener)
Removes a specific or all listener for a specific name.

Parameters:
pName - the name
pListener - the listener or null to remove all listeners

remove

public void remove(K pListener)
Removes a listener from internal listener lists.

Parameters:
pListener - the listener


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.