org.objectweb.dream.control.activity.task
Class ContainerLifeCycleMixin

java.lang.Object
  extended byorg.objectweb.dream.control.activity.task.ContainerLifeCycleMixin
All Implemented Interfaces:
LifeCycleController, TaskLifeCycleController

public abstract class ContainerLifeCycleMixin
extends Object
implements TaskLifeCycleController

Mixin that delegate method to content object. The content of the component must implements TaskLifeCycleController.


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
 void asyncStop(TaskStoppedListener listener)
          Stops asynchronously the task, this interface belong.
 TaskLifeCycleController getContent()
          Returns the content of the component.
 String getFcState()
           
 void startFc()
           
 void stopFc()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_this_weaveableOptC

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

Method Detail

asyncStop

public void asyncStop(TaskStoppedListener listener)
Description copied from interface: TaskLifeCycleController
Stops asynchronously the task, this interface belong. This method returns immediatly. The given listener will be notified when the task has stopped. If the task is already in the LifeCycleController.STOPPEDstate, the listener is immediatly notified.

Specified by:
asyncStop in interface TaskLifeCycleController
Parameters:
listener - listener nitified when the task has stopped.
See Also:
TaskLifeCycleController.asyncStop(TaskStoppedListener)

getFcState

public String getFcState()
Specified by:
getFcState in interface LifeCycleController
See Also:
LifeCycleController.getFcState()

startFc

public void startFc()
             throws IllegalLifeCycleException
Specified by:
startFc in interface LifeCycleController
Throws:
IllegalLifeCycleException
See Also:
LifeCycleController.startFc()

stopFc

public void stopFc()
            throws IllegalLifeCycleException
Specified by:
stopFc in interface LifeCycleController
Throws:
IllegalLifeCycleException
See Also:
LifeCycleController.stopFc()

getContent

public TaskLifeCycleController getContent()
Returns the content of the component.

Returns:
the content of the component.


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