diff options
Diffstat (limited to 'sca-java-2.x/trunk/samples/helloworld-spring/src/main/java/sample')
-rw-r--r-- | sca-java-2.x/trunk/samples/helloworld-spring/src/main/java/sample/DateServiceImpl.java | 1 | ||||
-rw-r--r-- | sca-java-2.x/trunk/samples/helloworld-spring/src/main/java/sample/HelloworldImpl.java | 14 |
2 files changed, 8 insertions, 7 deletions
diff --git a/sca-java-2.x/trunk/samples/helloworld-spring/src/main/java/sample/DateServiceImpl.java b/sca-java-2.x/trunk/samples/helloworld-spring/src/main/java/sample/DateServiceImpl.java index 2b3c412de3..64bdd86f7c 100644 --- a/sca-java-2.x/trunk/samples/helloworld-spring/src/main/java/sample/DateServiceImpl.java +++ b/sca-java-2.x/trunk/samples/helloworld-spring/src/main/java/sample/DateServiceImpl.java @@ -30,6 +30,7 @@ import org.oasisopen.sca.annotation.Service; public class DateServiceImpl implements DateService { public Date getDate() { + System.out.println("DateServiceImpl.getDate()"); return new Date(); } diff --git a/sca-java-2.x/trunk/samples/helloworld-spring/src/main/java/sample/HelloworldImpl.java b/sca-java-2.x/trunk/samples/helloworld-spring/src/main/java/sample/HelloworldImpl.java index a44dcacc3a..125c333ddc 100644 --- a/sca-java-2.x/trunk/samples/helloworld-spring/src/main/java/sample/HelloworldImpl.java +++ b/sca-java-2.x/trunk/samples/helloworld-spring/src/main/java/sample/HelloworldImpl.java @@ -18,17 +18,17 @@ */
package sample;
-import org.oasisopen.sca.annotation.Reference;
public class HelloworldImpl implements Helloworld {
- @Reference(required = false)
- private DateService dateService;
+
+ public HelloworldImpl() {
+ super();
+ System.out.println("HelloworldImpl()");
+ }
public String sayHello(String name) {
- if (dateService == null) {
- return "Hello " + name;
- }
- return "[" + dateService.getDate() + "] Hello " + name;
+ System.out.println("HelloworldImpl.sayHello(" + name + ")");
+ return "Hello " + name;
}
}
|