org.objectweb.kilim.model
Class SlotFactory

java.lang.Object
  extended byorg.objectweb.kilim.model.services.DefaultNamingContext
      extended byorg.objectweb.kilim.model.SlotFactory
All Implemented Interfaces:
Factory, NamingContext

public class SlotFactory
extends DefaultNamingContext
implements Factory

Author:
horn

Field Summary
private  Component containingComponent
           
private  ComponentFactory containingFactory
           
private  java.lang.String localName
           
private  Slot slotDescription
           
 
Fields inherited from class org.objectweb.kilim.model.services.DefaultNamingContext
 
Constructor Summary
SlotFactory(java.lang.String aName, ComponentFactory aFactory)
          The public constructor for slot factories.
 
Method Summary
 void addSubFactory(ComponentFactory aElement)
          adds a SubFactory (should not be used !!)
 ComponentFactory getContainingFactory()
          returns the containing factory.
 java.util.Iterator getSubFactories()
          Method getComponentFactorys.
 ComponentFactory getSubFactory(java.lang.String aName)
          returns a subFactory (should not be used !!).
private  RtComponentInterface newInterface(Port port, RtComponentSlot aSlot)
           
 RtComponentSlot newSlot(Slot aSlot)
          creates a new runtime descriptor of a slot from an abstract descriptor of a slot.
 void removeSubFactory(ComponentFactory aElement)
          removes a SubFactory (should not be used !!).
 
Methods inherited from class org.objectweb.kilim.model.services.DefaultNamingContext
addBoundName, addChildNamingContext, getBoundNames, getChildNamingContexts, getExternalReferenceMap, getLocalName, getParentNamingContext, getQualifiedName, removeBoundName, removeChildNamingContext, resolveReference, setExternalReferences, setParentNamingContext, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

localName

private java.lang.String localName

containingFactory

private ComponentFactory containingFactory

slotDescription

private Slot slotDescription

containingComponent

private Component containingComponent
Constructor Detail

SlotFactory

public SlotFactory(java.lang.String aName,
                   ComponentFactory aFactory)
            throws KilimException
The public constructor for slot factories.

Parameters:
aName - :
aFactory - :
Throws:
KilimException - :
Method Detail

getContainingFactory

public ComponentFactory getContainingFactory()
returns the containing factory.

Returns:
ComponentFactory

addSubFactory

public void addSubFactory(ComponentFactory aElement)
                   throws KilimException
adds a SubFactory (should not be used !!)

Parameters:
aElement - :
Throws:
KilimException - : always generated since slots are terminal contrainers in the present model.

removeSubFactory

public void removeSubFactory(ComponentFactory aElement)
                      throws KilimException
removes a SubFactory (should not be used !!).

Parameters:
aElement - :
Throws:
KilimException - : always generated since slots are terminal contrainers in the present model.

getSubFactory

public ComponentFactory getSubFactory(java.lang.String aName)
                               throws KilimException
returns a subFactory (should not be used !!).

Parameters:
aName - :
Returns:
ComponentFactoryElement
Throws:
KilimException - : always generated since slots are terminal contrainers in the present model.

getSubFactories

public java.util.Iterator getSubFactories()
                                   throws KilimException
Method getComponentFactorys.

Returns:
Iterator
Throws:
KilimException - :

newSlot

public RtComponentSlot newSlot(Slot aSlot)
                        throws KilimException
creates a new runtime descriptor of a slot from an abstract descriptor of a slot.

Parameters:
aSlot - : the abstract descriptor of a slot
Returns:
RuntimeSlot
Throws:
KilimException - : generated if aSlot is null.

newInterface

private RtComponentInterface newInterface(Port port,
                                          RtComponentSlot aSlot)
                                   throws KilimException
Throws:
KilimException