org.objectweb.fractal.julia
Class TypeComponentMixin

java.lang.Object
  extended by org.objectweb.fractal.julia.TypeComponentMixin
All Implemented Interfaces:
Component

public abstract class TypeComponentMixin
extends Object
implements Component

Provides basic type system related checks to a Component.

Requirements


Field Summary
 Map _this_fcInterfaces
          The fcInterfaces field required by this mixin.
 
Method Summary
abstract  Object _super_getFcInterface(String interfaceName)
          The getFcInterface method overriden by this mixin.
abstract  Type _this_getFcType()
          The getFcType method required by this mixin.
 Object getFcInterface(String interfaceName)
          Checks the interface name against the component's type and then calls the overriden method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.fractal.api.Component
getFcInterfaces, getFcType
 

Field Detail

_this_fcInterfaces

public Map _this_fcInterfaces
The fcInterfaces field required by this mixin. This field is supposed to store the interfaces of the component.

Method Detail

getFcInterface

public Object getFcInterface(String interfaceName)
                      throws NoSuchInterfaceException
Checks the interface name against the component's type and then calls the overriden method. This method also creates the collection interfaces when needed, and puts them in the _this_fcInterfaces map.

Specified by:
getFcInterface in interface Component
Parameters:
interfaceName - the name of the external interface that must be returned.
Returns:
the external interface of the component to which this interface belongs, whose name is equal to the given name.
Throws:
NoSuchInterfaceException - if there is no such interface.

_this_getFcType

public abstract Type _this_getFcType()
The getFcType method required by this mixin.

Returns:
the type of the component to which this interface belongs.

_super_getFcInterface

public abstract Object _super_getFcInterface(String interfaceName)
                                      throws NoSuchInterfaceException
The getFcInterface method overriden by this mixin.

Parameters:
interfaceName - the name of the external interface that must be returned.
Returns:
the external interface of the component to which this interface belongs, whose name is equal to the given name.
Throws:
NoSuchInterfaceException - if there is no such interface.