com.iternum.swlink
Interface EndpointProxy

All Known Implementing Classes:
DefaultEndpointProxy

public interface EndpointProxy

Instances of this type are used to proxy an endpoint. Used to swap actual instances of endpoints at runtime.

Author:
Karl Banke

Method Summary
 void addSourceObserver(EndpointObserver pObserver)
          Add an observer to this proxy.
 void addTargetObserver(EndpointObserver pObserver)
          Add an observer to this proxy.
 java.lang.Object getValue()
          Get the value wrapped by this proxy.
 void removeSourceObserver(EndpointObserver pObserver)
           
 void removeTargetObserver(EndpointObserver pObserver)
           
 void setValue(java.lang.Object pValue)
          Set the value wrapeed by this proxy.
 

Method Detail

removeSourceObserver

public void removeSourceObserver(EndpointObserver pObserver)
Parameters:
pObserver - - The object to remove as a source observer

removeTargetObserver

public void removeTargetObserver(EndpointObserver pObserver)
Parameters:
pObserver - - The object to remove as a targetObserver

addTargetObserver

public void addTargetObserver(EndpointObserver pObserver)
Add an observer to this proxy. In case the value underlying this proxy changes, the targetChanged(Object pTarget) method on its observers is called.

Parameters:
pObserver - The Connection that is notified.

addSourceObserver

public void addSourceObserver(EndpointObserver pObserver)
Add an observer to this proxy. In case the value underlying this proxy changes, the sourceChanged(Object pTarget) method on its observers is called.

Parameters:
pObserver - The Connection that is notified.

getValue

public java.lang.Object getValue()
Get the value wrapped by this proxy.

Returns:
An Object representing the Object wrapped by this proxy

setValue

public void setValue(java.lang.Object pValue)
Set the value wrapeed by this proxy.

Parameters:
pValue - - The value to set