tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r574125 - in /incubator/tuscany/sandbox/lresende/mundo-java: ./ calculadora-passo1/ calculadora-passo1/src/ calculadora-passo1/src/main/ calculadora-passo1/src/main/java/ calculadora-passo1/src/main/java/calculadora/ calculadora-passo1/src/...
Date Mon, 10 Sep 2007 03:53:01 GMT
Author: lresende
Date: Sun Sep  9 20:52:58 2007
New Revision: 574125

URL: http://svn.apache.org/viewvc?rev=574125&view=rev
Log:
Calculator samples for Brazilian article on SCA

Added:
    incubator/tuscany/sandbox/lresende/mundo-java/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/pom.xml   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/java/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/java/calculadora/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/java/calculadora/Calculadora.java   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/java/calculadora/CalculadoraImpl.java   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/java/calculadora/Cliente.java   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/resources/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/resources/calculadora.composite
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/test/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/test/java/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/pom.xml   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/Calculadora.java   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/CalculadoraImpl.java   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/Cliente.java   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoAdicionar.java   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoAdicionarImpl.java   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoDividir.java   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoDividirImpl.java   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoMultiplicar.java   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoMultiplicarImpl.java   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoSubtrair.java   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoSubtrairImpl.java   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/resources/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/resources/calculadora.composite
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/test/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/test/java/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/pom.xml   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/Calculadora.java   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/CalculadoraImpl.java   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/Cliente.java   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoAdicionar.java   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoDividir.java   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoMultiplicar.java   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoSubtrair.java   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/demo/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/demo/ServidorCalculadora.java   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora.composite
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora/ServicoAdicionarImpl.js   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora/ServicoDividirImpl.groovy
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora/ServicoMultiplicarImpl.py   (with props)
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora/ServicoSubtrairImpl.rb
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/test/
    incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/test/java/
    incubator/tuscany/sandbox/lresende/mundo-java/pom.xml   (with props)

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/pom.xml?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/pom.xml (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/pom.xml Sun Sep  9 20:52:58 2007
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ -->
+<project>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-sca</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+    <artifactId>mundo-java-calculadora-passo1</artifactId>
+    <name>Exemplo de uma Simples calculadora</name>
+
+    <repositories>
+       <repository>
+          <id>apache.incubator</id>
+          <url>http://people.apache.org/repo/m2-incubating-repository</url>
+       </repository>
+    </repositories>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-host-embedded</artifactId>
+            <version>1.0-incubating-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-implementation-java-runtime</artifactId>
+            <version>1.0-incubating-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.2</version>
+            <scope>test</scope>
+        </dependency>
+
+    </dependencies>
+
+    <build>
+       <finalName>${artifactId}</finalName>
+    </build>
+
+</project>

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/java/calculadora/Calculadora.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/java/calculadora/Calculadora.java?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/java/calculadora/Calculadora.java (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/java/calculadora/Calculadora.java Sun Sep  9 20:52:58 2007
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package calculadora;
+
+public interface Calculadora {
+    
+    double adicionar(double n1, double n2);
+
+    double subtrair(double n1, double n2);
+
+    double multiplicar(double n1, double n2);
+
+    double dividir(double n1, double n2);
+}

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/java/calculadora/Calculadora.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/java/calculadora/Calculadora.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/java/calculadora/CalculadoraImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/java/calculadora/CalculadoraImpl.java?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/java/calculadora/CalculadoraImpl.java (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/java/calculadora/CalculadoraImpl.java Sun Sep  9 20:52:58 2007
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package calculadora;
+
+public class CalculadoraImpl implements Calculadora {
+
+    public double adicionar(double n1, double n2) {
+        return n1 + n2;
+    }
+
+    public double dividir(double n1, double n2) {
+        return n1 / n2;
+    }
+
+    public double multiplicar(double n1, double n2) {
+        return n1 * n2;
+    }
+
+    public double subtrair(double n1, double n2) {
+        return n1 - n2;
+    }
+}

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/java/calculadora/CalculadoraImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/java/calculadora/CalculadoraImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/java/calculadora/Cliente.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/java/calculadora/Cliente.java?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/java/calculadora/Cliente.java (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/java/calculadora/Cliente.java Sun Sep  9 20:52:58 2007
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package calculadora;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+/**
+ * This client program shows how to create an SCA runtime, start it, locate the
+ * HelloWorld service and invoke it.
+ */
+public class Cliente {
+
+    public final static void main(String[] args) throws Exception {
+        SCADomain scaDomain = SCADomain.newInstance("calculadora.composite");
+        Calculadora servicoCalculadora =
+            scaDomain.getService(Calculadora.class, "ComponenteCalculadora");
+
+        //Calculate
+        System.out.println("3 + 2=" + servicoCalculadora.adicionar(3, 2));
+        System.out.println("3 - 2=" + servicoCalculadora.subtrair(3, 2));
+        System.out.println("3 * 2=" + servicoCalculadora.multiplicar(3, 2));
+        System.out.println("3 / 2=" + servicoCalculadora.dividir(3, 2));
+        
+        scaDomain.close();
+    }
+}

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/java/calculadora/Cliente.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/java/calculadora/Cliente.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/resources/calculadora.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/resources/calculadora.composite?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/resources/calculadora.composite (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo1/src/main/resources/calculadora.composite Sun Sep  9 20:52:58 2007
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    * Licensed to the Apache Software Foundation (ASF) under one
+    * or more contributor license agreements.  See the NOTICE file
+    * distributed with this work for additional information
+    * regarding copyright ownership.  The ASF licenses this file
+    * to you under the Apache License, Version 2.0 (the
+    * "License"); you may not use this file except in compliance
+    * with the License.  You may obtain a copy of the License at
+    * 
+    *   http://www.apache.org/licenses/LICENSE-2.0
+    * 
+    * Unless required by applicable law or agreed to in writing,
+    * software distributed under the License is distributed on an
+    * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    * KIND, either express or implied.  See the License for the
+    * specific language governing permissions and limitations
+    * under the License.    
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" 
+    targetNamespace="http://calculadora"
+    name="calculadora">
+
+    <component name="ComponenteCalculadora">
+        <implementation.java class="calculadora.CalculadoraImpl" />
+    </component>
+</composite>

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/pom.xml?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/pom.xml (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/pom.xml Sun Sep  9 20:52:58 2007
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ -->
+<project>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-sca</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+    <artifactId>mundo-java-calculadora-passo2</artifactId>
+    <name>Exemplo de uma Calculadora implementada por varios componentes</name>
+
+    <repositories>
+       <repository>
+          <id>apache.incubator</id>
+          <url>http://people.apache.org/repo/m2-incubating-repository</url>
+       </repository>
+    </repositories>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-host-embedded</artifactId>
+            <version>1.0-incubating-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-implementation-java-runtime</artifactId>
+            <version>1.0-incubating-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.2</version>
+            <scope>test</scope>
+        </dependency>
+
+    </dependencies>
+
+    <build>
+       <finalName>${artifactId}</finalName>
+    </build>
+
+</project>

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/Calculadora.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/Calculadora.java?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/Calculadora.java (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/Calculadora.java Sun Sep  9 20:52:58 2007
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package calculadora;
+
+public interface Calculadora {
+    
+    double adicionar(double n1, double n2);
+
+    double subtrair(double n1, double n2);
+
+    double multiplicar(double n1, double n2);
+
+    double dividir(double n1, double n2);
+}

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/Calculadora.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/Calculadora.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/CalculadoraImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/CalculadoraImpl.java?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/CalculadoraImpl.java (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/CalculadoraImpl.java Sun Sep  9 20:52:58 2007
@@ -0,0 +1,67 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package calculadora;
+
+import org.osoa.sca.annotations.Reference;
+
+public class CalculadoraImpl implements Calculadora {
+
+    private ServicoAdicionar servicoAdicionar;
+    private ServicoSubtrair servicoSubtrair;
+    private ServicoMultiplicar servicoMultiplicar;
+    private ServicoDividir servicoDividir;
+
+    @Reference
+    public void setServicoAdicionar(ServicoAdicionar servicoAdicionar) {
+        this.servicoAdicionar = servicoAdicionar;
+    }
+
+    @Reference
+    public void setServicoSubtrair(ServicoSubtrair servicoSubtrair) {
+        this.servicoSubtrair = servicoSubtrair;
+    }
+
+    @Reference
+    public void setServicoDividir(ServicoDividir servicoDividir) {
+        this.servicoDividir = servicoDividir;
+    }
+
+    @Reference
+    public void setServicoMultiplicar(ServicoMultiplicar servicoMultiplicar) {
+        this.servicoMultiplicar = servicoMultiplicar;
+    }
+    
+    public double adicionar(double n1, double n2) {
+        return this.servicoAdicionar.adicionar(n1 , n2);
+    }
+
+    public double dividir(double n1, double n2) {
+        return this.servicoDividir.dividir(n1, n2);
+    }
+
+    public double multiplicar(double n1, double n2) {
+        return this.servicoMultiplicar.multiplicar(n1, n2);
+    }
+
+    public double subtrair(double n1, double n2) {
+        return this.servicoSubtrair.subtrair(n1, n2);
+    }
+
+}

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/CalculadoraImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/CalculadoraImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/Cliente.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/Cliente.java?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/Cliente.java (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/Cliente.java Sun Sep  9 20:52:58 2007
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package calculadora;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+/**
+ * This client program shows how to create an SCA runtime, start it, locate the
+ * HelloWorld service and invoke it.
+ */
+public class Cliente {
+
+    public final static void main(String[] args) throws Exception {
+        SCADomain scaDomain = SCADomain.newInstance("calculadora.composite");
+        Calculadora servicoCalculadora =
+            scaDomain.getService(Calculadora.class, "ComponenteCalculadora");
+
+        //Calculate
+        System.out.println("3 + 2=" + servicoCalculadora.adicionar(3, 2));
+        System.out.println("3 - 2=" + servicoCalculadora.subtrair(3, 2));
+        System.out.println("3 * 2=" + servicoCalculadora.multiplicar(3, 2));
+        System.out.println("3 / 2=" + servicoCalculadora.dividir(3, 2));
+        
+        scaDomain.close();
+    }
+}

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/Cliente.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/Cliente.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoAdicionar.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoAdicionar.java?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoAdicionar.java (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoAdicionar.java Sun Sep  9 20:52:58 2007
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package calculadora;
+
+public interface ServicoAdicionar {
+    double adicionar(double n1, double n2);
+}

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoAdicionar.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoAdicionar.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoAdicionarImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoAdicionarImpl.java?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoAdicionarImpl.java (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoAdicionarImpl.java Sun Sep  9 20:52:58 2007
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package calculadora;
+
+public class ServicoAdicionarImpl implements ServicoAdicionar {
+
+    public double adicionar(double n1, double n2) {
+        return n1 + n2;
+    }
+
+}

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoAdicionarImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoAdicionarImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoDividir.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoDividir.java?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoDividir.java (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoDividir.java Sun Sep  9 20:52:58 2007
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package calculadora;
+
+public interface ServicoDividir {
+    double dividir(double n1, double n2);
+}

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoDividir.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoDividir.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoDividirImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoDividirImpl.java?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoDividirImpl.java (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoDividirImpl.java Sun Sep  9 20:52:58 2007
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package calculadora;
+
+public class ServicoDividirImpl implements ServicoDividir {
+
+    public double dividir(double n1, double n2) {
+        return n1 / n2;
+    }
+
+}

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoDividirImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoDividirImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoMultiplicar.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoMultiplicar.java?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoMultiplicar.java (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoMultiplicar.java Sun Sep  9 20:52:58 2007
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package calculadora;
+
+public interface ServicoMultiplicar {
+    double multiplicar(double n1, double n2);
+}

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoMultiplicar.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoMultiplicar.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoMultiplicarImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoMultiplicarImpl.java?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoMultiplicarImpl.java (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoMultiplicarImpl.java Sun Sep  9 20:52:58 2007
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package calculadora;
+
+public class ServicoMultiplicarImpl implements ServicoMultiplicar {
+
+    public double multiplicar(double n1, double n2) {
+        return n1 * n2;
+    }
+
+}

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoMultiplicarImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoMultiplicarImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoSubtrair.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoSubtrair.java?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoSubtrair.java (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoSubtrair.java Sun Sep  9 20:52:58 2007
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package calculadora;
+
+public interface ServicoSubtrair {
+    double subtrair(double n1, double n2);
+}

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoSubtrair.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoSubtrair.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoSubtrairImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoSubtrairImpl.java?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoSubtrairImpl.java (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoSubtrairImpl.java Sun Sep  9 20:52:58 2007
@@ -0,0 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package calculadora;
+
+public class ServicoSubtrairImpl implements ServicoSubtrair {
+
+    public double subtrair(double n1, double n2) {
+        return n1 - n2;
+    }
+
+}

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoSubtrairImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/java/calculadora/ServicoSubtrairImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/resources/calculadora.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/resources/calculadora.composite?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/resources/calculadora.composite (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo2/src/main/resources/calculadora.composite Sun Sep  9 20:52:58 2007
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    * Licensed to the Apache Software Foundation (ASF) under one
+    * or more contributor license agreements.  See the NOTICE file
+    * distributed with this work for additional information
+    * regarding copyright ownership.  The ASF licenses this file
+    * to you under the Apache License, Version 2.0 (the
+    * "License"); you may not use this file except in compliance
+    * with the License.  You may obtain a copy of the License at
+    * 
+    *   http://www.apache.org/licenses/LICENSE-2.0
+    * 
+    * Unless required by applicable law or agreed to in writing,
+    * software distributed under the License is distributed on an
+    * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    * KIND, either express or implied.  See the License for the
+    * specific language governing permissions and limitations
+    * under the License.    
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" 
+    targetNamespace="http://calculadora"
+    name="calculadora">
+    
+    <component name="ComponenteCalculadora">
+		<implementation.java class="calculadora.CalculadoraImpl"/>
+        
+        <reference name="servicoAdicionar" target="ComponenteAdicionar" />
+        <reference name="servicoSubtrair" target="ComponentSubtrair" />
+        <reference name="servicoMultiplicar" target="ComponentMultiplicar" />
+        <reference name="servicoDividir" target="ComponentDividir" />
+    </component>
+
+    <component name="ComponenteAdicionar">
+        <implementation.java class="calculadora.ServicoAdicionarImpl"/>
+    </component>
+
+    <component name="ComponentSubtrair">
+        <implementation.java class="calculadora.ServicoSubtrairImpl"/>
+    </component>
+
+    <component name="ComponentMultiplicar">
+        <implementation.java class="calculadora.ServicoMultiplicarImpl"/>
+    </component>
+
+    <component name="ComponentDividir">
+        <implementation.java class="calculadora.ServicoDividirImpl"/>
+    </component>
+</composite>

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/pom.xml?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/pom.xml (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/pom.xml Sun Sep  9 20:52:58 2007
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ -->
+<project>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-sca</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+    <artifactId>mundo-java-calculadora-passo3</artifactId>
+    <name>Exemplo de uma Calculadora implementada por componentes em varias linguagems</name>
+
+    <repositories>
+       <repository>
+          <id>apache.incubator</id>
+          <url>http://people.apache.org/repo/m2-incubating-repository</url>
+       </repository>
+    </repositories>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-host-embedded</artifactId>
+            <version>1.0-incubating-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-implementation-java-runtime</artifactId>
+            <version>1.0-incubating-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-implementation-script</artifactId>
+            <version>1.0-incubating-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-binding-rmi</artifactId>
+            <version>1.0-incubating-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+        
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.2</version>
+            <scope>test</scope>
+        </dependency>
+
+    </dependencies>
+
+    <build>
+       <finalName>${artifactId}</finalName>
+    </build>
+
+</project>

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/Calculadora.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/Calculadora.java?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/Calculadora.java (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/Calculadora.java Sun Sep  9 20:52:58 2007
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package calculadora;
+
+public interface Calculadora {
+    
+    double adicionar(double n1, double n2);
+
+    double subtrair(double n1, double n2);
+
+    double multiplicar(double n1, double n2);
+
+    double dividir(double n1, double n2);
+}

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/Calculadora.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/Calculadora.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/CalculadoraImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/CalculadoraImpl.java?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/CalculadoraImpl.java (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/CalculadoraImpl.java Sun Sep  9 20:52:58 2007
@@ -0,0 +1,69 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package calculadora;
+
+import org.osoa.sca.annotations.Reference;
+import org.osoa.sca.annotations.Service;
+
+@Service(Calculadora.class)
+public class CalculadoraImpl implements Calculadora {
+
+    private ServicoAdicionar servicoAdicionar;
+    private ServicoSubtrair servicoSubtrair;
+    private ServicoMultiplicar servicoMultiplicar;
+    private ServicoDividir servicoDividir;
+
+    @Reference
+    public void setServicoAdicionar(ServicoAdicionar servicoAdicionar) {
+        this.servicoAdicionar = servicoAdicionar;
+    }
+
+    @Reference
+    public void setServicoSubtrair(ServicoSubtrair servicoSubtrair) {
+        this.servicoSubtrair = servicoSubtrair;
+    }
+
+    @Reference
+    public void setServicoDividir(ServicoDividir servicoDividir) {
+        this.servicoDividir = servicoDividir;
+    }
+
+    @Reference
+    public void setServicoMultiplicar(ServicoMultiplicar servicoMultiplicar) {
+        this.servicoMultiplicar = servicoMultiplicar;
+    }
+    
+    public double adicionar(double n1, double n2) {
+        return this.servicoAdicionar.adicionar(n1 , n2);
+    }
+
+    public double dividir(double n1, double n2) {
+        return this.servicoDividir.dividir(n1, n2);
+    }
+
+    public double multiplicar(double n1, double n2) {
+        return this.servicoMultiplicar.multiplicar(n1, n2);
+    }
+
+    public double subtrair(double n1, double n2) {
+        return this.servicoSubtrair.subtrair(n1, n2);
+    }
+
+}

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/CalculadoraImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/CalculadoraImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/Cliente.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/Cliente.java?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/Cliente.java (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/Cliente.java Sun Sep  9 20:52:58 2007
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+package calculadora;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+/**
+ * This client program shows how to create an SCA runtime, start it, locate the
+ * HelloWorld service and invoke it.
+ */
+public class Cliente {
+
+    public final static void main(String[] args) throws Exception {
+        SCADomain scaDomain = SCADomain.newInstance("calculadora.composite");
+        Calculadora servicoCalculadora =
+            scaDomain.getService(Calculadora.class, "ComponenteCalculadora/ServicoCalculadora");
+
+        //Calculate
+        System.out.println("3 + 2=" + servicoCalculadora.adicionar(3, 2));
+        System.out.println("3 - 2=" + servicoCalculadora.subtrair(3, 2));
+        System.out.println("3 * 2=" + servicoCalculadora.multiplicar(3, 2));
+        System.out.println("3 / 2=" + servicoCalculadora.dividir(3, 2));
+        
+        scaDomain.close();
+    }
+}

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/Cliente.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/Cliente.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoAdicionar.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoAdicionar.java?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoAdicionar.java (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoAdicionar.java Sun Sep  9 20:52:58 2007
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package calculadora;
+
+public interface ServicoAdicionar {
+    double adicionar(double n1, double n2);
+}

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoAdicionar.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoAdicionar.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoDividir.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoDividir.java?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoDividir.java (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoDividir.java Sun Sep  9 20:52:58 2007
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package calculadora;
+
+public interface ServicoDividir {
+    double dividir(double n1, double n2);
+}

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoDividir.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoDividir.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoMultiplicar.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoMultiplicar.java?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoMultiplicar.java (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoMultiplicar.java Sun Sep  9 20:52:58 2007
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package calculadora;
+
+public interface ServicoMultiplicar {
+    double multiplicar(double n1, double n2);
+}

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoMultiplicar.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoMultiplicar.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoSubtrair.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoSubtrair.java?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoSubtrair.java (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoSubtrair.java Sun Sep  9 20:52:58 2007
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+package calculadora;
+
+public interface ServicoSubtrair {
+    double subtrair(double n1, double n2);
+}

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoSubtrair.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/ServicoSubtrair.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/demo/ServidorCalculadora.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/demo/ServidorCalculadora.java?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/demo/ServidorCalculadora.java (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/demo/ServidorCalculadora.java Sun Sep  9 20:52:58 2007
@@ -0,0 +1,41 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package calculadora.demo;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+public class ServidorCalculadora {
+
+    public static void main(String[] args) throws Exception {
+
+        System.out.println("Iniciando o exemplo de uma Calculadora em SCA...");
+
+        SCADomain domain = SCADomain.newInstance("calculadora.composite");
+
+        System.out.println("Pressione Enter para sair...");
+        System.in.read();
+
+        domain.close();
+
+        System.out.println("Tchau !!!");
+        System.exit(0);
+    }
+
+}

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/demo/ServidorCalculadora.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/java/calculadora/demo/ServidorCalculadora.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora.composite?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora.composite (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora.composite Sun Sep  9 20:52:58 2007
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    * Licensed to the Apache Software Foundation (ASF) under one
+    * or more contributor license agreements.  See the NOTICE file
+    * distributed with this work for additional information
+    * regarding copyright ownership.  The ASF licenses this file
+    * to you under the Apache License, Version 2.0 (the
+    * "License"); you may not use this file except in compliance
+    * with the License.  You may obtain a copy of the License at
+    * 
+    *   http://www.apache.org/licenses/LICENSE-2.0
+    * 
+    * Unless required by applicable law or agreed to in writing,
+    * software distributed under the License is distributed on an
+    * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    * KIND, either express or implied.  See the License for the
+    * specific language governing permissions and limitations
+    * under the License.    
+-->
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" 
+    xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"
+    targetNamespace="http://calculadora"
+    name="calculadora">
+    
+    <component name="ComponenteCalculadora">
+    	<!-- service name="ServicoCalculadoraRMI">
+	        <tuscany:binding.rmi host="localhost" port="8099" serviceName="ServicoCalculadoraRMI"/>
+	    </service -->
+	    
+		<implementation.java class="calculadora.CalculadoraImpl"/>
+        
+        <reference name="servicoAdicionar" target="ComponenteAdicionar" />
+        <reference name="servicoSubtrair" target="ComponentSubtrair" />
+        <reference name="servicoMultiplicar" target="ComponentMultiplicar" />
+        <reference name="servicoDividir" target="ComponentDividir" />
+    </component>
+
+    <component name="ComponenteAdicionar">
+    	<tuscany:implementation.script script="calculadora/ServicoAdicionarImpl.js"/>
+    </component>
+
+    <component name="ComponentSubtrair">
+		<tuscany:implementation.script script="calculadora/ServicoSubtrairImpl.rb"/>
+    </component>
+
+    <component name="ComponentMultiplicar">
+        <tuscany:implementation.script script="calculadora/ServicoMultiplicarImpl.py"/>
+    </component>
+
+    <component name="ComponentDividir">
+        <tuscany:implementation.script script="calculadora/ServicoDividirImpl.groovy"/>
+    </component>
+</composite>

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora/ServicoAdicionarImpl.js
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora/ServicoAdicionarImpl.js?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora/ServicoAdicionarImpl.js (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora/ServicoAdicionarImpl.js Sun Sep  9 20:52:58 2007
@@ -0,0 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+
+function adicionar(n1, n2) {
+   return n1 + n2;
+}
\ No newline at end of file

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora/ServicoAdicionarImpl.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora/ServicoDividirImpl.groovy
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora/ServicoDividirImpl.groovy?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora/ServicoDividirImpl.groovy (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora/ServicoDividirImpl.groovy Sun Sep  9 20:52:58 2007
@@ -0,0 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+ */
+ 
+def dividir(n1, n2) {
+   return n1 / n2
+}
\ No newline at end of file

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora/ServicoMultiplicarImpl.py
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora/ServicoMultiplicarImpl.py?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora/ServicoMultiplicarImpl.py (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora/ServicoMultiplicarImpl.py Sun Sep  9 20:52:58 2007
@@ -0,0 +1,20 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+ 
+def multiplicar(n1, n2):
+   return n1 * n2
\ No newline at end of file

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora/ServicoMultiplicarImpl.py
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora/ServicoSubtrairImpl.rb
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora/ServicoSubtrairImpl.rb?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora/ServicoSubtrairImpl.rb (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/calculadora-passo3/src/main/resources/calculadora/ServicoSubtrairImpl.rb Sun Sep  9 20:52:58 2007
@@ -0,0 +1,21 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+ 
+def subtrair(n1, n2)
+    return n1 - n2
+end
\ No newline at end of file

Added: incubator/tuscany/sandbox/lresende/mundo-java/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/sandbox/lresende/mundo-java/pom.xml?rev=574125&view=auto
==============================================================================
--- incubator/tuscany/sandbox/lresende/mundo-java/pom.xml (added)
+++ incubator/tuscany/sandbox/lresende/mundo-java/pom.xml Sun Sep  9 20:52:58 2007
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ * 
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.    
+-->
+<project>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-sca</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+    <artifactId>mundo-java</artifactId>
+    <packaging>pom</packaging>
+    <name>Exemplos para o artigo sobre SCA na revista Mundo Java</name>
+
+    <profiles>
+        <profile>
+            <id>default</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+            <modules>
+                <module>calculadora-passo1</module>
+                <module>calculadora-passo2</module>
+                <module>calculadora-passo3</module>
+            </modules>
+        </profile>
+
+    </profiles>
+    
+</project>

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/sandbox/lresende/mundo-java/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message