org.objectweb.dsrg.sofa.microarchitecture
Class DelegationChainInstance

java.lang.Object
  extended by org.objectweb.dsrg.sofa.microarchitecture.DelegationChain
      extended by org.objectweb.dsrg.sofa.microarchitecture.DelegationChainInstance

public class DelegationChainInstance
extends DelegationChain

Represents chain of delegating microcomponents inside of the component control part.


Method Summary
 java.lang.Object getEndpointProxy()
          Return proxy delegating calls to the endpoint of this 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.
 
Methods inherited from class org.objectweb.dsrg.sofa.microarchitecture.DelegationChain
getInterfaceClass, getInterfaceName, getInterfaceType, testType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEntrypoint

public java.lang.Object getEntrypoint()
                               throws DelegationChainException
Returns reference to the provided delegated interface of the first microcomponent (or endpoint object if no microcomponent is contained) in the delegation chain.

Returns:
Reference to delegated interface of the chain.
Throws:
DelegationChainException

getEndpointProxy

public java.lang.Object getEndpointProxy()
                                  throws DelegationChainException
Return proxy delegating calls to the endpoint of this chain.

Returns:
proxy of this chain endpoint
Throws:
DelegationChainException - if no endpoint is set