|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.kilim.model.services.DefaultNamingContext
org.objectweb.kilim.model.ComponentFactory
Nested Class Summary | |
private static class |
ComponentFactory.RTArray
|
private static class |
ComponentFactory.RTClassSource
|
private static class |
ComponentFactory.RTConstructor
|
private static class |
ComponentFactory.RTEventSource
|
private static class |
ComponentFactory.RTGetter
|
private static class |
ComponentFactory.RTMethod
|
private static class |
ComponentFactory.RTNullElement
|
private static class |
ComponentFactory.RTReference
|
private static class |
ComponentFactory.RTSetter
|
Field Summary | |
private RtComponent |
containingComponent
|
private ComponentFactory |
containingFactory
|
private TemplateDescription |
containingTemplate
|
private RtComponent |
currentComponent
|
private TemplateDescription |
currentTemplate
|
private java.lang.String |
localName
|
private java.util.LinkedHashMap |
references
|
private java.util.List |
subFactories
|
Fields inherited from class org.objectweb.kilim.model.services.DefaultNamingContext |
|
Constructor Summary | |
private |
ComponentFactory(java.lang.String aName,
TemplateDescription aTemplate,
ComponentFactory aFactory,
RtComponent aComponent)
|
Method Summary | |
private void |
addReference(java.lang.String aName,
ComponentFactory.RTReference aReference)
Method addReference. |
void |
addSubFactory(ComponentFactory aElement)
In the present implementation factories are used as naming contexts. |
protected boolean |
containsElement(java.util.List aList,
java.lang.String aName)
|
void |
finalizeInstanciation()
Method finalizeInstanciation. |
Component |
fork(Component aComponent)
returns a new component which is a copy of aComponent (in the state defined by the template). |
Component |
getComponent()
returns the component built by the factory. |
ComponentFactory |
getContainingFactory()
In the present implementation factories are used as naming contexts. |
protected java.lang.Object |
getElement(java.util.List aList,
java.lang.String aName)
|
private java.lang.String |
getFullTemplateSequence()
|
java.lang.String |
getLocalName()
returns the local name of the factory (which is similar to the component name !!!!) |
private ComponentFactory.RTReference |
getReference(java.lang.String aName)
Method containsReference. |
private java.util.Iterator |
getReferences()
Method getInstances. |
java.util.Iterator |
getSubFactories()
Method getComponentFactorys. |
ComponentFactory |
getSubFactory(java.lang.String aName)
In the present implementation factories are used as naming contexts. |
void |
initializeInstanciation()
Method initializeInstanciation This method is executed once by the component factory before any other actions. |
private void |
initNewComponent()
|
private void |
installBinding(Binding aBinding)
Method installBinding. |
void |
installBindings()
Method installBindings. |
private void |
installPlug(Plug aPlug)
|
void |
installPlugs()
Method installPlugs. |
private void |
installTrigger(Trigger aTrigger)
Method installTrigger. |
void |
installTriggers()
Method installTriggers. |
private Component |
newComponent(Instance instance)
Method newComponent. |
static Component |
newComponent(TemplateDescription template)
A factory method for creating a new component. |
static Component |
newComponent(TemplateDescription template,
InstanciationStrategy aStrgy)
A factory method for creating a new component. |
private ComponentElement |
newComponentElement1(BasicElement elem)
|
private ComponentFactory.RTArray |
newInnerArraySource(ArraySource aArray)
|
private ComponentFactory.RTClassSource |
newInnerClassSource(ClassSource aSource)
|
private ComponentFactory.RTConstructor |
newInnerConstructor(TpConstructor aCtor)
|
private ComponentFactory.RTEventSource |
newInnerEventSource(EventSource aSource)
|
private ComponentFactory.RTGetter |
newInnerGetter(TpGetter aGetter)
|
private ComponentFactory.RTMethod |
newInnerMethod(TpMethod aMethod)
|
private ComponentFactory.RTReference |
newInnerReference(Reference aReference)
|
private ComponentFactory.RTSetter |
newInnerSetter(TpSetter aSetter)
|
private RtComponentInterface |
newInterface(Port port)
|
private RtComponentProperty |
newProperty(Property aProperty)
|
protected java.lang.Object |
removeElement(java.util.List aList,
java.lang.String aName)
|
private void |
removeReference(java.lang.String aName)
Method removeSubContext. |
void |
removeSubFactory(ComponentFactory aElement)
In the present implementation factories are used as naming contexts. |
private void |
resolveReferences()
Method resolveReference. |
Methods inherited from class org.objectweb.kilim.model.services.DefaultNamingContext |
addBoundName, addChildNamingContext, getBoundNames, getChildNamingContexts, getExternalReferenceMap, 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 |
private java.lang.String localName
private ComponentFactory containingFactory
private java.util.List subFactories
private TemplateDescription currentTemplate
private TemplateDescription containingTemplate
private RtComponent currentComponent
private RtComponent containingComponent
private java.util.LinkedHashMap references
Constructor Detail |
private ComponentFactory(java.lang.String aName, TemplateDescription aTemplate, ComponentFactory aFactory, RtComponent aComponent) throws KilimException
Method Detail |
public static Component newComponent(TemplateDescription template) throws KilimException
template
- : the template to be used
KilimException
- : generated if template is null.public static Component newComponent(TemplateDescription template, InstanciationStrategy aStrgy) throws KilimException
template
- : the template to be used.aStrgy
- : the implementation strategy to be used.
KilimException
- : generated if template is null.public java.lang.String getLocalName()
getLocalName
in interface NamingContext
getLocalName
in class DefaultNamingContext
NamingContext.getLocalName()
public Component getComponent()
public ComponentFactory getContainingFactory()
public void addSubFactory(ComponentFactory aElement) throws KilimException
aElement
- : the Child factory to be added.
KilimException
- :public void removeSubFactory(ComponentFactory aElement) throws KilimException
aElement
- :
KilimException
- :public ComponentFactory getSubFactory(java.lang.String aName)
aName
- :
public java.util.Iterator getSubFactories()
private Component newComponent(Instance instance) throws KilimException
instance
- :
KilimException
- :private void initNewComponent() throws KilimException
KilimException
private ComponentElement newComponentElement1(BasicElement elem) throws KilimException
KilimException
private RtComponentProperty newProperty(Property aProperty) throws KilimException
KilimException
private RtComponentInterface newInterface(Port port) throws KilimException
KilimException
private ComponentFactory.RTArray newInnerArraySource(ArraySource aArray) throws KilimException
KilimException
private ComponentFactory.RTClassSource newInnerClassSource(ClassSource aSource) throws KilimException
KilimException
private ComponentFactory.RTGetter newInnerGetter(TpGetter aGetter) throws KilimException
KilimException
private ComponentFactory.RTSetter newInnerSetter(TpSetter aSetter) throws KilimException
KilimException
private ComponentFactory.RTMethod newInnerMethod(TpMethod aMethod) throws KilimException
KilimException
private ComponentFactory.RTConstructor newInnerConstructor(TpConstructor aCtor) throws KilimException
KilimException
private ComponentFactory.RTReference newInnerReference(Reference aReference) throws KilimException
KilimException
private ComponentFactory.RTEventSource newInnerEventSource(EventSource aSource) throws KilimException
KilimException
public Component fork(Component aComponent) throws KilimException
aComponent
- : the component to be forked
KilimException
- :private void addReference(java.lang.String aName, ComponentFactory.RTReference aReference) throws KilimException
aName
- :
KilimException
- :private void removeReference(java.lang.String aName) throws KilimException
aName
- :
KilimException
- :private ComponentFactory.RTReference getReference(java.lang.String aName) throws KilimException
aName
- :
KilimException
- :private void resolveReferences() throws KilimException
KilimException
- :private java.util.Iterator getReferences()
private void installBinding(Binding aBinding) throws KilimException
aBinding
- :
KilimException
- :private java.lang.String getFullTemplateSequence()
public void installBindings() throws KilimException
KilimException
- :private void installPlug(Plug aPlug) throws KilimException
KilimException
public void installPlugs() throws KilimException
KilimException
- :private void installTrigger(Trigger aTrigger) throws KilimException
aTrigger
-
KilimException
public void installTriggers() throws KilimException
KilimException
- :public void finalizeInstanciation() throws KilimException
KilimException
- :public void initializeInstanciation() throws KilimException
KilimException
- :protected boolean containsElement(java.util.List aList, java.lang.String aName) throws InternalException
InternalException
protected java.lang.Object removeElement(java.util.List aList, java.lang.String aName) throws InternalException
InternalException
protected java.lang.Object getElement(java.util.List aList, java.lang.String aName) throws InternalException
InternalException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |