|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.microarchitecture.DelegationChain
org.objectweb.dsrg.sofa.microarchitecture.CollectionChain
public class CollectionChain
Extends DelegationChain with functionality to create instances of the iterface by demand. CollectionChain stores inforamtion necessary to make such instance and to bind its microcomponents to other microcomponents as well.
MicroComponentProxy objects are used to store information about delegating microcomponents in the chain.
Constructor Summary | |
---|---|
CollectionChain(SOFAInterfaceType type,
java.lang.String name,
java.lang.Class cl)
Same constructor as in DelegationChain. |
Method Summary | |
---|---|
SOFAMicroComponent |
add(MicroComponentInstance instance,
java.util.HashMap<java.lang.String,java.lang.String> parameters)
Adds microcomponent instance to the end of the delegation chain. |
java.lang.Object |
getEntrypoint()
Returns reference to the provided delegated interface of the first microcomponent (or endpoint object if no microcomponent is contained) in the delegation chain. |
SOFAMicroComponent |
insert(MicroComponentInstance instance,
java.util.HashMap<java.lang.String,java.lang.String> parameters)
Inserts microcomponent instance to the beginning of the delegation chain. |
DelegationChain |
newInstance(java.lang.Object endpoint)
Creates new instance from this CollectionChain. |
void |
setEndpoint(java.lang.Object ref)
Sets the endpoint. |
Methods inherited from class org.objectweb.dsrg.sofa.microarchitecture.DelegationChain |
---|
getInterfaceClass, getInterfaceName, getInterfaceType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollectionChain(SOFAInterfaceType type, java.lang.String name, java.lang.Class cl) throws DelegationChainException
type
- Type of the collection chain. Must be BUSINESS_REQUIRED.name
- Name of the interface represented.cl
- Class of the interface delegated.
DelegationChainException
Method Detail |
---|
public SOFAMicroComponent add(MicroComponentInstance instance, java.util.HashMap<java.lang.String,java.lang.String> parameters) throws DelegationChainException
DelegationChain
add
in class DelegationChain
DelegationChainException
public SOFAMicroComponent insert(MicroComponentInstance instance, java.util.HashMap<java.lang.String,java.lang.String> parameters) throws DelegationChainException
DelegationChain
insert
in class DelegationChain
DelegationChainException
public void setEndpoint(java.lang.Object ref) throws DelegationChainException
DelegationChain
setEndpoint
in class DelegationChain
ref
- Reference to the endpoint object.
DelegationChainException
public java.lang.Object getEntrypoint() throws DelegationChainException
DelegationChain
getEntrypoint
in class DelegationChain
DelegationChainException
public DelegationChain newInstance(java.lang.Object endpoint) throws DelegationChainException, InstantiationException
endpoint
- Object to be set as endpoint for the new DelegationChain.
DelegationChainException
InstantiationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |