textbender.g.util
Class EventListenerR.WrapperL<R extends EventListenerR>

java.lang.Object
  extended by EventListenerR.WrapperL<R>
Direct Known Subclasses:
PropertyChangeListenerR.WrapperL
Enclosing interface:
EventListenerR

@ThreadSafe
public abstract static class EventListenerR.WrapperL<R extends EventListenerR>
extends Object

A wrapper of a remote event listener that conforms it to an equivalent local type, by handling any remote exceptions. Used in cases where the remote type is otherwise identical to the local (as PropertyChangeListenerR is to PropertyChangeListener). It makes the remote instance assignment-compatible with the local type, by catching and handling any remote exceptions during event dispatch. Usually a Catcher is used for this purpose, but it depends on the implementing subclass.


Field Summary
protected  R remoteListener
           
 
Constructor Summary
protected EventListenerR.WrapperL(R remoteListener)
          Creates a WrapperL.
 
Method Summary
 boolean equals(Object o)
          Returns true iff o wraps, or is, an 'equal' underlying remote listener.
 int hashCode()
          Returns the same hash code as the underlying remote listener.
 R remoteListener()
          Underlying remote listener.
 String toString()
          Returns the same string as the underlying remote listener, but prefixed by "local wrap of: ".
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

remoteListener

protected final R extends EventListenerR remoteListener
Constructor Detail

EventListenerR.WrapperL

protected EventListenerR.WrapperL(R remoteListener)
Creates a WrapperL.

Parameters:
remoteListener - underlying remote listener, per remoteListener()
Method Detail

remoteListener

public final R remoteListener()
Underlying remote listener. It is never null.


equals

public final boolean equals(Object o)
Returns true iff o wraps, or is, an 'equal' underlying remote listener.

Overrides:
equals in class Object

hashCode

public final int hashCode()
Returns the same hash code as the underlying remote listener.

Overrides:
hashCode in class Object

toString

public final String toString()
Returns the same string as the underlying remote listener, but prefixed by "local wrap of: ".

Overrides:
toString in class Object