org.objectweb.kilim.model.instanciation
Class BDUInstanciationMger

java.lang.Object
  extended byorg.objectweb.kilim.model.instanciation.InstanciationMger
      extended byorg.objectweb.kilim.model.instanciation.BDUInstanciationMger

public class BDUInstanciationMger
extends InstanciationMger

Author:
horn

Constructor Summary
BDUInstanciationMger()
           
 
Method Summary
static void doWhenInstanciate(Component aComponent, ComponentInterface aInterface, MappingContext aContext)
          Method doWhenInstanciate performs the component instanciation according to the following rules : it first looks up for all the nary ports directly declared at the component level and invokes the getValue() method on every provider they contain.
private static void doWhenInstanciate1(RtCollectionPort aInterface, MappingContext aContext)
           
static void doWhenPlug(Component aComponent, ComponentSlot aSlot, MappingContext aContext)
          Method doWhenPlug.
 void finalizeInstanciation(Component aComponent, ComponentInterface aInterface, MappingContext aContext)
          This is the "post" method called by the Kilim runtime when it has to get the value of an interface (port, provider, property) belonging to a UNITIALIZED component or slot.
 void finalizePlug(Component aComponent, ComponentSlot aSlot, MappingContext aContext)
          This is the "post" method called by the Kilim runtime when it has to plug either an UNINITIALIZED component or an INITIALIZED component into an UNITIALIZED slot.
 void initializeInstanciation(Component aComponent, ComponentInterface aInterface, MappingContext aContext)
          This is the "pre" method called by the Kilim runtime when it has to get the value of an interface (port, provider, property) belonging to a UNITIALIZED component or slot.
 void initializePlug(Component aComponent, ComponentSlot aSlot, MappingContext aContext)
          This is the "pre" method called by the Kilim runtime when it has to plug either an UNINITIALIZED component or an INITIALIZED component into an UNITIALIZED slot.
 
Methods inherited from class org.objectweb.kilim.model.instanciation.InstanciationMger
finalizeInstanciation, finalizePlug, initializeInstanciation, initializePlug
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BDUInstanciationMger

public BDUInstanciationMger()
Method Detail

finalizeInstanciation

public void finalizeInstanciation(Component aComponent,
                                  ComponentInterface aInterface,
                                  MappingContext aContext)
                           throws KilimException
Description copied from class: InstanciationMger
This is the "post" method called by the Kilim runtime when it has to get the value of an interface (port, provider, property) belonging to a UNITIALIZED component or slot.

Specified by:
finalizeInstanciation in class InstanciationMger
Parameters:
aComponent - : the component containing the interface
aInterface - : the accessed interface
aContext - : the mapping context
Throws:
KilimException - : generated by the instantiation manager in case of problems. These are specific to each manager.
See Also:
org.objectweb.kilim.model.InstanciationMger#finalizeInstanciation(TemplateDescription)

initializeInstanciation

public void initializeInstanciation(Component aComponent,
                                    ComponentInterface aInterface,
                                    MappingContext aContext)
                             throws KilimException
Description copied from class: InstanciationMger
This is the "pre" method called by the Kilim runtime when it has to get the value of an interface (port, provider, property) belonging to a UNITIALIZED component or slot.

Specified by:
initializeInstanciation in class InstanciationMger
Parameters:
aComponent - : the component containing the interface
aInterface - : the accessed interface
aContext - : the mapping context
Throws:
KilimException - : generated by the instantiation manager in case of problems. These are specific to each manager.
See Also:
org.objectweb.kilim.model.InstanciationMger#initializeInstanciation(Component)

initializePlug

public void initializePlug(Component aComponent,
                           ComponentSlot aSlot,
                           MappingContext aContext)
                    throws KilimException
Description copied from class: InstanciationMger
This is the "pre" method called by the Kilim runtime when it has to plug either an UNINITIALIZED component or an INITIALIZED component into an UNITIALIZED slot.

Specified by:
initializePlug in class InstanciationMger
Parameters:
aComponent - : the component to be plugged
aSlot - : the slot
aContext - : the maping context
Throws:
KilimException - : generated by the instantiation manager in case of problems. These are specific to each manager.
See Also:
org.objectweb.kilim.model.services.InstanciationMger#initializePlug(Component, ComponentSlot, MappingContext)

finalizePlug

public void finalizePlug(Component aComponent,
                         ComponentSlot aSlot,
                         MappingContext aContext)
                  throws KilimException
Description copied from class: InstanciationMger
This is the "post" method called by the Kilim runtime when it has to plug either an UNINITIALIZED component or an INITIALIZED component into an UNITIALIZED slot.

Specified by:
finalizePlug in class InstanciationMger
Parameters:
aComponent - : the component to be plugged
aSlot - : the slot
aContext - : the maping context
Throws:
KilimException - : generated by the instantiation manager in case of problems. These are specific to each manager.
See Also:
org.objectweb.kilim.model.services.InstanciationMger#finalizePlug(Component, ComponentSlot, MappingContext)

doWhenInstanciate

public static void doWhenInstanciate(Component aComponent,
                                     ComponentInterface aInterface,
                                     MappingContext aContext)
                              throws KilimException
Method doWhenInstanciate performs the component instanciation according to the following rules : it first looks up for all the nary ports directly declared at the component level and invokes the getValue() method on every provider they contain. It then looks up for all the nary ports declared in slots and invokes the getValue() method on every provider they contain. No getValue() on single value port is performed without need.

Parameters:
aComponent - is the component containing the current interfarface.
aInterface - is the current interface.
aContext - :
Throws:
KilimException - is generated when aComponent is null.

doWhenInstanciate1

private static void doWhenInstanciate1(RtCollectionPort aInterface,
                                       MappingContext aContext)
                                throws KilimException
Throws:
KilimException

doWhenPlug

public static void doWhenPlug(Component aComponent,
                              ComponentSlot aSlot,
                              MappingContext aContext)
                       throws KilimException
Method doWhenPlug.

Parameters:
aComponent - :
aSlot - :
aContext - :
Throws:
KilimException - :