OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | fractal-commits List | October 2006 Index

<--  Date Index     <--  Thread Index    

CVS update of <fraclet-annotation>/src/org/objectweb/fractal/fraclet/annotation/generator/template (3 files)


    Date: Tuesday, October 31, 2006 @ 22:23:55
  Author: pessemier
    Path: .../src/org/objectweb/fractal/fraclet/annotation/generator/template

Modified: LifeCycleTemplate.java LifeCycleTemplateStart.java
          LifeCycleTemplateStop.java

Simplify the generation of code: remove the management of the state of the 
component in the implementation of the life cycle controller.


-----------------------------+
 LifeCycleTemplate.java      |   10 ++++------
 LifeCycleTemplateStart.java |   13 +++++++------
 LifeCycleTemplateStop.java  |   13 +++++++------
 3 files changed, 18 insertions(+), 18 deletions(-)


Index: 
fraclet/fraclet-annotation/src/org/objectweb/fractal/fraclet/annotation/generator/template/LifeCycleTemplate.java
diff -u 
fraclet/fraclet-annotation/src/org/objectweb/fractal/fraclet/annotation/generator/template/LifeCycleTemplate.java:1.4
 
fraclet/fraclet-annotation/src/org/objectweb/fractal/fraclet/annotation/generator/template/LifeCycleTemplate.java:1.5
--- 
fraclet/fraclet-annotation/src/org/objectweb/fractal/fraclet/annotation/generator/template/LifeCycleTemplate.java:1.4
       Fri Oct 27 16:09:33 2006
+++ 
fraclet/fraclet-annotation/src/org/objectweb/fractal/fraclet/annotation/generator/template/LifeCycleTemplate.java
   Tue Oct 31 22:23:55 2006
@@ -74,7 +74,7 @@
        /**
         * 
         */
-       private boolean _fcState = false;
+//     private boolean _fcState = false;
 
        /**
         * (non-Javadoc) Method automatically generated with Spoon
@@ -82,9 +82,7 @@
         * @see 
org.objectweb.fractal.api.control.LifeCycleController#getFcState()
         */
        public String getFcState() {
-               if (_fcState)
-                       return "STARTED";
-               return "STOPPED";
+               return null;
        }
 
        /**
@@ -94,7 +92,7 @@
         */
        public void startFc() throws IllegalLifeCycleException {
                try {
-                       _fcState = true;
+//                     _fcState = true;
                        _methodCall_.S();
                } catch (Exception e) {
                        throw new IllegalLifeCycleException(e.getMessage());
@@ -109,7 +107,7 @@
        public void stopFc() throws IllegalLifeCycleException {
                try {
                        _methodCallStop_.S();
-                       _fcState = false;
+//                     _fcState = false;
 
                } catch (Exception e) {
                        throw new IllegalLifeCycleException(e.getMessage());
Index: 
fraclet/fraclet-annotation/src/org/objectweb/fractal/fraclet/annotation/generator/template/LifeCycleTemplateStart.java
diff -u 
fraclet/fraclet-annotation/src/org/objectweb/fractal/fraclet/annotation/generator/template/LifeCycleTemplateStart.java:1.1
 
fraclet/fraclet-annotation/src/org/objectweb/fractal/fraclet/annotation/generator/template/LifeCycleTemplateStart.java:1.2
--- 
fraclet/fraclet-annotation/src/org/objectweb/fractal/fraclet/annotation/generator/template/LifeCycleTemplateStart.java:1.1
  Fri Oct 27 16:09:33 2006
+++ 
fraclet/fraclet-annotation/src/org/objectweb/fractal/fraclet/annotation/generator/template/LifeCycleTemplateStart.java
      Tue Oct 31 22:23:55 2006
@@ -61,7 +61,7 @@
        /**
         * 
         */
-       private boolean _fcState = false;
+//     private boolean _fcState = false;
 
        /**
         * (non-Javadoc) Method automatically generated with Spoon
@@ -69,9 +69,10 @@
         * @see 
org.objectweb.fractal.api.control.LifeCycleController#getFcState()
         */
        public String getFcState() {
-               if (_fcState)
-                       return "STARTED";
-               return "STOPPED";
+//             if (_fcState)
+//                     return "STARTED";
+//             return "STOPPED";
+               return null;
        }
 
        /**
@@ -81,7 +82,7 @@
         */
        public void startFc() throws IllegalLifeCycleException {
                try {
-                       _fcState = true;
+//                     _fcState = true;
                        _methodCall_.S();
                } catch (Exception e) {
                        throw new IllegalLifeCycleException(e.getMessage());
@@ -95,7 +96,7 @@
         */
        public void stopFc() throws IllegalLifeCycleException {
                try {
-                       _fcState = false;
+//                     _fcState = false;
                } catch (Exception e) {
                        throw new IllegalLifeCycleException(e.getMessage());
                }
Index: 
fraclet/fraclet-annotation/src/org/objectweb/fractal/fraclet/annotation/generator/template/LifeCycleTemplateStop.java
diff -u 
fraclet/fraclet-annotation/src/org/objectweb/fractal/fraclet/annotation/generator/template/LifeCycleTemplateStop.java:1.1
 
fraclet/fraclet-annotation/src/org/objectweb/fractal/fraclet/annotation/generator/template/LifeCycleTemplateStop.java:1.2
--- 
fraclet/fraclet-annotation/src/org/objectweb/fractal/fraclet/annotation/generator/template/LifeCycleTemplateStop.java:1.1
   Fri Oct 27 16:09:33 2006
+++ 
fraclet/fraclet-annotation/src/org/objectweb/fractal/fraclet/annotation/generator/template/LifeCycleTemplateStop.java
       Tue Oct 31 22:23:55 2006
@@ -62,7 +62,7 @@
        /**
         * 
         */
-       private boolean _fcState = false;
+//     private boolean _fcState = false;
 
        /**
         * (non-Javadoc) Method automatically generated with Spoon
@@ -70,9 +70,10 @@
         * @see 
org.objectweb.fractal.api.control.LifeCycleController#getFcState()
         */
        public String getFcState() {
-               if (_fcState)
-                       return "STARTED";
-               return "STOPPED";
+//             if (_fcState)
+//                     return "STARTED";
+//             return "STOPPED";
+               return null;
        }
 
        /**
@@ -82,7 +83,7 @@
         */
        public void startFc() throws IllegalLifeCycleException {
                try {
-                       _fcState = true;
+//                     _fcState = true;
                } catch (Exception e) {
                        throw new IllegalLifeCycleException(e.getMessage());
                }
@@ -97,7 +98,7 @@
                try {
 
                        _methodCall_.S();
-                       _fcState = false;
+//                     _fcState = false;
 
                } catch (Exception e) {
                        throw new IllegalLifeCycleException(e.getMessage());



<--  Date Index     <--  Thread Index    

Reply via email to:

Powered by MHonArc.

Copyright © 2006-2007, OW2 Consortium | contact | webmaster.