From 88bf2a256b02e1858993bf097f4dc743d389e3f0 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Sun, 29 Aug 2010 02:55:29 +0000 Subject: Sandbox to experiment and extend the runtime. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@990479 13f79535-47bb-0310-9956-ffa450edef68 --- .../extend/itest/nodes/helloworld-service/pom.xml | 43 ++++++++++++++++++++++ .../src/main/java/itest/nodes/HelloworldImpl.java | 30 +++++++++++++++ .../main/resources/META-INF/sca-contribution.xml | 23 ++++++++++++ .../main/resources/helloworld-service.composite | 28 ++++++++++++++ 4 files changed, 124 insertions(+) create mode 100644 sandbox/sebastien/java/extend/itest/nodes/helloworld-service/pom.xml create mode 100644 sandbox/sebastien/java/extend/itest/nodes/helloworld-service/src/main/java/itest/nodes/HelloworldImpl.java create mode 100644 sandbox/sebastien/java/extend/itest/nodes/helloworld-service/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sandbox/sebastien/java/extend/itest/nodes/helloworld-service/src/main/resources/helloworld-service.composite (limited to 'sandbox/sebastien/java/extend/itest/nodes/helloworld-service') diff --git a/sandbox/sebastien/java/extend/itest/nodes/helloworld-service/pom.xml b/sandbox/sebastien/java/extend/itest/nodes/helloworld-service/pom.xml new file mode 100644 index 0000000000..e5e84571cd --- /dev/null +++ b/sandbox/sebastien/java/extend/itest/nodes/helloworld-service/pom.xml @@ -0,0 +1,43 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-itest + 2.0-SNAPSHOT + ../pom.xml + + itest-nodes-helloworld-service + Apache Tuscany SCA iTest Nodes Helloworld Service + + + + org.apache.tuscany.sca + itest-nodes-helloworld-iface + 2.0-SNAPSHOT + + + org.apache.tuscany.sca + tuscany-sca-api + 2.0-SNAPSHOT + + + diff --git a/sandbox/sebastien/java/extend/itest/nodes/helloworld-service/src/main/java/itest/nodes/HelloworldImpl.java b/sandbox/sebastien/java/extend/itest/nodes/helloworld-service/src/main/java/itest/nodes/HelloworldImpl.java new file mode 100644 index 0000000000..a27e752fd7 --- /dev/null +++ b/sandbox/sebastien/java/extend/itest/nodes/helloworld-service/src/main/java/itest/nodes/HelloworldImpl.java @@ -0,0 +1,30 @@ +/* + * 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 itest.nodes; + +public class HelloworldImpl implements Helloworld { + + public String sayHello(String name) { + String response = "Hello " + name; + System.out.println("At service - " + response); + return response; + } + +} diff --git a/sandbox/sebastien/java/extend/itest/nodes/helloworld-service/src/main/resources/META-INF/sca-contribution.xml b/sandbox/sebastien/java/extend/itest/nodes/helloworld-service/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..829ece9f7c --- /dev/null +++ b/sandbox/sebastien/java/extend/itest/nodes/helloworld-service/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file diff --git a/sandbox/sebastien/java/extend/itest/nodes/helloworld-service/src/main/resources/helloworld-service.composite b/sandbox/sebastien/java/extend/itest/nodes/helloworld-service/src/main/resources/helloworld-service.composite new file mode 100644 index 0000000000..5334caeb55 --- /dev/null +++ b/sandbox/sebastien/java/extend/itest/nodes/helloworld-service/src/main/resources/helloworld-service.composite @@ -0,0 +1,28 @@ + + + + + + + + + -- cgit v1.2.3