From 3c7c4a749baafcf375f4785a7668d3a25c9063e3 Mon Sep 17 00:00:00 2001 From: lresende Date: Fri, 13 Nov 2009 01:42:27 +0000 Subject: Moving 1.x trunk git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835700 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/sample/HelloworldService.java | 7 +++++++ .../src/main/java/sample/HelloworldServiceImpl.java | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 sca-java-1.x/trunk/samples/helloworld-web/src/main/java/sample/HelloworldService.java create mode 100644 sca-java-1.x/trunk/samples/helloworld-web/src/main/java/sample/HelloworldServiceImpl.java (limited to 'sca-java-1.x/trunk/samples/helloworld-web/src/main/java') diff --git a/sca-java-1.x/trunk/samples/helloworld-web/src/main/java/sample/HelloworldService.java b/sca-java-1.x/trunk/samples/helloworld-web/src/main/java/sample/HelloworldService.java new file mode 100644 index 0000000000..2b92fd4661 --- /dev/null +++ b/sca-java-1.x/trunk/samples/helloworld-web/src/main/java/sample/HelloworldService.java @@ -0,0 +1,7 @@ +package sample; + +public interface HelloworldService { + + String sayHello(String name); + +} diff --git a/sca-java-1.x/trunk/samples/helloworld-web/src/main/java/sample/HelloworldServiceImpl.java b/sca-java-1.x/trunk/samples/helloworld-web/src/main/java/sample/HelloworldServiceImpl.java new file mode 100644 index 0000000000..be83d3b407 --- /dev/null +++ b/sca-java-1.x/trunk/samples/helloworld-web/src/main/java/sample/HelloworldServiceImpl.java @@ -0,0 +1,12 @@ +package sample; + +import org.osoa.sca.annotations.Service; + +@Service(HelloworldService.class) +public class HelloworldServiceImpl implements HelloworldService { + + public String sayHello(String name) { + return "Hello " + name; + } + +} -- cgit v1.2.3