org.objectweb.dsrg.sofa.microarchitecture
Interface MIComponent

All Known Implementing Classes:
MIComponentImpl

public interface MIComponent

Interface for control interface of component aspect. Bootstrap aspects provides this control interface on every components.

This interface is used to store and retrieve information about component.


Method Summary
 java.lang.Object getContent()
          Returns reference to the component business code.
 java.lang.Object getControlInterface(java.lang.String name)
          Returns reference to the control interface implementation.
 java.lang.Object getDelegationChain(SOFAInterfaceType type, java.lang.String name)
          Returns reference to the interface delegation chain.
 java.lang.Object getFrame()
          Returns model object of the frame implemented by component.
 

Method Detail

getDelegationChain

java.lang.Object getDelegationChain(SOFAInterfaceType type,
                                    java.lang.String name)
                                    throws SOFAException
Returns reference to the interface delegation chain.

Parameters:
type - Type of the interface. Can be CONTROL, BUSINESS_PROVIDED or BUSINESS_REQUIRED.
name - Name of interface you want to get delegation chain.
Returns:
Reference to the interface delegation chain.
Throws:
SOFAException

getControlInterface

java.lang.Object getControlInterface(java.lang.String name)
Returns reference to the control interface implementation.

Parameters:
name - Name of control interface you want to get reference.
Returns:
Reference to the interface implementation or null.

getContent

java.lang.Object getContent()
Returns reference to the component business code.

Returns:
Reference to the component content.

getFrame

java.lang.Object getFrame()
Returns model object of the frame implemented by component.

Returns:
Reference to model object or null if Component control interface has not been initialisated.