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

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

public abstract class BasicContentControllerMixin
extends Object
implements Controller, ContentController

Provides a basic implementation of the ContentController interface.

Requirements


Field Summary
 Component _this_weaveableOptC
          The weaveableOptC field required by this mixin.
 Map fcInternalInterfaces
          The internal interfaces of the component to which this controller object belongs.
 List fcSubComponents
          The sub components of the component to which this controller object belongs.
 
Method Summary
abstract  void _super_initFcController(InitializationContext ic)
          The initFcController method overriden by this mixin.
 void addFcSubComponent(Component subComponent)
           
 Object getFcInternalInterface(String interfaceName)
           
 Object[] getFcInternalInterfaces()
           
 Component[] getFcSubComponents()
           
 void initFcController(InitializationContext ic)
          Initializes the fields of this mixin and then calls the overriden method.
 void removeFcSubComponent(Component subComponent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fcInternalInterfaces

public Map fcInternalInterfaces
The internal interfaces of the component to which this controller object belongs.


fcSubComponents

public List fcSubComponents
The sub components of the component to which this controller object belongs.


_this_weaveableOptC

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

Method Detail

initFcController

public void initFcController(InitializationContext ic)
                      throws InstantiationException
Initializes the fields of this mixin 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.

getFcInternalInterfaces

public Object[] getFcInternalInterfaces()
Specified by:
getFcInternalInterfaces in interface ContentController

getFcInternalInterface

public Object getFcInternalInterface(String interfaceName)
                              throws NoSuchInterfaceException
Specified by:
getFcInternalInterface in interface ContentController
Throws:
NoSuchInterfaceException

getFcSubComponents

public Component[] getFcSubComponents()
Specified by:
getFcSubComponents in interface ContentController

addFcSubComponent

public void addFcSubComponent(Component subComponent)
                       throws IllegalContentException,
                              IllegalLifeCycleException
Specified by:
addFcSubComponent in interface ContentController
Throws:
IllegalContentException
IllegalLifeCycleException

removeFcSubComponent

public void removeFcSubComponent(Component subComponent)
                          throws IllegalContentException,
                                 IllegalLifeCycleException
Specified by:
removeFcSubComponent in interface ContentController
Throws:
IllegalContentException
IllegalLifeCycleException

_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.