summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk/samples/helloworld-web/src/main/java
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-11-13 01:42:27 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-11-13 01:42:27 +0000
commit3c7c4a749baafcf375f4785a7668d3a25c9063e3 (patch)
treea66b8b031c5dc6c7744f44b44b6bcd371bd0b8df /sca-java-1.x/trunk/samples/helloworld-web/src/main/java
parenteb03ff672236cddf65533f39b83ddd5e2984a2bb (diff)
Moving 1.x trunk
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835700 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/trunk/samples/helloworld-web/src/main/java')
-rw-r--r--sca-java-1.x/trunk/samples/helloworld-web/src/main/java/sample/HelloworldService.java7
-rw-r--r--sca-java-1.x/trunk/samples/helloworld-web/src/main/java/sample/HelloworldServiceImpl.java12
2 files changed, 19 insertions, 0 deletions
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;
+ }
+
+}