From 817f391d1d346d38df772c774862f17762564dd8 Mon Sep 17 00:00:00 2001 From: slaws Date: Wed, 15 Jun 2011 13:31:01 +0000 Subject: Add intents to implementations. It shows that implementation policy is not being handled correctly. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1136033 13f79535-47bb-0310-9956-ffa450edef68 --- .../policy/interceptors/src/main/java/helloworld/HelloWorldClient.java | 2 ++ .../interceptors/src/main/java/testpolicy/TestPolicyInterceptor.java | 2 +- .../itest/policy/interceptors/src/main/resources/helloworld.composite | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) (limited to 'sca-java-2.x/trunk/testing/itest/policy') diff --git a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldClient.java b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldClient.java index c51dc66caf..d27bf754fb 100644 --- a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldClient.java +++ b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/helloworld/HelloWorldClient.java @@ -20,7 +20,9 @@ package helloworld; import org.oasisopen.sca.annotation.Reference; +import org.oasisopen.sca.annotation.Requires; +@Requires("{http://tuscany.apache.org/xmlns/sca/1.1}testIntent") public class HelloWorldClient implements HelloWorld { @Reference diff --git a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/testpolicy/TestPolicyInterceptor.java b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/testpolicy/TestPolicyInterceptor.java index ea6b31c5cb..6600f34b66 100644 --- a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/testpolicy/TestPolicyInterceptor.java +++ b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/testpolicy/TestPolicyInterceptor.java @@ -76,7 +76,7 @@ public class TestPolicyInterceptor implements PhasedInterceptor { } public Message invoke(Message msg) { - System.out.println("In interceptor"); + System.out.println("In interceptor at " + subject.toString()); return getNext().invoke(msg); } diff --git a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/helloworld.composite b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/helloworld.composite index fa3d9ee701..79efac49c3 100644 --- a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/helloworld.composite +++ b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/helloworld.composite @@ -31,7 +31,8 @@ - + -- cgit v1.2.3