org.objectweb.fractal.fraclet.annotation.generator.template
Class LifeCycleTemplateStart

java.lang.Object
  extended by org.objectweb.fractal.fraclet.annotation.generator.template.LifeCycleTemplateStart
All Implemented Interfaces:
LifeCycleController, spoon.template.Template

public class LifeCycleTemplateStart
extends Object
implements LifeCycleController, spoon.template.Template

A template code to manage the LifeCycle annotation. This template introdudes the implementation of the LifeCycle controller and then call the annotated method in the start or stop method (depending on the parameter of the annotation).

Author:
Nicolas Pessemier

Field Summary
 
Fields inherited from interface org.objectweb.fractal.api.control.LifeCycleController
STARTED, STOPPED
 
Constructor Summary
LifeCycleTemplateStart(spoon.reflect.declaration.CtMethod<?> processedMethod)
           
 
Method Summary
 String getFcState()
          (non-Javadoc) Method automatically generated with Spoon
 void startFc()
          (non-Javadoc) Method automatically generated with Spoon
 void stopFc()
          (non-Javadoc) Method automatically generated with Spoon
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LifeCycleTemplateStart

public LifeCycleTemplateStart(spoon.reflect.declaration.CtMethod<?> processedMethod)
Method Detail

getFcState

public String getFcState()
(non-Javadoc) Method automatically generated with Spoon

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

startFc

public void startFc()
             throws IllegalLifeCycleException
(non-Javadoc) Method automatically generated with Spoon

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

stopFc

public void stopFc()
            throws IllegalLifeCycleException
(non-Javadoc) Method automatically generated with Spoon

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