diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2012-08-02 12:55:52 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2012-08-02 12:55:52 +0000 |
commit | 479a8e91297c330fa09e031d9dad93aef3b5ea47 (patch) | |
tree | ef0acc9f08377159f7a29f5537678356fa225a04 /sca-java-2.x/trunk/testing/itest/dynamic/src/test/java/sample | |
parent | cbbe48fbc976a8af9e3428c0d3a57a4c8fb88a29 (diff) |
Add a test that shows creating a component with a reference that uses binding.ws
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1368439 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/testing/itest/dynamic/src/test/java/sample')
-rw-r--r-- | sca-java-2.x/trunk/testing/itest/dynamic/src/test/java/sample/HelloworldReferenceImpl.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/testing/itest/dynamic/src/test/java/sample/HelloworldReferenceImpl.java b/sca-java-2.x/trunk/testing/itest/dynamic/src/test/java/sample/HelloworldReferenceImpl.java new file mode 100644 index 0000000000..721f30610c --- /dev/null +++ b/sca-java-2.x/trunk/testing/itest/dynamic/src/test/java/sample/HelloworldReferenceImpl.java @@ -0,0 +1,34 @@ +/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package sample;
+
+import org.oasisopen.sca.annotation.Reference;
+
+
+public class HelloworldReferenceImpl implements Helloworld {
+
+ @Reference
+ Helloworld ref;
+
+ public String sayHello(String name) {
+ return "HelloworldReferenceImpl " + ref.sayHello(name);
+ }
+
+
+}
|