summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.x/itest/contribution-jee-samples/jar-shared
diff options
context:
space:
mode:
Diffstat (limited to 'branches/sca-java-1.x/itest/contribution-jee-samples/jar-shared')
-rw-r--r--branches/sca-java-1.x/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/HelloworldServiceJavaImpl.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/branches/sca-java-1.x/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/HelloworldServiceJavaImpl.java b/branches/sca-java-1.x/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/HelloworldServiceJavaImpl.java
index 59182b2e73..265af5b3a0 100644
--- a/branches/sca-java-1.x/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/HelloworldServiceJavaImpl.java
+++ b/branches/sca-java-1.x/itest/contribution-jee-samples/jar-shared/src/main/java/sample/java/HelloworldServiceJavaImpl.java
@@ -17,15 +17,19 @@
package sample.java;
+import org.osoa.sca.annotations.Property;
import org.osoa.sca.annotations.Reference;
public class HelloworldServiceJavaImpl implements HelloworldServiceJava {
@Reference
protected HelloworldServiceJava hwReference;
+
+ @Property
+ protected String hwProperty;
public String getGreetings(String name) {
- String greeting = hwReference.getGreetings(name);
+ String greeting = hwReference.getGreetings(name) + " " + hwProperty;
System.out.println(greeting);
return greeting;
}