org.objectweb.fractal.fraclet.annotation.generator.template
Class LifeCycleTemplate
java.lang.Object
org.objectweb.fractal.fraclet.annotation.generator.template.LifeCycleTemplate
- All Implemented Interfaces:
- LifeCycleController, spoon.template.Template
public class LifeCycleTemplate
- 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
Constructor Summary |
LifeCycleTemplate(spoon.reflect.declaration.CtMethod<?> methodToStart,
spoon.reflect.declaration.CtMethod<?> methodToStop)
|
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 |
LifeCycleTemplate
public LifeCycleTemplate(spoon.reflect.declaration.CtMethod<?> methodToStart,
spoon.reflect.declaration.CtMethod<?> methodToStop)
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()