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

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

public abstract class ContainerLifeCycleMixin
extends Object
implements LifeCycleCoordinator

Provides container related functions to a LifeCycleController.

Requirements


Field Summary
 Component _this_weaveableOptC
          The weaveableOptC field required by this mixin.
 
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController
STARTED, STOPPED
 
Method Summary
abstract  boolean _super_setFcStarted()
          The setFcStarted method overriden by this mixin.
abstract  boolean _super_setFcStopped()
          The setFcStopped method overriden by this mixin.
 void setFcContentState(boolean started)
          Calls the startFc or stopFc method on the encapsulated component.
 boolean setFcStarted()
          Calls the overriden method and then calls the setFcContentState method.
 boolean setFcStopped()
          Calls the overriden method and then calls the setFcContentState 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.julia.control.lifecycle.LifeCycleCoordinator
fcActivated, fcInactivated, setFcStopping
 
Methods inherited from interface org.objectweb.fractal.api.control.LifeCycleController
getFcState, startFc, stopFc
 

Field Detail

_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

setFcStarted

public boolean setFcStarted()
                     throws IllegalLifeCycleException
Calls the overriden method and then calls the setFcContentState method.

Specified by:
setFcStarted in interface LifeCycleCoordinator
Returns:
true if the execution state has changed, or false if it had already the STARTED value.
Throws:
IllegalLifeCycleException - if a problem occurs.

setFcStopped

public boolean setFcStopped()
                     throws IllegalLifeCycleException
Calls the overriden method and then calls the setFcContentState method.

Specified by:
setFcStopped in interface LifeCycleCoordinator
Returns:
true if the execution state has changed, or false if it had already the STOPPED value.
Throws:
IllegalLifeCycleException - if a problem occurs.

setFcContentState

public void setFcContentState(boolean started)
                       throws IllegalLifeCycleException
Calls the startFc or stopFc method on the encapsulated component. This method does nothing if there is no encapsulated component, or if it does not implement the LifeCycleController interface.

Parameters:
started - true to call the startFc, or false to call the stopFc method.
Throws:
IllegalLifeCycleException - if a problem occurs.

_super_setFcStarted

public abstract boolean _super_setFcStarted()
                                     throws IllegalLifeCycleException
The setFcStarted method overriden by this mixin.

Returns:
true if the execution state has changed, or false if it had already the STARTED value.
Throws:
IllegalLifeCycleException - if a problem occurs.

_super_setFcStopped

public abstract boolean _super_setFcStopped()
                                     throws IllegalLifeCycleException
The setFcStopped method overriden by this mixin.

Returns:
true if the execution state has changed, or false if it had already the STOPPED value.
Throws:
IllegalLifeCycleException - if a problem occurs.