Commit 886f8de6 authored by dfournier's avatar dfournier
Browse files

* Add the Generate Factory

* Update Assembly Factory pom's
* Update HelloWord Example
* Update HelloWorld WebService Example
* Disable Forge and Meteo Example
parent 88b21aa2
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.scorware.assembly.example</groupId>
<artifactId>parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<groupId>org.scorware.assembly.example</groupId>
<artifactId>forge-assembly</artifactId>
<packaging>jar</packaging>
<name>Assembly Factory Examples : Forge</name>
<dependencies>
<dependency><!-- Artifact specified in the <mixins> tag -->
<groupId>org.scorware.tinfi.examples</groupId>
<artifactId>forge</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.scorware.assembly</groupId>
<artifactId>factory</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<main>org.scorware.forge.assembly.Client</main>
</properties>
</project>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.scorware.assembly.example</groupId>
<artifactId>parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<groupId>org.scorware.assembly.example</groupId>
<artifactId>forge-assembly</artifactId>
<packaging>jar</packaging>
<name>Assembly Factory Examples : Forge</name>
<dependencies>
<dependency><!-- Artifact specified in the <mixins> tag -->
<groupId>org.scorware.tinfi.examples</groupId>
<artifactId>forge</artifactId>
<version>${tinfi.version}</version>
</dependency>
<dependency>
<groupId>org.scorware.assembly</groupId>
<artifactId>factory</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<main>org.scorware.forge.assembly.Client</main>
</properties>
</project>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.scorware.assembly.example</groupId>
<artifactId>parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<groupId>org.scorware.assembly.example</groupId>
<artifactId>helloworld-composite</artifactId>
<packaging>jar</packaging>
<name>Assembly Factory Examples : HelloWorld Composite</name>
<dependencies>
<dependency>
<groupId>org.scorware.assembly</groupId>
<artifactId>factory</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency> <!-- Needed in all cases -->
<groupId>org.scorware.tinfi</groupId>
<artifactId>compiler</artifactId>
<version>${project.version}</version>
</dependency>
<dependency> <!-- Needed in all cases -->
<groupId>org.objectweb.fractal.fractaladl.juliac</groupId>
<artifactId>runtime</artifactId>
<version>1.2</version>
</dependency>
<dependency> <!-- Artifact specified in the <mixins> tag -->
<groupId>org.scorware.tinfi</groupId>
<artifactId>mixins</artifactId>
<version>${project.version}</version>
<classifier>sources</classifier>
</dependency>
<dependency> <!-- Artifact specified in the <mixins> tag -->
<groupId>org.objectweb.fractal.julia</groupId>
<artifactId>julia-mixins</artifactId>
<version>2.5.2</version>
<classifier>sources</classifier>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>
org.objectweb.fractal.fractaladl.juliac.plugin
</groupId>
<artifactId>maven-juliac-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>juliac-compile</id>
<phase>generate-sources</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- ================================================= -->
<!-- Choose one of the following for SCA components -->
<!-- with a control membrane: -->
<!-- - FCOOCtrlSourceCodeGenerator: object-oriented -->
<!-- - FCCompCtrlSourceCodeGenerator: component-based -->
<!-- ================================================= -->
<srcs>src/main/java</srcs>
<opt>
org.scorware.tinfi.juliac.FCOOCtrlSourceCodeGenerator
</opt>
<mixins>org.scorware.tinfi:mixins:${project.version}:sources org.objectweb.fractal.julia:julia-mixins:2.5.2:sources</mixins>
<!-- opt>org.scorware.tinfi.juliac.FCCompCtrlSourceCodeGenerator</opt -->
<!-- mixins>org.scorware.tinfi:mixins:${project.version}:sources org.objectweb.fractal.julia:julia-mixins:${julia.version}:sources org.objectweb.fractal.julia:koch-mixins:${julia.version}:sources</mixins -->
<types>example.hw.HelloWorldAssembly</types>
<sysargs>julia.config=tinfi.cfg</sysargs>
<!-- verbose>true</verbose -->
</configuration>
</plugin>
</plugins>
</build>
<properties>
<main>example.hw.Client</main>
</properties>
</project>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.scorware.assembly.example</groupId>
<artifactId>parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<groupId>org.scorware.assembly.example</groupId>
<artifactId>helloworld-composite</artifactId>
<packaging>jar</packaging>
<name>Assembly Factory Examples : HelloWorld Composite</name>
<dependencies>
<dependency>
<groupId>org.scorware.assembly</groupId>
<artifactId>factory</artifactId>
<version>${project.version}</version>
</dependency>
<dependency><!-- Needed in all cases -->
<groupId>org.scorware.tinfi</groupId>
<artifactId>compiler</artifactId>
<version>${tinfi.version}</version>
</dependency>
<dependency><!-- Needed in all cases -->
<groupId>org.objectweb.fractal.fractaladl.juliac</groupId>
<artifactId>runtime</artifactId>
<version>${juliac.version}</version>
</dependency>
<dependency><!-- Artifact specified in the <mixins> tag -->
<groupId>org.scorware.tinfi</groupId>
<artifactId>mixins</artifactId>
<version>${tinfi.version}</version>
<classifier>sources</classifier>
</dependency>
<dependency><!-- Artifact specified in the <mixins> tag -->
<groupId>org.objectweb.fractal.julia</groupId>
<artifactId>julia-mixins</artifactId>
<version>${julia-mixins.version}</version>
<classifier>sources</classifier>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.objectweb.fractal.fractaladl.juliac.plugin</groupId>
<artifactId>maven-juliac-plugin</artifactId>
<version>${juliac.version}</version>
<executions>
<execution>
<id>juliac-compile</id>
<phase>generate-sources</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- ================================================= -->
<!-- Choose one of the following for SCA components -->
<!-- with a control membrane: -->
<!-- - FCOOCtrlSourceCodeGenerator: object-oriented -->
<!-- - FCCompCtrlSourceCodeGenerator: component-based -->
<!-- ================================================= -->
<srcs>src/main/java</srcs>
<opt>org.scorware.tinfi.juliac.FCOOCtrlSourceCodeGenerator</opt>
<mixins>org.scorware.tinfi:mixins:${tinfi.version}:sources org.objectweb.fractal.julia:julia-mixins:${julia-mixins.version}:sources</mixins>
<!-- opt>org.scorware.tinfi.juliac.FCCompCtrlSourceCodeGenerator</opt -->
<!-- mixins>org.scorware.tinfi:mixins:${project.version}:sources org.objectweb.fractal.julia:julia-mixins:${julia.version}:sources org.objectweb.fractal.julia:koch-mixins:${julia.version}:sources</mixins -->
<types>example.hw.HelloWorldAssembly</types>
<sysargs>julia.config=tinfi.cfg</sysargs>
<!-- verbose>true</verbose -->
</configuration>
<dependencies>
<dependency>
<groupId>org.scorware.tinfi</groupId>
<artifactId>mixins</artifactId>
<version>${tinfi.version}</version>
<classifier>sources</classifier>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<properties>
<main>example.hw.Client</main>
</properties>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.scorware.assembly.example</groupId>
<artifactId>parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<groupId>org.scorware.assembly.example</groupId>
<artifactId>helloworld-ws</artifactId>
<name>Assembly Factory Examples : HelloWorld WebService</name>
<packaging>jar</packaging>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>
org.objectweb.fractal.fractaladl.juliac.plugin
</groupId>
<artifactId>maven-juliac-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>juliac-compile</id>
<phase>process-sources</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<opt>
org.scorware.tinfi.juliac.FCOOCtrlSourceCodeGenerator
</opt>
<srcs>src/main/resources src/main/java</srcs>
<mixins> org.scorware.tinfi:mixins:1.0-SNAPSHOT:sources org.objectweb.fractal.julia:julia-mixins:2.5.2:sources </mixins>
<types>${client.adl}</types>
<sysargs>julia.config=tinfi.cfg</sysargs>
<fractaladl.backend>
org.objectweb.fractal.bf.adl.MyStaticFractalBackend
</fractaladl.backend>
<verbose>true</verbose>
</configuration>
<dependencies>
<dependency>
<groupId>org.scorware.tinfi</groupId>
<artifactId>mixins</artifactId>
<version>1.0-SNAPSHOT</version>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.objectweb.fractal.julia</groupId>
<artifactId>julia-mixins</artifactId>
<version>2.5.2</version>
<classifier>sources</classifier>
</dependency>
<dependency>
<groupId>org.objectweb.fractal.bf</groupId>
<artifactId>adl</artifactId>
<version>0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>
org.objectweb.fractal.bf.connectors
</groupId>
<artifactId>soap-cxf</artifactId>
<version>0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.objectweb.fractal.bf</groupId>
<artifactId>core</artifactId>
<version>0.1-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.scorware.assembly</groupId>
<artifactId>factory</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.scorware.tinfi.examples</groupId>
<artifactId>helloworld</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<properties>
<client.adl>example.hw.HelloWorldWS</client.adl>
<fractaladl.itf>r</fractaladl.itf>
<main>example.hw.Client</main>
</properties>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.scorware.assembly.example</groupId>
<artifactId>parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<groupId>org.scorware.assembly.example</groupId>
<artifactId>helloworld-ws</artifactId>
<name>Assembly Factory Examples : HelloWorld WebService</name>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>org.scorware.assembly</groupId>
<artifactId>factory</artifactId>
<version>${project.version}</version>
</dependency>
<dependency><!-- Artifact specified in the <mixins> tag -->
<groupId>org.scorware.tinfi</groupId>
<artifactId>mixins</artifactId>
<version>${tinfi.version}</version>
<classifier>sources</classifier>
</dependency>
<dependency><!-- Artifact specified in the <mixins> tag -->
<groupId>org.objectweb.fractal.julia</groupId>
<artifactId>julia-mixins</artifactId>
<version>${julia-mixins.version}</version>
<classifier>sources</classifier>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.scorware.assembly</groupId>
<artifactId>generate-factory</artifactId>
<version>${project.version}</version>
<executions>
<execution>
<id>generate-factory</id>
<phase>generate-sources</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<srcs>src/main/java src/main/resources</srcs>
<mixins>org.scorware.tinfi:mixins:${tinfi.version}:sources org.objectweb.fractal.julia:julia-mixins:${julia-mixins.version}:sources</mixins>
<composite>example/hw/HelloWorldWS</composite>
</configuration>
<dependencies>
<dependency>
<groupId>org.objectweb.fractal.bf</groupId>
<artifactId>adl</artifactId>
<version>0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.objectweb.fractal.bf.connectors</groupId>
<artifactId>soap-cxf</artifactId>
<version>0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.objectweb.fractal.bf</groupId>
<artifactId>core</artifactId>
<version>0.1-SNAPSHOT</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<properties>
<client.adl>example.hw.HelloWorldWS</client.adl>
<fractaladl.itf>r</fractaladl.itf>
<main>example.hw.Client</main>
</properties>
</project>
package example.hw;
import org.osoa.sca.annotations.Init;
import org.osoa.sca.annotations.Reference;
public class ClientImpl implements Runnable {
public ClientImpl() {
System.err.println("CLIENT created");
}
@Init
public void init() {
System.err.println("CLIENT initialized");
}
public void run() {
s.print("hello world");
}
@Reference
public Service s;
}
\ No newline at end of file
package example.hw;
import org.osoa.sca.annotations.Property;
public class ServerImpl implements Service {
private String header = "->";
private int count = 1;
public ServerImpl() {
System.err.println("SERVER created");
}
public void print(final String msg) {
new Exception() {
private static final long serialVersionUID = 2182742162070453637L;
public String toString() {
return "Server: print method called";
}
}.printStackTrace();
System.err.println("Server: begin printing...");
for (int i = 0 ; i < (count) ; ++i) {
System.err.println(((header) + msg));
}
System.err.println("Server: print done.");
}
public String getHeader() {
return header;
}
@Property
public void setHeader(final String header) {
this.header = header;
}
public int getCount() {
return count;
}
@Property
public void setCount(final int count) {
this.count = count;
}
}
\ No newline at end of file
package example.hw;
public interface Service {
void print(String msg);
}
\ No newline at end of file
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.scorware.assembly.example</groupId>
<artifactId>parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<groupId>org.scorware.assembly.example</groupId>
<artifactId>helloworld</artifactId>
<packaging>jar</packaging>
<name>Assembly Factory Examples : HelloWorld</name>