org.objectweb.dsrg.sofa.microarchitecture
Class DelegationChain

java.lang.Object
  extended by org.objectweb.dsrg.sofa.microarchitecture.DelegationChain
Direct Known Subclasses:
DelegationChainInstance, DelegationChainTemplate

public abstract class DelegationChain
extends java.lang.Object

Runtime representation of chain of delegating microcomponents on one interface.


Method Summary
 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.
protected  void testType(java.lang.Object obj)
          Tests passed object is instance of interface delegated by this delegation chain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInterfaceClass

public java.lang.Class<?> getInterfaceClass()
Returns java Class of the delegated component interface.

Returns:
Java Class object of delegated interface.

getInterfaceName

public java.lang.String getInterfaceName()
Returns conponent interface name represented by this delegation chain.

Returns:
Interface name.

getInterfaceType

public SOFAInterfaceType getInterfaceType()
Returns SOFA interface type of the represented component interface.

Returns:
SOFA interface type.

testType

protected void testType(java.lang.Object obj)
                 throws DelegationChainException
Tests passed object is instance of interface delegated by this delegation chain.

Parameters:
obj - Object instance to test.
Throws:
DelegationChainException - Thrown when passed object is not interface of the delegated type.