org.objectweb.fractal.julia
Class BasicComponentMixin

java.lang.Object
  extended by org.objectweb.fractal.julia.BasicComponentMixin
All Implemented Interfaces:
Component, Controller

public abstract class BasicComponentMixin
extends Object
implements Controller, Component

Provides a basic implementation of the Component interface.

Requirements


Field Summary
 Map fcInterfaces
          The interfaces of this component.
 Type fcType
          The type of this component.
 
Method Summary
abstract  void _super_initFcController(InitializationContext ic)
          The initFcController method overriden by this mixin.
 Object getFcInterface(String interfaceName)
           
 Object[] getFcInterfaces()
           
 Type getFcType()
           
 void initFcController(InitializationContext ic)
          Initializes the fields of this mixin from the given context, and then calls the overriden method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fcType

public Type fcType
The type of this component.


fcInterfaces

public Map fcInterfaces
The interfaces of this component. This map associates each interface to its name.

Method Detail

initFcController

public void initFcController(InitializationContext ic)
                      throws InstantiationException
Initializes the fields of this mixin from the given context, and then calls the overriden method.

Specified by:
initFcController in interface Controller
Parameters:
ic - information about the component to which this controller object belongs.
Throws:
InstantiationException - if the initialization fails.

getFcType

public Type getFcType()
Specified by:
getFcType in interface Component

getFcInterfaces

public Object[] getFcInterfaces()
Specified by:
getFcInterfaces in interface Component

getFcInterface

public Object getFcInterface(String interfaceName)
                      throws NoSuchInterfaceException
Specified by:
getFcInterface in interface Component
Throws:
NoSuchInterfaceException

_super_initFcController

public abstract void _super_initFcController(InitializationContext ic)
                                      throws InstantiationException
The initFcController method overriden by this mixin.

Parameters:
ic - information about the component to which this controller object belongs.
Throws:
InstantiationException - if the initialization fails.