org.objectweb.dsrg.sofa.microarchitecture
Class DelegationChainTemplate

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

public class DelegationChainTemplate
extends DelegationChain

Extends DelegationChain with functionality to create instances of the iterface by demand. CollectionChain stores information 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.


Method Summary
 DelegationChainInstance newInstance(java.lang.Object endpoint)
          Creates new instance from this CollectionChain.
 
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

newInstance

public DelegationChainInstance newInstance(java.lang.Object endpoint)
                                    throws DelegationChainException,
                                           InstantiationException
Creates new instance from this CollectionChain. Delegating microcomponents are instantiated from MicroComponentProxy objects stored in CollectionChain.

Parameters:
endpoint - Object to be set as endpoint for the new DelegationChain.
Returns:
New DelegationChain.
Throws:
DelegationChainException
InstantiationException