diff options
Diffstat (limited to 'branches/sca-java-20080910/samples/helloworld-web/src/main/java/sample')
2 files changed, 19 insertions, 0 deletions
diff --git a/branches/sca-java-20080910/samples/helloworld-web/src/main/java/sample/HelloworldService.java b/branches/sca-java-20080910/samples/helloworld-web/src/main/java/sample/HelloworldService.java new file mode 100644 index 0000000000..2b92fd4661 --- /dev/null +++ b/branches/sca-java-20080910/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/branches/sca-java-20080910/samples/helloworld-web/src/main/java/sample/HelloworldServiceImpl.java b/branches/sca-java-20080910/samples/helloworld-web/src/main/java/sample/HelloworldServiceImpl.java new file mode 100644 index 0000000000..be83d3b407 --- /dev/null +++ b/branches/sca-java-20080910/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;
+ }
+
+}
|