|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.dsrg.sofa.microarchitecture.DelegationChain
public class DelegationChain
Represents chain of delegating microcomponents inside of the component control part.
Methods of the delegation chains have to be called in the following order: (add?, insert?)+, setEndpoint, (add?, insert?)+, (getEntrypoint)+
Constructor Summary | |
---|---|
DelegationChain(SOFAInterfaceType type,
java.lang.String name,
java.lang.Class c)
Creates new instance |
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 |
getEndpointProxy()
|
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. |
java.lang.Class<?> |
getInterfaceClass()
Returns java Class of the delegated component interface. |
java.lang.String |
getInterfaceName()
Returns conponent interface name represented by this delegation chain. |
SOFAInterfaceType |
getInterfaceType()
Returns SOFA interface type of the represented component interface. |
SOFAMicroComponent |
insert(MicroComponentInstance instance,
java.util.HashMap<java.lang.String,java.lang.String> parameters)
Inserts microcomponent instance to the beginning of the delegation chain. |
void |
setEndpoint(java.lang.Object ref)
Sets the endpoint. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegationChain(SOFAInterfaceType type, java.lang.String name, java.lang.Class c) throws DelegationChainException
type
- SOFA interface type of the component interface represented by this instance.name
- Name of the component interface represented by this instance.c
- Java Class object for the delegated interface.
DelegationChainException
Method Detail |
---|
public java.lang.Class<?> getInterfaceClass()
public java.lang.String getInterfaceName()
public SOFAInterfaceType getInterfaceType()
public SOFAMicroComponent add(MicroComponentInstance instance, java.util.HashMap<java.lang.String,java.lang.String> parameters) throws DelegationChainException
ref
- MicroComponent instance to be added.
DelegationChainException
public SOFAMicroComponent insert(MicroComponentInstance instance, java.util.HashMap<java.lang.String,java.lang.String> parameters) throws DelegationChainException
ref
- MicroComponent instance to be inserted.
DelegationChainException
public void setEndpoint(java.lang.Object ref) throws DelegationChainException
ref
- Reference to the endpoint object.
DelegationChainException
public java.lang.Object getEndpointProxy() throws DelegationChainException
DelegationChainException
public java.lang.Object getEntrypoint() throws DelegationChainException
DelegationChainException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |