summaryrefslogtreecommitdiffstats
path: root/java/sca/itest/nodes/helloworld-client/src
diff options
context:
space:
mode:
Diffstat (limited to 'java/sca/itest/nodes/helloworld-client/src')
-rw-r--r--java/sca/itest/nodes/helloworld-client/src/main/java/itest/nodes/HelloworldImpl.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/java/sca/itest/nodes/helloworld-client/src/main/java/itest/nodes/HelloworldImpl.java b/java/sca/itest/nodes/helloworld-client/src/main/java/itest/nodes/HelloworldImpl.java
index a8e74be096..b10d9d37b2 100644
--- a/java/sca/itest/nodes/helloworld-client/src/main/java/itest/nodes/HelloworldImpl.java
+++ b/java/sca/itest/nodes/helloworld-client/src/main/java/itest/nodes/HelloworldImpl.java
@@ -19,13 +19,23 @@
package itest.nodes;
+import org.oasisopen.sca.annotation.EagerInit;
+import org.oasisopen.sca.annotation.Init;
import org.oasisopen.sca.annotation.Reference;
+import org.oasisopen.sca.annotation.Scope;
+@EagerInit
+@Scope("COMPOSITE")
public class HelloworldImpl implements Helloworld {
@Reference
public Helloworld service;
+ @Init
+ public void initialize(){
+ System.out.println(">>>>>> " + sayHello("init"));
+ }
+
public String sayHello(String name) {
return "Hi " + service.sayHello(name);
}