org.objectweb.fractal.julia.control.content
Class TypeContentMixin

java.lang.Object
  extended by org.objectweb.fractal.julia.control.content.TypeContentMixin
All Implemented Interfaces:
ContentController

public abstract class TypeContentMixin
extends Object
implements ContentController

Provides basic type system related checks to a ContentController.

Requirements


Field Summary
 Map _this_fcInternalInterfaces
          The fcInterfaces field required by this mixin.
 Component _this_weaveableC
          The weaveableC field required by this mixin.
 
Method Summary
abstract  Object _super_getFcInternalInterface(String interfaceName)
          The getFcInternalInterface method overriden by this mixin.
 Object getFcInternalInterface(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.control.ContentController
addFcSubComponent, getFcInternalInterfaces, getFcSubComponents, removeFcSubComponent
 

Field Detail

_this_weaveableC

public Component _this_weaveableC
The weaveableC field required by this mixin. This field is supposed to reference the Component interface of the component to which this controller object belongs.


_this_fcInternalInterfaces

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

Method Detail

getFcInternalInterface

public Object getFcInternalInterface(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_fcInternalInterfaces map.

Specified by:
getFcInternalInterface in interface ContentController
Parameters:
interfaceName - the name of the internal interface that must be returned.
Returns:
the internal 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.

_super_getFcInternalInterface

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

Parameters:
interfaceName - the name of the internal interface that must be returned.
Returns:
the internal 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.