org.objectweb.dream.control.lifecycle
Class FullLifeCycleMixin

java.lang.Object
  extended byorg.objectweb.dream.control.lifecycle.FullLifeCycleMixin

public abstract class FullLifeCycleMixin
extends Object

This mixin provides a useable implementation of the LifeCycleController.stopFc() method. This method stop every sub components providing a lifecycle controller at once.

Requirements


Field Summary
 Component _this_weaveableC
          The weaveableC field required by this mixin.
 int _this_weaveableFcState
          the weaveableFcState field reqired by this mixin.
 Logger _this_weaveableLCCLogger
          The weaveableLCCLogger field required by this mixin.
 
Constructor Summary
FullLifeCycleMixin()
           
 
Method Summary
abstract  void _this_setFcState(boolean started)
          The setFcState method required by this mixin.
abstract  void _this_stopFc(LifeCycleCoordinator[] components)
          the stopFc method required by this mixin.
 LifeCycleCoordinator[] getFcLifeCycleControllers()
          Returns the lifecycle control interface of sub components.
 void stopFc()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_this_weaveableC

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


_this_weaveableFcState

public int _this_weaveableFcState
the weaveableFcState field reqired by this mixin. This field is supposed to reference the current state of the component lifecycle.

See Also:
SimpleLifeCycleControllerMixin.weaveableFcState

_this_weaveableLCCLogger

public Logger _this_weaveableLCCLogger
The weaveableLCCLogger field required by this mixin. This field is supposed to reference the Loggerof this controller.

Constructor Detail

FullLifeCycleMixin

public FullLifeCycleMixin()
Method Detail

stopFc

public void stopFc()
            throws IllegalLifeCycleException
Throws:
IllegalLifeCycleException
See Also:
LifeCycleController.stopFc()

getFcLifeCycleControllers

public LifeCycleCoordinator[] getFcLifeCycleControllers()
                                                 throws IllegalLifeCycleException
Returns the lifecycle control interface of sub components.

Returns:
array of LifeCycleCoordinatorof sub components.
Throws:
IllegalLifeCycleException - if a problem occurs.

_this_setFcState

public abstract void _this_setFcState(boolean started)
                               throws IllegalLifeCycleException
The setFcState method required by this mixin. This method is supposed to work as this setFcState method.

Parameters:
started - true to set the lifecycle state of the components to STARTED, or false to set this state to STOPPED.
Throws:
IllegalLifeCycleException - if a problem occurs.

_this_stopFc

public abstract void _this_stopFc(LifeCycleCoordinator[] components)
                           throws IllegalLifeCycleException
the stopFc method required by this mixin. This method is supposed to work a this BasicLifeCycleCoordinatorMixin.stopFc(LifeCycleCoordinator[]) method.

Throws:
IllegalLifeCycleException
See Also:
BasicLifeCycleCoordinatorMixin.stopFc(LifeCycleCoordinator[])


Copyright © 2003, 2004 - INRIA Rhone-Alpes - All Rights Reserved.