|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class is a simple container dedicated to the definition of instanciation strategies. It is used by the component factory to find the instanciation manager to be associated to each application component. It is possible to redefine a default instanciation manager, and to define per template managers and per instance managers. The factory uses the following look up strategy. The search is stopped as soon as a manager is found. the component factory first looks for a manager explicitely associated to the component. If none can be found, it then looks for a manager explicitely associated to the component template. If none can be found, it recursively looks for a manager explicitely associated to super templates. If none can be found it looks for a default manager. No null value can be returned, since this class defines a NAryPreInstanciationMger as default instanciation manager and no null value is accepted by the setDefaultMger().
Method Summary | |
InstanciationMger |
getDefaultMger()
Method getDefaultMger returns the default manager. |
InstanciationMger |
getPerInstanceMger(java.lang.String aName)
Method getPerInstanceMger. |
InstanciationMger |
getPerTemplateMger(java.lang.String aName)
Method getPerTemplateMger |
void |
setDefaultMger(InstanciationMger aMger)
Method setDefaultMger. |
void |
setPerInstanceMger(java.lang.String aName,
InstanciationMger aManager)
Method setPerInstanceMger sets the manager to be used for a given instance. |
void |
setPerTemplateMger(java.lang.String aName,
InstanciationMger aManager)
Method setPerTemplateMger sets the manager to be used when the component is an instance of a template or one of its subtemplates. |
Method Detail |
public void setDefaultMger(InstanciationMger aMger) throws KilimException
aMger
- : a default instanciation manager (this ctor just contains a call to setDefaultManager(aMger). This value
cannot be null. A NullInstanciationMger should be indicated if no action should be performed at instanciation time.
KilimException
- : generated if the reference is null.public InstanciationMger getDefaultMger()
public void setPerTemplateMger(java.lang.String aName, InstanciationMger aManager) throws KilimException
aName
- is name of the template.aManager
- is the manager to be used.
KilimException
- : generated when aName is null.public InstanciationMger getPerTemplateMger(java.lang.String aName) throws KilimException
aName
- : the name of the template.
KilimException
- : generated when aName is nullpublic void setPerInstanceMger(java.lang.String aName, InstanciationMger aManager) throws KilimException
aName
- : the name of the component.aManager
- : the manager to be used
KilimException
- : generated when aName is null.public InstanciationMger getPerInstanceMger(java.lang.String aName) throws KilimException
aName
- : the name of the component
KilimException
- : generated when aName is null.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |