OW2 Consortium
Search OW2 Mail Archive: 

Advanced Search - Powered by Google


Mail Archive Home | gotm-commits List | June 2005 Index

<--  Date Index  --> <--  Thread Index  -->

CVS update of fractal-xdoclet (23 files)


    Date: Tuesday, June 28, 2005 @ 10:16:34
  Author: rouvoy
    Path: /cvsroot/gotm/fractal-xdoclet

   Added: examples/.cvsignore examples/build.properties examples/build.xml
          
examples/src/fractal/org/objectweb/fractal/example/HelloWorld.fractal
          
          
examples/src/fractal/org/objectweb/fractal/example/SharedHelloWorld.fractal
           examples/src/java/org/objectweb/fractal/example/api/Main.java
          examples/src/java/org/objectweb/fractal/example/api/Service.java
          
examples/src/java/org/objectweb/fractal/example/api/ServiceAttributes.java
          
          examples/src/java/org/objectweb/fractal/example/lib/ClientImpl.java
          
          examples/src/java/org/objectweb/fractal/example/lib/ServerImpl.java
Modified: .classpath .settings/org.eclipse.core.resources.prefs build.xml
 Removed: example/.cvsignore example/build.properties example/build.xml
          example/src/fractal/org/objectweb/fractal/example/HelloWorld.fractal
          
          
example/src/fractal/org/objectweb/fractal/example/SharedHelloWorld.fractal
           example/src/java/org/objectweb/fractal/example/api/Main.java
          example/src/java/org/objectweb/fractal/example/api/Service.java
          
example/src/java/org/objectweb/fractal/example/api/ServiceAttributes.java
          
          example/src/java/org/objectweb/fractal/example/lib/ClientImpl.java
          
          example/src/java/org/objectweb/fractal/example/lib/ServerImpl.java

* renaming the example directory into examples.
* updating the ant build.xml file.


-----------------------------------------------------------------------------+
 .classpath                                                                  
|    4 
 .settings/org.eclipse.core.resources.prefs                                  
|    6 
 build.xml                                                                   
|   79 ++++----
 example/.cvsignore                                                          
|    2 
 example/build.properties                                                    
|   21 --
 example/build.xml                                                           
|   79 --------
 example/src/fractal/org/objectweb/fractal/example/HelloWorld.fractal        
|   11 -
 example/src/fractal/org/objectweb/fractal/example/SharedHelloWorld.fractal  
|   11 -
 example/src/java/org/objectweb/fractal/example/api/Main.java                
|   40 ----
 example/src/java/org/objectweb/fractal/example/api/Service.java             
|   42 ----
 example/src/java/org/objectweb/fractal/example/api/ServiceAttributes.java   
|   55 ------
 example/src/java/org/objectweb/fractal/example/lib/ClientImpl.java          
|   91 ----------
 example/src/java/org/objectweb/fractal/example/lib/ServerImpl.java          
|   90 ---------
 examples/.cvsignore                                                         
|    2 
 examples/build.properties                                                   
|   21 ++
 examples/build.xml                                                          
|   79 ++++++++
 examples/src/fractal/org/objectweb/fractal/example/HelloWorld.fractal       
|   11 +
 examples/src/fractal/org/objectweb/fractal/example/SharedHelloWorld.fractal 
|   11 +
 examples/src/java/org/objectweb/fractal/example/api/Main.java               
|   41 ++++
 examples/src/java/org/objectweb/fractal/example/api/Service.java            
|   43 ++++
 examples/src/java/org/objectweb/fractal/example/api/ServiceAttributes.java  
|   55 ++++++
 examples/src/java/org/objectweb/fractal/example/lib/ClientImpl.java         
|   91 ++++++++++
 examples/src/java/org/objectweb/fractal/example/lib/ServerImpl.java         
|   90 +++++++++
 23 files changed, 494 insertions(+), 481 deletions(-)


Index: fractal-xdoclet/.classpath
diff -u fractal-xdoclet/.classpath:1.4 fractal-xdoclet/.classpath:1.5
--- fractal-xdoclet/.classpath:1.4      Tue Apr 19 11:34:51 2005
+++ fractal-xdoclet/.classpath  Tue Jun 28 10:16:34 2005
@@ -1,9 +1,9 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <classpath>
        <classpathentry kind="src" path="src/java"/>
-       <classpathentry kind="src" path="example/src/fractal"/>
+       <classpathentry kind="src" path="examples/src/fractal"/>
+       <classpathentry kind="src" path="examples/src/java"/>
        <classpathentry kind="src" path="src/xml"/>
-       <classpathentry kind="src" path="example/src/java"/>
        <classpathentry kind="src" path="src/xdt"/>
        <classpathentry kind="con" 
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
        <classpathentry kind="src" path="/fractal-import"/>
Index: fractal-xdoclet/.settings/org.eclipse.core.resources.prefs
diff -u fractal-xdoclet/.settings/org.eclipse.core.resources.prefs:1.3 
fractal-xdoclet/.settings/org.eclipse.core.resources.prefs:1.4
--- fractal-xdoclet/.settings/org.eclipse.core.resources.prefs:1.3      Mon 
Jan 10 17:12:30 2005
+++ fractal-xdoclet/.settings/org.eclipse.core.resources.prefs  Tue Jun 28 
10:16:34 2005
@@ -1,6 +1,6 @@
-#Wed Jan 05 16:53:58 CET 2005
-encoding//example/src/fractal/org/objectweb/fractal/example/SharedHelloWorld.fractal=ISO-8859-1
-encoding//example/src/fractal/org/objectweb/fractal/example/HelloWorld.fractal=ISO-8859-1
+#Mon Jun 27 17:00:36 CEST 2005
 eclipse.preferences.version=1
+encoding//examples/src/fractal/org/objectweb/fractal/example/HelloWorld.fractal=ISO-8859-1
+encoding//examples/src/fractal/org/objectweb/fractal/example/SharedHelloWorld.fractal=ISO-8859-1
 encoding//src/xdt/FcPrimitive.xdt=ISO-8859-1
 encoding//src/xdt/FcTemplate.xdt=ISO-8859-1
Index: fractal-xdoclet/build.xml
diff -u fractal-xdoclet/build.xml:1.5 fractal-xdoclet/build.xml:1.6
--- fractal-xdoclet/build.xml:1.5       Tue Apr 19 11:34:51 2005
+++ fractal-xdoclet/build.xml   Tue Jun 28 10:16:34 2005
@@ -15,34 +15,66 @@
 <!-- USA                                                                  -->
 <!-- Initial developer(s): Romain Rouvoy.                                 -->
 <!-- Contributor(s): ______________________________________.              -->
-<!-- $Id: build.xml,v 1.5 2005/04/19 09:34:51 rouvoy Exp $ -->
+<!-- $Id: build.xml,v 1.6 2005/06/28 08:16:34 rouvoy Exp $ -->
 <!-- ==================================================================== -->
-<project name="Fractal XDoclet tool" default="xdoclet-all">
+<project name="Fractal XDoclet tool" default="all">
   <description>GoTM Project [gotm.objectweb.org] - Fractal 
Xdoclet</description>
 
+  
   <!-- ==================== -->
   <!-- PROPERTY DEFINITIONS -->
   <!-- ==================== -->
-  <import file="${basedir}/../fractal-import/build.xml"/>
-  <property name="fractalxdoclet.jar" value="fractal-xdoclet.jar" />
-  <property name="fractalxdoclet.version" value="0.3" />
-  <property name="fractalxdoclet.dist" value="FractalXdoclet" />
 
+  <import file="${basedir}/../fractal-import/build.xml" optional="on"/>
+
+  <property name="fcxdoclet.jar" value="fractal-xdoclet.jar" />
+  <property name="fcxdoclet.version" value="0.3" />
+  <property name="fcxdoclet.dist" value="FractalXdoclet" />
+
+  <property name="dist-src" 
value="${fcxdoclet.dist}-${fcxdoclet.version}-src" />
+  <property name="dist-bin" 
value="${fcxdoclet.dist}-${fcxdoclet.version}-bin" />
+
+  <property name="dist-src.dir" value="${dist.dir}/${dist-src}" />
+  <property name="dist-bin.dir" value="${dist.dir}/${dist-bin}" />
+
+  
   <!-- ================ -->
   <!-- PATH DEFINITIONS -->
   <!-- ================ -->
+
   <path id="classpath">
     <fileset dir="${build.dir}/${ant.dir}" includes="**/*.jar" />
   </path>
 
-  <!-- ================== -->
-  <!-- TARGET DEFINITIONS -->
-  <!-- ================== -->
-  <target name="xdoclet-all" description="clean + xdoclet-build">
+
+  <!-- ======================= -->
+  <!-- MAIN TARGET DEFINITIONS -->
+  <!-- ======================= -->
+
+  <target name="all" description="clean + import">
     <antcall target="clean" />
     <antcall target="import" />
   </target>
   
+  <target name="export" description="Exports the module into the ${dist.dir} 
directory">
+    <mkdir dir="${dist-src.dir}"/>
+    <copy todir="${dist-src.dir}">
+      <fileset dir="${basedir}">
+        <include name="**/*.*"/>
+        <exclude name="output/**"/>
+      </fileset>
+    </copy>
+  </target>
+
+  <target name="import" depends="xdoclet-build,clear"/>
+  
+  <target name="distrib" depends="xdoclet-dist-src,xdoclet-dist-bin" 
+   description="build all distributions" />
+
+  <!-- ====================== -->
+  <!-- SUB TARGET DEFINITIONS -->
+  <!-- ====================== -->
+
   <target name="-xdoclet-prepare">
     <mkdir dir="${build.dir}/${ant.dir}"/>
     <copy todir="${build.dir}/${ant.dir}">
@@ -82,36 +114,21 @@
   
   <target name="xdoclet-build" depends="xdoclet-deploy" 
    description="Builds Fractal framework.">
-    <jar destfile="${build.dir}/${ant.dir}/${fractalxdoclet.jar}">
+    <jar destfile="${build.dir}/${ant.dir}/${fcxdoclet.jar}">
       <fileset dir="${build.dir}/${class.dir}" includes="**/*" />
     </jar>
   </target>
   
   <target name="check">
-    <check targetfile="${build.dir}/${ant.dir}/${fractalxdoclet.jar}"/>
+    <check targetfile="${build.dir}/${ant.dir}/${fcxdoclet.jar}"/>
   </target>
   
-  <target name="import" depends="xdoclet-build,clear"/>
-  
   <target name="xdoclet-jdoc" depends="-xdoclet" 
    description="Generates the javadoc.">
     <jdocumentation/>
   </target>
   
-  <target name="xdoclet-dist-src" description="Builds the source 
distribution.">
-    <property name="dist-src" 
-      value="${fractalxdoclet.dist}-${fractalxdoclet.version}-src" />
-    <property name="dist-src.dir" value="${dist.dir}/${dist-src}" />
-    <mkdir dir="${dist-src.dir}" />
-    <copy todir="${dist-src.dir}" file="${basedir}/build.xml" />
-    <mkdir dir="${dist-src.dir}/${src.dir}" />
-    <copy todir="${dist-src.dir}/${src.dir}">
-      <fileset dir="${basedir}/${src.dir}" includes="**/*" />
-    </copy>
-    <mkdir dir="${dist-src.dir}/${doc.dir}" />
-    <copy todir="${dist-src.dir}/${doc.dir}">
-      <fileset dir="${basedir}/${doc.dir}" includes="**/*" />
-    </copy>
+  <target name="xdoclet-dist-src" depends="export" description="Builds the 
source distribution.">
     <zip zipfile="${dist.dir}/${dist-src}.zip">
       <fileset dir="${dist.dir}" includes="${dist-src}/**/*" />
     </zip>
@@ -126,9 +143,6 @@
   
   <target name="xdoclet-dist-bin" depends="xdoclet-build,xdoclet-jdoc" 
    description="Builds the binary distribution.">
-    <property name="dist-bin" 
-      value="${fractalxdoclet.dist}-${fractalxdoclet.version}-bin" />
-    <property name="dist-bin.dir" value="${dist.dir}/${dist-bin}" />
     <mkdir dir="${dist-bin.dir}" />
     <copy todir="${dist-bin.dir}">
       <fileset dir="${build.dir}" includes="${doc.dir}/**/*" />
@@ -145,7 +159,4 @@
     <bzip2 src="${dist.dir}/${dist-bin}.tar" 
       zipfile="${dist.dir}/${dist-bin}.tar.bz2" />
   </target>
-  
-  <target name="xdoclet-dist" depends="xdoclet-dist-src,xdoclet-dist-bin" 
-   description="build all distributions" />
 </project>
Index: fractal-xdoclet/example/.cvsignore
diff -u fractal-xdoclet/example/.cvsignore:1.2 
fractal-xdoclet/example/.cvsignore:removed
--- fractal-xdoclet/example/.cvsignore:1.2      Wed Mar  2 16:25:26 2005
+++ fractal-xdoclet/example/.cvsignore  Tue Jun 28 10:16:34 2005
@@ -1,2 +0,0 @@
-build
-output
Index: fractal-xdoclet/example/build.properties
diff -u fractal-xdoclet/example/build.properties:1.2 
fractal-xdoclet/example/build.properties:removed
--- fractal-xdoclet/example/build.properties:1.2        Wed Mar  2 16:25:26 
2005
+++ fractal-xdoclet/example/build.properties    Tue Jun 28 10:16:34 2005
@@ -1,21 +0,0 @@
-# JVM arguments
-# add "-Djulia.loader.gen.log=err" to log the generated classes
-# add "-Djulia.loader.gen.dir=/tmp" to store the generated classes on disk
-
-run.jvm.parameters \
-  -Dfractal.provider=org.objectweb.fractal.julia.Julia \
-  -Djulia.loader=org.objectweb.fractal.julia.loader.DynamicLoader \
-  -Djulia.config=output/build/cfg/julia.cfg
-
-# Java class to be launched
-
-run.classname org.objectweb.fractal.adl.Launcher
-
-# Application arguments
-# add "parser" to build the components automatically, by using a parser
-# add "templates" to build the components through templates
-# add "wrapper" to add an additional composite around each primitive
-
-run.parameters -fractal org.objectweb.fractal.example.HelloWorld r
-#run.parameters -fractal org.objectweb.fractal.example.ClientServerImpl r
-#run.parameters -fractal org.objectweb.fractal.example.SharedHelloWorld r
Index: fractal-xdoclet/example/build.xml
diff -u fractal-xdoclet/example/build.xml:1.4 
fractal-xdoclet/example/build.xml:removed
--- fractal-xdoclet/example/build.xml:1.4       Wed Mar  2 16:25:26 2005
+++ fractal-xdoclet/example/build.xml   Tue Jun 28 10:16:34 2005
@@ -1,79 +0,0 @@
-<!-- ==================================================================== -->
-
-<!-- ObjectWeb GoTM is an open Tx Monitor Project                         -->
-<!-- Contact: http://www.objectweb.org                                    -->
-
-<!-- This library is free software; you can redistribute it and/or        -->
-<!-- modify it under the terms of the GNU Lesser General Public           -->
-<!-- License as published by the Free Software Foundation; either         -->
-<!-- version 2.1 of the License, or any later version.                    -->
-
-<!-- This library is distributed in the hope that it will be useful,      -->
-<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of       -->
-<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU     -->
-<!-- Lesser General Public License for more details.                      -->
-
-<!-- You should have received a copy of the GNU Lesser General Public     -->
-<!-- License along with this library; if not, write to the Free Software  -->
-<!-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 -->
-<!-- USA                                                                  -->
-
-<!-- Initial developer(s): Romain Rouvoy.                                 -->
-<!-- Contributor(s): ______________________________________.              -->
-
-<!-- $Id: build.xml,v 1.4 2005/03/02 15:25:26 rouvoy Exp $ -->
-<!-- ==================================================================== -->
-
-<project name="XDoclet Example" default="all">
-       <description>GoTM Project [gotm.objectweb.org] - Fractal XDoclet 
example</description>
-
-       <!-- ==================== -->
-       <!-- PROPERTY DEFINITIONS -->
-       <!-- ==================== -->
-  <import file="${basedir}/../../fractal-import/build.xml"/>
-  <property file="build.properties"/> 
-       <property name="project.jar"       value="xdoclet-example.jar"/>
-
-
-  <!-- ================ -->
-       <!-- PATH DEFINITIONS -->
-       <!-- ================ -->
-       <path id="classpath">
-               <fileset dir="${build.dir}/${lib.dir}" includes="**/*.jar"/>
-       </path>
-
-       <!-- ================== -->
-       <!-- TARGET DEFINITIONS -->
-       <!-- ================== -->
-       <target name="all" description="clean + example-execute">
-               <antcall target="clean"/>
-               <antcall target="example-execute"/>
-       </target>
-
-       <target name="example-compile" depends="-fractal">
-               <mkdir dir="${build.dir}/${class.dir}"/>
-    <java.c srcdir="${basedir}/${src.dir}/${java.dir}"/>
-       </target>
-
-       <target name="example-build" 
depends="-fractal.xdoclet,example-compile,fractal-adl">
-               <jar destfile="${build.dir}/${lib.dir}/${project.jar}">
-                       <fileset dir="${build.dir}/${class.dir}" 
includes="**/*"/>
-               </jar>
-       </target>
-
-  <target name="example-execute" depends="example-build,clear"
-   description="Run the Fractal example">
-    <java classname="${run.classname}"
-          classpathref="classpath"
-          fork="yes"
-          failonerror="yes">
-       <jvmarg line="${run.jvm.parameters}"/>
-       <arg line="${run.parameters}"/>
-    </java>
-  </target>
-  
-       <target name="example-jdoc" depends="-fractal"
-   description="Generates the javadoc.">
-   <java.doc/> 
-  </target>
-</project>
\ No newline at end of file
Index: 
fractal-xdoclet/example/src/fractal/org/objectweb/fractal/example/HelloWorld.fractal
diff -u 
fractal-xdoclet/example/src/fractal/org/objectweb/fractal/example/HelloWorld.fractal:1.2
 
fractal-xdoclet/example/src/fractal/org/objectweb/fractal/example/HelloWorld.fractal:removed
--- 
fractal-xdoclet/example/src/fractal/org/objectweb/fractal/example/HelloWorld.fractal:1.2
    Fri Dec 17 17:49:13 2004
+++ 
fractal-xdoclet/example/src/fractal/org/objectweb/fractal/example/HelloWorld.fractal
        Tue Jun 28 10:16:34 2005
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1" ?>
-<!DOCTYPE definition PUBLIC "-//objectweb.org//DTD Fractal ADL 2.0//EN" 
"classpath://org/objectweb/fractal/adl/xml/basic.dtd">
-
-<definition name="org.objectweb.fractal.example.HelloWorld">
-  <interface name="r" role="server" signature="java.lang.Runnable"/>
-  <component name="client" 
definition="org.objectweb.fractal.example.lib.FcClientImpl"/>
-  <component name="server" 
definition="org.objectweb.fractal.example.lib.FcServerImpl(-->)"/>
-
-  <binding client="this.r" server="client.r"/>
-  <binding client="client.s" server="server.s"/>
-</definition>
Index: 
fractal-xdoclet/example/src/fractal/org/objectweb/fractal/example/SharedHelloWorld.fractal
diff -u 
fractal-xdoclet/example/src/fractal/org/objectweb/fractal/example/SharedHelloWorld.fractal:1.1
 
fractal-xdoclet/example/src/fractal/org/objectweb/fractal/example/SharedHelloWorld.fractal:removed
--- 
fractal-xdoclet/example/src/fractal/org/objectweb/fractal/example/SharedHelloWorld.fractal:1.1
      Thu Dec 16 17:57:18 2004
+++ 
fractal-xdoclet/example/src/fractal/org/objectweb/fractal/example/SharedHelloWorld.fractal
  Tue Jun 28 10:16:34 2005
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1" ?>
-<!DOCTYPE definition PUBLIC "-//objectweb.org//DTD Fractal ADL 2.0//EN" 
"classpath://org/objectweb/fractal/adl/xml/basic.dtd">
-
-<definition name="org.objectweb.fractal.example.SharedHelloWorld">
-  <interface name="r" role="server" signature="java.lang.Runnable"/>
-  <component name="a" definition="org.objectweb.fractal.example.HelloWorld"/>
-  <component name="b" definition="org.objectweb.fractal.example.HelloWorld">
-    <component name="server" definition="a/server"/>
-  </component>
-  <binding client="this.r" server="a.r"/>
-</definition>
Index: 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/api/Main.java
diff -u 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/api/Main.java:1.2
 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/api/Main.java:removed
--- 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/api/Main.java:1.2
    Wed Jan  5 16:52:25 2005
+++ 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/api/Main.java  
      Tue Jun 28 10:16:34 2005
@@ -1,41 +0,0 @@
-/*====================================================================
-
-GoTM: GoTM is an open Transaction Monitor
-Copyright (C) 2003-2005 INRIA - Jacquard & USTL - LIFL - GOAL
-Contact: gotm-team@xxxxxxxxxxxxx
-
-This library is free software; you can redistribute it and/or
-modify it under the terms of the GNU Lesser General Public
-License as published by the Free Software Foundation; either
-version 2.1 of the License, or any later version.
-
-This library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with this library; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
-USA
-
-Initial developer(s): Romain Rouvoy.
-Contributor(s): .
-
----------------------------------------------------------------------
-$Id: Main.java,v 1.2 2005/01/05 15:52:25 rouvoy Exp $
-====================================================================*/
-package org.objectweb.fractal.example.api;
-
-/**
- * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
- * @version $Revision: 1.2 $
- * @created 14 déc. 2004
- * @fractal.itf name="m"
- */
-public interface Main {
-    /**
-     * @param args
-     */
-    public void main (String[] args);
-}
Index: 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/api/Service.java
diff -u 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/api/Service.java:1.2
 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/api/Service.java:removed
--- 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/api/Service.java:1.2
 Wed Jan  5 16:52:25 2005
+++ 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/api/Service.java
     Tue Jun 28 10:16:34 2005
@@ -1,43 +0,0 @@
-/*====================================================================
-
-GoTM: GoTM is an open Transaction Monitor
-Copyright (C) 2003-2005 INRIA - Jacquard & USTL - LIFL - GOAL
-Contact: gotm-team@xxxxxxxxxxxxx
-
-This library is free software; you can redistribute it and/or
-modify it under the terms of the GNU Lesser General Public
-License as published by the Free Software Foundation; either
-version 2.1 of the License, or any later version.
-
-This library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with this library; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
-USA
-
-Initial developer(s): Romain Rouvoy.
-Contributor(s): .
-
----------------------------------------------------------------------
-$Id: Service.java,v 1.2 2005/01/05 15:52:25 rouvoy Exp $
-====================================================================*/
-package org.objectweb.fractal.example.api;
-
-/**
- * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
- * @version $Revision: 1.2 $
- * @created 14 déc. 2004
- * @fractal.itf name="s"
- * @fractal.itf name="serv"
- */
-public interface Service
-{
-    /**
-     * @param msg
-     */
-    public void print (String msg);
-}
Index: 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/api/ServiceAttributes.java
diff -u 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/api/ServiceAttributes.java:1.2
 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/api/ServiceAttributes.java:removed
--- 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/api/ServiceAttributes.java:1.2
       Wed Jan  5 16:52:25 2005
+++ 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/api/ServiceAttributes.java
   Tue Jun 28 10:16:34 2005
@@ -1,55 +0,0 @@
-/***
- * Julia: France Telecom's implementation of the Fractal API
- * Copyright (C) 2001-2002 France Telecom R&D
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- *
- * Contact: Eric.Bruneton@xxxxxxxxxxxxxxxxxxxx
- *
- * Author: Eric Bruneton
- */
-package org.objectweb.fractal.example.api;
-
-import org.objectweb.fractal.api.control.AttributeController;
-
-/**
- * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
- * @version $Revision: 1.2 $
- * @created 14 déc. 2004
- * @fractal.controller name="attribute"
- */
-public interface ServiceAttributes 
-extends AttributeController 
-{
-    /**
-     * @return the value of the header.
-     */
-    String getHeader();
-    
-    /**
-     * @param header the value of the header.
-     */
-    void setHeader(String header);
-    
-    /**
-     * @return the value of the counter.
-     */
-    int getCount();
-    
-    /**
-     * @param count the counter value.
-     */
-    void setCount(int count);
-}
Index: 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/lib/ClientImpl.java
diff -u 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/lib/ClientImpl.java:1.2
 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/lib/ClientImpl.java:removed
--- 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/lib/ClientImpl.java:1.2
      Wed Jan  5 16:52:25 2005
+++ 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/lib/ClientImpl.java
  Tue Jun 28 10:16:34 2005
@@ -1,91 +0,0 @@
-/***
- * Julia: France Telecom's implementation of the Fractal API
- * Copyright (C) 2001-2002 France Telecom R&D
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- *
- * Contact: Eric.Bruneton@xxxxxxxxxxxxxxxxxxxx
- *
- * Author: Eric Bruneton
- */
-package org.objectweb.fractal.example.lib;
-
-import org.objectweb.fractal.api.control.BindingController;
-import org.objectweb.fractal.example.api.Main;
-import org.objectweb.fractal.example.api.Service;
-
-/**
- * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
- * @version $Revision: 1.2 $
- * @created 14 déc. 2004
- * @fractal.itf name="r" signature="java.lang.Runnable"
- * @fractal.itf name="s" role="client" 
signature="org.objectweb.fractal.example.api.Service"
- */
-public class ClientImpl 
-implements Runnable, Main, BindingController 
-{
-    
-    /** Comment for <code>service</code> */
-    private Service service;
-    
-    /* (non-Javadoc)
-     * @see org.objectweb.fractal.example.api.Main#main(java.lang.String[])
-     */
-    public void main (final String[] args) {
-        this.service.print("hello world");
-    }
-    
-    /* (non-Javadoc)
-     * @see org.objectweb.fractal.api.control.BindingController#listFc()
-     */
-    public String[] listFc () {
-        return new String[] { "s" };
-    }
-    
-    /* (non-Javadoc)
-     * @see 
org.objectweb.fractal.api.control.BindingController#lookupFc(java.lang.String)
-     */
-    public Object lookupFc (final String cItf) {
-        if (cItf.equals("s")) {
-            return this.service;
-        }
-        return null;
-    }
-    
-    /* (non-Javadoc)
-     * @see 
org.objectweb.fractal.api.control.BindingController#bindFc(java.lang.String, 
java.lang.Object)
-     */
-    public void bindFc (final String cItf, final Object sItf) {
-        if (cItf.equals("s")) {
-            this.service = (Service)sItf;
-        }
-    }
-    
-    /* (non-Javadoc)
-     * @see 
org.objectweb.fractal.api.control.BindingController#unbindFc(java.lang.String)
-     */
-    public void unbindFc (final String cItf) {
-        if (cItf.equals("s")) {
-            this.service = null;
-        }
-    }
-
-    /* (non-Javadoc)
-     * @see java.lang.Runnable#run()
-     */
-    public void run() {
-        this.service.print("hello world");
-    }
-}
Index: 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/lib/ServerImpl.java
diff -u 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/lib/ServerImpl.java:1.3
 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/lib/ServerImpl.java:removed
--- 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/lib/ServerImpl.java:1.3
      Wed Jan  5 16:52:25 2005
+++ 
fractal-xdoclet/example/src/java/org/objectweb/fractal/example/lib/ServerImpl.java
  Tue Jun 28 10:16:34 2005
@@ -1,90 +0,0 @@
-/***
- * Julia: France Telecom's implementation of the Fractal API
- * Copyright (C) 2001-2002 France Telecom R&D
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
- *
- * Contact: Eric.Bruneton@xxxxxxxxxxxxxxxxxxxx
- *
- * Author: Eric Bruneton
- */
-package org.objectweb.fractal.example.lib;
-
-import org.objectweb.fractal.example.api.Service;
-import org.objectweb.fractal.example.api.ServiceAttributes;
-
-/**
- * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
- * @version $Revision: 1.3 $
- * @created 14 déc. 2004
- * @fractal.itf
- */
-public class ServerImpl 
-implements Service, ServiceAttributes 
-{
-    /** 
-     * @fractal.attr argument="head" 
-     */
-    private String header = "";
-    
-    /**
-     * @fractal.attr value="3" 
-     */
-    private int count = 0;
-    
-    /* (non-Javadoc)
-     * @see org.objectweb.fractal.example.api.Service#print(java.lang.String)
-     */
-    public void print(final String msg) {
-        new Exception() {
-            public String toString () {
-                return "Server: print method called";
-            }
-        }.printStackTrace();
-        System.err.println("Server: begin printing...");
-        for (int i = 0; i < this.count; ++i) {
-            System.err.println(this.header + msg);
-        }
-        System.err.println("Server: print done.");
-    }
-    
-    /* (non-Javadoc)
-     * @see org.objectweb.fractal.example.api.ServiceAttributes#getHeader()
-     */
-    public String getHeader() {
-        return this.header;
-    }
-    
-    /* (non-Javadoc)
-     * @see 
org.objectweb.fractal.example.api.ServiceAttributes#setHeader(java.lang.String)
-     */
-    public void setHeader(final String header) {
-        this.header = header;
-    }
-    
-    /* (non-Javadoc)
-     * @see org.objectweb.fractal.example.api.ServiceAttributes#getCount()
-     */
-    public int getCount() {
-        return this.count;
-    }
-    
-    /* (non-Javadoc)
-     * @see org.objectweb.fractal.example.api.ServiceAttributes#setCount(int)
-     */
-    public void setCount(final int count) {
-        this.count = count;
-    }
-}
Index: fractal-xdoclet/examples/.cvsignore
diff -u /dev/null fractal-xdoclet/examples/.cvsignore:1.1
--- /dev/null   Tue Jun 28 10:16:34 2005
+++ fractal-xdoclet/examples/.cvsignore Tue Jun 28 10:16:33 2005
@@ -0,0 +1,2 @@
+build
+output
Index: fractal-xdoclet/examples/build.properties
diff -u /dev/null fractal-xdoclet/examples/build.properties:1.1
--- /dev/null   Tue Jun 28 10:16:34 2005
+++ fractal-xdoclet/examples/build.properties   Tue Jun 28 10:16:33 2005
@@ -0,0 +1,21 @@
+# JVM arguments
+# add "-Djulia.loader.gen.log=err" to log the generated classes
+# add "-Djulia.loader.gen.dir=/tmp" to store the generated classes on disk
+
+run.jvm.parameters \
+  -Dfractal.provider=org.objectweb.fractal.julia.Julia \
+  -Djulia.loader=org.objectweb.fractal.julia.loader.DynamicLoader \
+  -Djulia.config=output/build/cfg/julia.cfg
+
+# Java class to be launched
+
+run.classname org.objectweb.fractal.adl.Launcher
+
+# Application arguments
+# add "parser" to build the components automatically, by using a parser
+# add "templates" to build the components through templates
+# add "wrapper" to add an additional composite around each primitive
+
+run.parameters -fractal org.objectweb.fractal.example.HelloWorld r
+#run.parameters -fractal org.objectweb.fractal.example.ClientServerImpl r
+#run.parameters -fractal org.objectweb.fractal.example.SharedHelloWorld r
Index: fractal-xdoclet/examples/build.xml
diff -u /dev/null fractal-xdoclet/examples/build.xml:1.1
--- /dev/null   Tue Jun 28 10:16:34 2005
+++ fractal-xdoclet/examples/build.xml  Tue Jun 28 10:16:33 2005
@@ -0,0 +1,79 @@
+<!-- ==================================================================== -->
+
+<!-- ObjectWeb GoTM is an open Tx Monitor Project                         -->
+<!-- Contact: http://www.objectweb.org                                    -->
+
+<!-- This library is free software; you can redistribute it and/or        -->
+<!-- modify it under the terms of the GNU Lesser General Public           -->
+<!-- License as published by the Free Software Foundation; either         -->
+<!-- version 2.1 of the License, or any later version.                    -->
+
+<!-- This library is distributed in the hope that it will be useful,      -->
+<!-- but WITHOUT ANY WARRANTY; without even the implied warranty of       -->
+<!-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU     -->
+<!-- Lesser General Public License for more details.                      -->
+
+<!-- You should have received a copy of the GNU Lesser General Public     -->
+<!-- License along with this library; if not, write to the Free Software  -->
+<!-- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 -->
+<!-- USA                                                                  -->
+
+<!-- Initial developer(s): Romain Rouvoy.                                 -->
+<!-- Contributor(s): ______________________________________.              -->
+
+<!-- $Id: build.xml,v 1.1 2005/06/28 08:16:33 rouvoy Exp $ -->
+<!-- ==================================================================== -->
+
+<project name="XDoclet Example" default="all">
+       <description>GoTM Project [gotm.objectweb.org] - Fractal XDoclet 
example</description>
+
+       <!-- ==================== -->
+       <!-- PROPERTY DEFINITIONS -->
+       <!-- ==================== -->
+  <import file="${basedir}/../../fractal-import/build.xml"/>
+  <property file="build.properties"/> 
+       <property name="project.jar"       value="xdoclet-example.jar"/>
+
+
+  <!-- ================ -->
+       <!-- PATH DEFINITIONS -->
+       <!-- ================ -->
+       <path id="classpath">
+               <fileset dir="${build.dir}/${lib.dir}" includes="**/*.jar"/>
+       </path>
+
+       <!-- ================== -->
+       <!-- TARGET DEFINITIONS -->
+       <!-- ================== -->
+       <target name="all" description="clean + example-execute">
+               <antcall target="clean"/>
+               <antcall target="example-execute"/>
+       </target>
+
+       <target name="example-compile" depends="-fractal">
+               <mkdir dir="${build.dir}/${class.dir}"/>
+    <java.c srcdir="${basedir}/${src.dir}/${java.dir}"/>
+       </target>
+
+       <target name="example-build" 
depends="-fractal.xdoclet,example-compile,fractal-adl">
+               <jar destfile="${build.dir}/${lib.dir}/${project.jar}">
+                       <fileset dir="${build.dir}/${class.dir}" 
includes="**/*"/>
+               </jar>
+       </target>
+
+  <target name="example-execute" depends="example-build,clear"
+   description="Run the Fractal example">
+    <java classname="${run.classname}"
+          classpathref="classpath"
+          fork="yes"
+          failonerror="yes">
+       <jvmarg line="${run.jvm.parameters}"/>
+       <arg line="${run.parameters}"/>
+    </java>
+  </target>
+  
+       <target name="example-jdoc" depends="-fractal"
+   description="Generates the javadoc.">
+   <java.doc/> 
+  </target>
+</project>
\ No newline at end of file
Index: 
fractal-xdoclet/examples/src/fractal/org/objectweb/fractal/example/HelloWorld.fractal
diff -u /dev/null 
fractal-xdoclet/examples/src/fractal/org/objectweb/fractal/example/HelloWorld.fractal:1.1
--- /dev/null   Tue Jun 28 10:16:34 2005
+++ 
fractal-xdoclet/examples/src/fractal/org/objectweb/fractal/example/HelloWorld.fractal
       Tue Jun 28 10:16:34 2005
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE definition PUBLIC "-//objectweb.org//DTD Fractal ADL 2.0//EN" 
"classpath://org/objectweb/fractal/adl/xml/basic.dtd">
+
+<definition name="org.objectweb.fractal.example.HelloWorld">
+  <interface name="r" role="server" signature="java.lang.Runnable"/>
+  <component name="client" 
definition="org.objectweb.fractal.example.lib.FcClientImpl"/>
+  <component name="server" 
definition="org.objectweb.fractal.example.lib.FcServerImpl(-->)"/>
+
+  <binding client="this.r" server="client.r"/>
+  <binding client="client.s" server="server.s"/>
+</definition>
Index: 
fractal-xdoclet/examples/src/fractal/org/objectweb/fractal/example/SharedHelloWorld.fractal
diff -u /dev/null 
fractal-xdoclet/examples/src/fractal/org/objectweb/fractal/example/SharedHelloWorld.fractal:1.1
--- /dev/null   Tue Jun 28 10:16:34 2005
+++ 
fractal-xdoclet/examples/src/fractal/org/objectweb/fractal/example/SharedHelloWorld.fractal
 Tue Jun 28 10:16:34 2005
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE definition PUBLIC "-//objectweb.org//DTD Fractal ADL 2.0//EN" 
"classpath://org/objectweb/fractal/adl/xml/basic.dtd">
+
+<definition name="org.objectweb.fractal.example.SharedHelloWorld">
+  <interface name="r" role="server" signature="java.lang.Runnable"/>
+  <component name="a" definition="org.objectweb.fractal.example.HelloWorld"/>
+  <component name="b" definition="org.objectweb.fractal.example.HelloWorld">
+    <component name="server" definition="a/server"/>
+  </component>
+  <binding client="this.r" server="a.r"/>
+</definition>
Index: 
fractal-xdoclet/examples/src/java/org/objectweb/fractal/example/api/Main.java
diff -u /dev/null 
fractal-xdoclet/examples/src/java/org/objectweb/fractal/example/api/Main.java:1.1
--- /dev/null   Tue Jun 28 10:16:34 2005
+++ 
fractal-xdoclet/examples/src/java/org/objectweb/fractal/example/api/Main.java 
      Tue Jun 28 10:16:33 2005
@@ -0,0 +1,41 @@
+/*====================================================================
+
+GoTM: GoTM is an open Transaction Monitor
+Copyright (C) 2003-2005 INRIA - Jacquard & USTL - LIFL - GOAL
+Contact: gotm-team@xxxxxxxxxxxxx
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
+USA
+
+Initial developer(s): Romain Rouvoy.
+Contributor(s): .
+
+---------------------------------------------------------------------
+$Id: Main.java,v 1.1 2005/06/28 08:16:33 rouvoy Exp $
+====================================================================*/
+package org.objectweb.fractal.example.api;
+
+/**
+ * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
+ * @version $Revision: 1.1 $
+ * @created 14 déc. 2004
+ * @fractal.itf name="m"
+ */
+public interface Main {
+    /**
+     * @param args
+     */
+    public void main (String[] args);
+}
Index: 
fractal-xdoclet/examples/src/java/org/objectweb/fractal/example/api/Service.java
diff -u /dev/null 
fractal-xdoclet/examples/src/java/org/objectweb/fractal/example/api/Service.java:1.1
--- /dev/null   Tue Jun 28 10:16:34 2005
+++ 
fractal-xdoclet/examples/src/java/org/objectweb/fractal/example/api/Service.java
    Tue Jun 28 10:16:33 2005
@@ -0,0 +1,43 @@
+/*====================================================================
+
+GoTM: GoTM is an open Transaction Monitor
+Copyright (C) 2003-2005 INRIA - Jacquard & USTL - LIFL - GOAL
+Contact: gotm-team@xxxxxxxxxxxxx
+
+This library is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public
+License as published by the Free Software Foundation; either
+version 2.1 of the License, or any later version.
+
+This library is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this library; if not, write to the Free Software
+Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
+USA
+
+Initial developer(s): Romain Rouvoy.
+Contributor(s): .
+
+---------------------------------------------------------------------
+$Id: Service.java,v 1.1 2005/06/28 08:16:33 rouvoy Exp $
+====================================================================*/
+package org.objectweb.fractal.example.api;
+
+/**
+ * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
+ * @version $Revision: 1.1 $
+ * @created 14 déc. 2004
+ * @fractal.itf name="s"
+ * @fractal.itf name="serv"
+ */
+public interface Service
+{
+    /**
+     * @param msg
+     */
+    public void print (String msg);
+}
Index: 
fractal-xdoclet/examples/src/java/org/objectweb/fractal/example/api/ServiceAttributes.java
diff -u /dev/null 
fractal-xdoclet/examples/src/java/org/objectweb/fractal/example/api/ServiceAttributes.java:1.1
--- /dev/null   Tue Jun 28 10:16:34 2005
+++ 
fractal-xdoclet/examples/src/java/org/objectweb/fractal/example/api/ServiceAttributes.java
  Tue Jun 28 10:16:33 2005
@@ -0,0 +1,55 @@
+/***
+ * Julia: France Telecom's implementation of the Fractal API
+ * Copyright (C) 2001-2002 France Telecom R&D
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ * Contact: Eric.Bruneton@xxxxxxxxxxxxxxxxxxxx
+ *
+ * Author: Eric Bruneton
+ */
+package org.objectweb.fractal.example.api;
+
+import org.objectweb.fractal.api.control.AttributeController;
+
+/**
+ * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
+ * @version $Revision: 1.1 $
+ * @created 14 déc. 2004
+ * @fractal.controller name="attribute"
+ */
+public interface ServiceAttributes 
+extends AttributeController 
+{
+    /**
+     * @return the value of the header.
+     */
+    String getHeader();
+    
+    /**
+     * @param header the value of the header.
+     */
+    void setHeader(String header);
+    
+    /**
+     * @return the value of the counter.
+     */
+    int getCount();
+    
+    /**
+     * @param count the counter value.
+     */
+    void setCount(int count);
+}
Index: 
fractal-xdoclet/examples/src/java/org/objectweb/fractal/example/lib/ClientImpl.java
diff -u /dev/null 
fractal-xdoclet/examples/src/java/org/objectweb/fractal/example/lib/ClientImpl.java:1.1
--- /dev/null   Tue Jun 28 10:16:34 2005
+++ 
fractal-xdoclet/examples/src/java/org/objectweb/fractal/example/lib/ClientImpl.java
 Tue Jun 28 10:16:34 2005
@@ -0,0 +1,91 @@
+/***
+ * Julia: France Telecom's implementation of the Fractal API
+ * Copyright (C) 2001-2002 France Telecom R&D
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ * Contact: Eric.Bruneton@xxxxxxxxxxxxxxxxxxxx
+ *
+ * Author: Eric Bruneton
+ */
+package org.objectweb.fractal.example.lib;
+
+import org.objectweb.fractal.api.control.BindingController;
+import org.objectweb.fractal.example.api.Main;
+import org.objectweb.fractal.example.api.Service;
+
+/**
+ * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
+ * @version $Revision: 1.1 $
+ * @created 14 déc. 2004
+ * @fractal.itf name="r" signature="java.lang.Runnable"
+ * @fractal.itf name="s" role="client" 
signature="org.objectweb.fractal.example.api.Service"
+ */
+public class ClientImpl 
+implements Runnable, Main, BindingController 
+{
+    
+    /** Comment for <code>service</code> */
+    private Service service;
+    
+    /* (non-Javadoc)
+     * @see org.objectweb.fractal.example.api.Main#main(java.lang.String[])
+     */
+    public void main (final String[] args) {
+        this.service.print("hello world");
+    }
+    
+    /* (non-Javadoc)
+     * @see org.objectweb.fractal.api.control.BindingController#listFc()
+     */
+    public String[] listFc () {
+        return new String[] { "s" };
+    }
+    
+    /* (non-Javadoc)
+     * @see 
org.objectweb.fractal.api.control.BindingController#lookupFc(java.lang.String)
+     */
+    public Object lookupFc (final String cItf) {
+        if (cItf.equals("s")) {
+            return this.service;
+        }
+        return null;
+    }
+    
+    /* (non-Javadoc)
+     * @see 
org.objectweb.fractal.api.control.BindingController#bindFc(java.lang.String, 
java.lang.Object)
+     */
+    public void bindFc (final String cItf, final Object sItf) {
+        if (cItf.equals("s")) {
+            this.service = (Service)sItf;
+        }
+    }
+    
+    /* (non-Javadoc)
+     * @see 
org.objectweb.fractal.api.control.BindingController#unbindFc(java.lang.String)
+     */
+    public void unbindFc (final String cItf) {
+        if (cItf.equals("s")) {
+            this.service = null;
+        }
+    }
+
+    /* (non-Javadoc)
+     * @see java.lang.Runnable#run()
+     */
+    public void run() {
+        this.service.print("hello world");
+    }
+}
Index: 
fractal-xdoclet/examples/src/java/org/objectweb/fractal/example/lib/ServerImpl.java
diff -u /dev/null 
fractal-xdoclet/examples/src/java/org/objectweb/fractal/example/lib/ServerImpl.java:1.1
--- /dev/null   Tue Jun 28 10:16:34 2005
+++ 
fractal-xdoclet/examples/src/java/org/objectweb/fractal/example/lib/ServerImpl.java
 Tue Jun 28 10:16:34 2005
@@ -0,0 +1,90 @@
+/***
+ * Julia: France Telecom's implementation of the Fractal API
+ * Copyright (C) 2001-2002 France Telecom R&D
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ * Contact: Eric.Bruneton@xxxxxxxxxxxxxxxxxxxx
+ *
+ * Author: Eric Bruneton
+ */
+package org.objectweb.fractal.example.lib;
+
+import org.objectweb.fractal.example.api.Service;
+import org.objectweb.fractal.example.api.ServiceAttributes;
+
+/**
+ * @author <a href="mailto:Romain.Rouvoy@xxxxxxx";>Romain Rouvoy</a>
+ * @version $Revision: 1.1 $
+ * @created 14 déc. 2004
+ * @fractal.itf
+ */
+public class ServerImpl 
+implements Service, ServiceAttributes 
+{
+    /** 
+     * @fractal.attr argument="head" 
+     */
+    private String header = "";
+    
+    /**
+     * @fractal.attr value="3" 
+     */
+    private int count = 0;
+    
+    /* (non-Javadoc)
+     * @see org.objectweb.fractal.example.api.Service#print(java.lang.String)
+     */
+    public void print(final String msg) {
+        new Exception() {
+            public String toString () {
+                return "Server: print method called";
+            }
+        }.printStackTrace();
+        System.err.println("Server: begin printing...");
+        for (int i = 0; i < this.count; ++i) {
+            System.err.println(this.header + msg);
+        }
+        System.err.println("Server: print done.");
+    }
+    
+    /* (non-Javadoc)
+     * @see org.objectweb.fractal.example.api.ServiceAttributes#getHeader()
+     */
+    public String getHeader() {
+        return this.header;
+    }
+    
+    /* (non-Javadoc)
+     * @see 
org.objectweb.fractal.example.api.ServiceAttributes#setHeader(java.lang.String)
+     */
+    public void setHeader(final String header) {
+        this.header = header;
+    }
+    
+    /* (non-Javadoc)
+     * @see org.objectweb.fractal.example.api.ServiceAttributes#getCount()
+     */
+    public int getCount() {
+        return this.count;
+    }
+    
+    /* (non-Javadoc)
+     * @see org.objectweb.fractal.example.api.ServiceAttributes#setCount(int)
+     */
+    public void setCount(final int count) {
+        this.count = count;
+    }
+}



<--  Date Index  --> <--  Thread Index  -->

Reply via email to:

Powered by MHonArc.

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