org.objectweb.kilim.model
Interface ComponentSlot

All Superinterfaces:
ComponentElement, ContainerElement
All Known Implementing Classes:
RtComponentSlot

public interface ComponentSlot
extends ContainerElement

Author:
horn

Method Summary
 java.util.Iterator getPlugIns()
          retuns as an iterator the components plugged in the slot.
 void plug(Component aComponent)
          binds each port defined in the slot to the port having the same name in the component (to be plugged).
 void unplug(Component aComponent)
          unbinds each port defined in the slot from the port having the same name in the component (to be unplugged).
 
Methods inherited from interface org.objectweb.kilim.model.ContainerElement
addInterface, getFactory, getInterface, getInterfaces, isComponent, isInitialized, isSlot, removeInterface, setInitialized
 
Methods inherited from interface org.objectweb.kilim.model.ComponentElement
getContainingComponent, getContainingElement, getElementDescription, getLocalName, getQualifiedName, getTemplateDefHierarchy
 

Method Detail

getPlugIns

public java.util.Iterator getPlugIns()
retuns as an iterator the components plugged in the slot.

Returns:
Iterator

plug

public void plug(Component aComponent)
          throws KilimException
binds each port defined in the slot to the port having the same name in the component (to be plugged). "Offered" ports in the slot are bound to "offered" interfaces in the component and the "required" ports in the component to the "required" ports in the slot.

Parameters:
aComponent - : the component to be plugged
Throws:
KilimException - : generated when aComponent is null or is already plugged in the slot.

unplug

public void unplug(Component aComponent)
            throws KilimException
unbinds each port defined in the slot from the port having the same name in the component (to be unplugged).

Parameters:
aComponent - : the component to be unplugged
Throws:
KilimException - :