|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
| Method Summary | |
void |
addController(java.lang.String aName,
java.lang.Object aController)
adds a controller |
void |
addSubComponent(Component aElement)
adds a new subcomponent. |
Component |
fork()
creates a copy of a component as defined in the template (same elements, same plugs, ....). |
java.lang.Object |
getController(java.lang.String aName)
returns a controller identified by its name. |
java.util.Iterator |
getControllers()
returns as an iterator the controllersz associated to a component. |
InstanciationMger |
getInstanciationMger()
Method getInstanciationMger returns the instanciation manager to be used the component. |
InstanciationMger |
getInstanciationMgerFromConfiguration()
sets the instanciation manager from the instanciation strategy defined in the class KilimConfiguration KilimConfiguration |
java.util.Iterator |
getPlugTos()
returns as an iterator the slots the component is plugged into. |
ComponentSlot |
getSlot(java.lang.String aLocalName)
Method getSlot returns a component slot identified by its local name. |
java.util.Iterator |
getSlots()
returns as an iterator the slots defined in the component. |
Component |
getSubComponent(java.lang.String aName)
returns a subcomponent identified by its local name. |
java.util.Iterator |
getSubComponents()
returns as an iterator the "direct" subcomponents of a component : this method does not recurse and thus only returns the subcomponent directly defined in the component. |
TemplateDescription |
getTemplate()
returns the template describing the component. |
void |
plug(java.lang.String aName,
Component aComponent)
plugs a component into a slot. |
void |
release()
releases a component by (1) removing it as a subcomponent of its containing component, (2) unpluging it from all slots it is plugged in, (3) removing its naming context from parent context and factory from parent factory. |
void |
removeController(java.lang.String aName)
removes a controller. |
void |
removeSubComponent(Component aLocalChild)
removes a "direct" subcomponent : this method only looks for subcomponent directly defined in the component. |
void |
removeSubComponent(java.lang.String aLocalName)
removes a "direct" subcomponent : this method only looks for subcomponent directly defined in the component. |
void |
setInstanciationMger(InstanciationMger aMger)
sets the instanciation manager to be used for the component. |
void |
unplug(java.lang.String aName,
Component aComponent)
unplugs a component form a slot. |
| 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 |
public TemplateDescription getTemplate()
public Component getSubComponent(java.lang.String aName)
aName - : the local name of a subcomponent.
public java.util.Iterator getSubComponents()
public void addSubComponent(Component aElement)
throws KilimException
aElement - : the component to be added as a subcomponent.
KilimException - : generated if aElement is null or is already a subcomponent.
public void removeSubComponent(java.lang.String aLocalName)
throws KilimException
aLocalName - : the local name of the subcomponent to be removed.
This method does nothing more than just "unregistering" AElement as a subcomponent
KilimException - : generated if aElement is null, or if the aElement is not a direct subcomponent
public void removeSubComponent(Component aLocalChild)
throws KilimException
aLocalChild - : the subcomponent to be removed.
This method does nothing more than just "unregistering" AElement as a subcomponent
KilimException - : generated if aElement is null, or if the aElement is not a direct subcomponent
public ComponentSlot getSlot(java.lang.String aLocalName)
throws KilimException
aLocalName - : the local name of the slot
KilimException - :public java.util.Iterator getSlots()
public java.util.Iterator getPlugTos()
public void plug(java.lang.String aName,
Component aComponent)
throws KilimException
aName - : name of the slot.aComponent - : the component to be plugged in the slot.
KilimException - : generated if aName or aComponent is null, if aName does not identifiy a component slot.
public void unplug(java.lang.String aName,
Component aComponent)
throws KilimException
aName - : name of the slot.aComponent - : the component to be unplugged from the slot .
KilimException - : generated if aName or aComponent is null, if aName does not identifiy a component slot or if aCompoonent is not plugged in the slot.
public Component fork()
throws KilimException
KilimException - :
public void release()
throws KilimException
KilimException - :
public InstanciationMger getInstanciationMgerFromConfiguration()
throws KilimException
KilimConfiguration
KilimException - :
public void setInstanciationMger(InstanciationMger aMger)
throws KilimException
aMger - : the instanciation manager to be used
KilimException - :public InstanciationMger getInstanciationMger()
public void addController(java.lang.String aName,
java.lang.Object aController)
throws KilimException
aName - : the name of the controller.aController - : the controller to be added.
KilimException - : generated if aName is null.
public void removeController(java.lang.String aName)
throws KilimException
aName - : the name of the controller to be removed.
KilimException - : generated if aName is null.
public java.lang.Object getController(java.lang.String aName)
throws KilimException
aName - : the name of the controller.
KilimException - : generated if aName is null.public java.util.Iterator getControllers()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||