summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/testing/itest/policy
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-06-16 12:13:44 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-06-16 12:13:44 +0000
commit9fbe040fb8c433369b0dfb67fd298037ea53804b (patch)
treeb988990b2a8186fc2692db9d0818178bb38b1a70 /sca-java-2.x/trunk/testing/itest/policy
parenta37832b899749c9378ba556a91a11554b65722ad (diff)
TUSCANY-3876 - minimum changes to turn of implementation model sharing and represent implementation policy correctly.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1136391 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/testing/itest/policy')
-rw-r--r--sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/testpolicy/TestPolicyProviderImplementation.java9
-rw-r--r--sca-java-2.x/trunk/testing/itest/policy/pom.xml1
2 files changed, 7 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/testpolicy/TestPolicyProviderImplementation.java b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/testpolicy/TestPolicyProviderImplementation.java
index 90cf5e6523..33d2254798 100644
--- a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/testpolicy/TestPolicyProviderImplementation.java
+++ b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/java/testpolicy/TestPolicyProviderImplementation.java
@@ -33,7 +33,7 @@ import org.apache.tuscany.sca.runtime.RuntimeComponent;
public class TestPolicyProviderImplementation extends BasePolicyProvider<TestPolicy> {
public TestPolicyProviderImplementation(RuntimeComponent component) {
- super(TestPolicy.class, component);
+ super(TestPolicy.class, component.getImplementation());
}
/**
@@ -41,8 +41,11 @@ public class TestPolicyProviderImplementation extends BasePolicyProvider<TestPol
*/
public PhasedInterceptor createInterceptor(Operation operation) {
List<TestPolicy> policies = findPolicies();
- return policies.isEmpty() ? null : new TestPolicyInterceptor(subject, getContext(), operation,
- policies, Phase.IMPLEMENTATION_POLICY);
+ return policies.isEmpty() ? null : new TestPolicyInterceptor(subject,
+ getContext(),
+ operation,
+ policies,
+ Phase.IMPLEMENTATION_POLICY);
}
}
diff --git a/sca-java-2.x/trunk/testing/itest/policy/pom.xml b/sca-java-2.x/trunk/testing/itest/policy/pom.xml
index 14335b254a..f6132dc3ac 100644
--- a/sca-java-2.x/trunk/testing/itest/policy/pom.xml
+++ b/sca-java-2.x/trunk/testing/itest/policy/pom.xml
@@ -32,6 +32,7 @@
<modules>
<module>matching</module>
<module>wspolicy</module>
+ <module>interceptors</module>
</modules>
</project>