org.objectweb.fractal.julia.control.lifecycle
Class TypeLifeCycleMixin

java.lang.Object
  extended by org.objectweb.fractal.julia.control.lifecycle.TypeLifeCycleMixin
All Implemented Interfaces:
LifeCycleController

public abstract class TypeLifeCycleMixin
extends Object
implements LifeCycleController

Provides basic type system related checks to a LifeCycleController.

Requirements


Field Summary
 Component _this_weaveableC
          The weaveableC field required by this mixin.
 
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController
STARTED, STOPPED
 
Method Summary
abstract  void _super_startFc()
          The startFc method overriden by this mixin.
 void checkFcMandatoryInterfaces(Component c)
          Checks that all the mandatory client interface of the given component are bound.
 void startFc()
          Checks the mandatory client interfaces of the component (and of all its sub components) 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.LifeCycleController
getFcState, stopFc
 

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.

Method Detail

startFc

public void startFc()
             throws IllegalLifeCycleException
Checks the mandatory client interfaces of the component (and of all its sub components) and then calls the overriden method.

Specified by:
startFc in interface LifeCycleController
Throws:
IllegalLifeCycleException - if a problem occurs.

checkFcMandatoryInterfaces

public void checkFcMandatoryInterfaces(Component c)
                                throws IllegalBindingException
Checks that all the mandatory client interface of the given component are bound.

Parameters:
c - a component.
Throws:
IllegalBindingException - if a mandatory client interface of the given component is not bound.

_super_startFc

public abstract void _super_startFc()
                             throws IllegalLifeCycleException
The startFc method overriden by this mixin.

Throws:
IllegalLifeCycleException - if a problem occurs.