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.util.Set<java.lang.String> getControlInterfaces()
          Returns names of control interfaces on the component.
 DelegationChain getDelegationChain(SOFAInterfaceType type, java.lang.String name)
          Returns reference to the interface delegation chain.
 java.util.Set<DelegationChain> getDelegationChains()
          Returns delegation chains for all business interfaces.
 java.lang.Object getFrame()
          Returns model object of the frame implemented by component.
 void setContent(java.lang.Object o)
          Set reference to component content class.
 

Method Detail

getDelegationChain

DelegationChain 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

getDelegationChains

java.util.Set<DelegationChain> getDelegationChains()
Returns delegation chains for all business interfaces.

Returns:
Delegation chains for business interfaces.

getControlInterfaces

java.util.Set<java.lang.String> getControlInterfaces()
Returns names of control interfaces on the component.

Returns:
Names of control interfaces.

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.

setContent

void setContent(java.lang.Object o)
Set reference to component content class.