summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk/samples/helloworld-web/src/main/java
diff options
context:
space:
mode:
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;
+ }
+
+}