edu.UCL.satin.arch.facets
Interface ContainerFacet

All Superinterfaces:
ComponentFacet, Facet
All Known Implementing Classes:
Container

public interface ContainerFacet
extends ComponentFacet

The facet that all container implementations must implement

Author:
Stefanos Zachariadis

Field Summary
 
Fields inherited from interface edu.UCL.satin.arch.facets.ComponentFacet
DISABLED, ENABLED
 
Method Summary
 void addListener(ComponentListener c)
          Adds a listener that will be notified when any new component is deployed or removed.
 void addListener(ComponentListener c, java.util.Hashtable filter)
          Adds a listener that will be notified when any new component matching the filter given is deployed or removed.
 Component[] getComponents(java.util.Hashtable properties)
           
 Registrar getDefaultRegistrar()
           
 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.
 void setDefaultRegistrar(Registrar r)
           
 
Methods inherited from interface edu.UCL.satin.arch.facets.ComponentFacet
addAttribute, construct, destroy, getAttribute, getProperties, hasAttribute, isEnabled, setEnabled
 

Method Detail

setDefaultRegistrar

public void setDefaultRegistrar(Registrar r)

getDefaultRegistrar

public Registrar getDefaultRegistrar()

getComponents

public Component[] getComponents(java.util.Hashtable properties)

addListener

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

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 deployed or removed.

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.