Openwings API Documentation (v1.1)

net.openwings.context
Interface RelationshipListener


public interface RelationshipListener

This interface describes a callback that can be registered with a Context to be notified when context relationships are added or removed.


Method Summary
 void relationshipAdded(UniqueID context, java.lang.String name)
          This method is invoked when a relationship is added.
 void relationshipRemoved(UniqueID context, java.lang.String name)
          This method is invoked when a relationship is removed.
 

Method Detail

relationshipAdded

public void relationshipAdded(UniqueID context,
                              java.lang.String name)
                       throws java.rmi.RemoteException
This method is invoked when a relationship is added.

Parameters:
context - Id of the context a relationship is being added
name - Name of the context
Throws:
java.rmi.RemoteException - if there is an error communicating with the listener.

relationshipRemoved

public void relationshipRemoved(UniqueID context,
                                java.lang.String name)
                         throws java.rmi.RemoteException
This method is invoked when a relationship is removed.

Parameters:
context - Id of the context a relationship is being removed
name - Name of the context
Throws:
java.rmi.RemoteException - if there is an error communicating with the listener.

Openwings API Documentation (v1.1)