edu.UCL.satin.facets
Interface DiscoveryFacet

All Known Implementing Classes:
Core, Discovery

public interface DiscoveryFacet

Author:
Stefanos Zachariadis

Method Summary
 void addListener(ComponentListener c)
          Adds a listener that will be notified when any new component is discovered.
 void addListener(ComponentListener c, java.util.Hashtable filter)
          Adds a listener that will be notified when any new component matching the filter given is discovered.
 Component[] getComponents(java.util.Hashtable properties)
          Returns an array of Components found that match the given property set
 void removeListener(ComponentListener c)
          Removes all instances of the given listener (including any different filters) from the list of listeners to be notified.
 void removeListener(ComponentListener c, java.util.Hashtable filter)
          Removes the particular listener+filter pair from the list of listeners to be notified.
 

Method Detail

addListener

public void addListener(ComponentListener c)
Adds a listener that will be notified when any new component is discovered.

Parameters:
c - the listener that will be notified

addListener

public void addListener(ComponentListener c,
                        java.util.Hashtable filter)
Adds a listener that will be notified when any new component matching the filter given is discovered.

Parameters:
c - the listener to be notified
filter - The filter, as a hashtable of attributes

removeListener

public void removeListener(ComponentListener c)
Removes all instances of the given listener (including any different filters) from the list of listeners to be notified.

Parameters:
c - The listener to be removed.

removeListener

public void removeListener(ComponentListener c,
                           java.util.Hashtable filter)
Removes the particular listener+filter pair from the list of listeners to be notified.

Parameters:
c - The listener to be removed
filter - The filter matches of which this listener will not be notified any more.

getComponents

public Component[] getComponents(java.util.Hashtable properties)
Returns an array of Components found that match the given property set

Parameters:
properties - The properties that the returned components need to match
Returns:
The components that match the given properties