summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources')
-rw-r--r--sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/META-INF/services/org.apache.tuscany.sca.assembly.builder.PolicyBuilder1
-rw-r--r--sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor1
-rw-r--r--sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.PolicyProviderFactory1
-rw-r--r--sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/definitions.xml26
-rw-r--r--sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/helloworld.composite11
5 files changed, 34 insertions, 6 deletions
diff --git a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/META-INF/services/org.apache.tuscany.sca.assembly.builder.PolicyBuilder b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/META-INF/services/org.apache.tuscany.sca.assembly.builder.PolicyBuilder
index 0177494120..d2138222a6 100644
--- a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/META-INF/services/org.apache.tuscany.sca.assembly.builder.PolicyBuilder
+++ b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/META-INF/services/org.apache.tuscany.sca.assembly.builder.PolicyBuilder
@@ -15,3 +15,4 @@
# specific language governing permissions and limitations
# under the License.
testpolicy.TestPolicyBuilder;qname=http://tuscany.apache.org/xmlns/sca/1.1#testPolicy
+testbindingwspolicy.TestBindingWSPolicyBuilder;qname=http://tuscany.apache.org/xmlns/sca/1.1#testBindingWSPolicy
diff --git a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor
index 32608ac7ce..afe19cdffc 100644
--- a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor
+++ b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor
@@ -17,4 +17,5 @@
# Implementation class for the artifact processor extension
testpolicy.TestPolicyProcessor;qname=http://tuscany.apache.org/xmlns/sca/1.1#testPolicy,model=testpolicy.TestPolicy
+testbindingwspolicy.TestBindingWSPolicyProcessor;qname=http://tuscany.apache.org/xmlns/sca/1.1#testBindingWSPolicy,model=testbindingwspolicy.TestBindingWSPolicy
diff --git a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.PolicyProviderFactory b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.PolicyProviderFactory
index 08ff6bc2c9..f5c82538be 100644
--- a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.PolicyProviderFactory
+++ b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/META-INF/services/org.apache.tuscany.sca.provider.PolicyProviderFactory
@@ -17,4 +17,5 @@
# Implementation class for the policy extension
testpolicy.TestPolicyProviderFactory;model=testpolicy.TestPolicy
+testbindingwspolicy.TestBindingWSPolicyProviderFactory;model=testbindingwspolicy.TestBindingWSPolicy
diff --git a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/definitions.xml b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/definitions.xml
index 3f7e24e075..3182ae65de 100644
--- a/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/definitions.xml
+++ b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/definitions.xml
@@ -26,18 +26,36 @@
<description>a test intent</description>
</intent>
- <sca:policySet name="TestInteractonPolicySet"
+ <sca:policySet name="TestInteractonPolicySet1"
attachTo="//sca:binding.ws"
provides="tuscany:testIntent"
appliesTo="//sca:binding.ws">
<tuscany:testPolicy testString="interaction"/>
</sca:policySet>
+
+ <sca:policySet name="TestInteractonPolicySet2"
+ attachTo="//sca:binding.ws"
+ provides="tuscany:testIntent"
+ appliesTo="//sca:binding.ws">
+ <tuscany:testBindingWSPolicy testString="interaction"/>
+ </sca:policySet>
- <sca:policySet name="TestImplementationPolicySet"
+ <!--
+ don't seem to be able to attach the following to binding.sca probably because
+ attachment is performed before the default binding models are created
+ -->
+ <sca:policySet name="TestInteractonPolicySet3"
+ attachTo="//sca:component"
+ provides="tuscany:testIntent"
+ appliesTo="//sca:binding.sca">
+ <tuscany:testPolicy testString="interaction"/>
+ </sca:policySet>
+
+ <sca:policySet name="TestImplementationPolicySet2"
attachTo="//sca:implementation.java"
provides="tuscany:testIntent"
appliesTo="//sca:implementation.java">
<tuscany:testPolicy testString="implementation"/>
- </sca:policySet>
-
+ </sca:policySet>
+
</definitions> \ No newline at end of file
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 79efac49c3..0edd2c2a7b 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
@@ -26,11 +26,11 @@
<component name="HelloWorldClient">
<implementation.java class="helloworld.HelloWorldClient"/>
<reference name="helloWorldWS"
- target="HelloWorldService/HelloWorld/BindingWS"
+ target="HelloWorldService2/HelloWorld/BindingWS"
requires="tuscany:testIntent"/>
</component>
- <component name="HelloWorldService">
+ <component name="HelloWorldService1">
<implementation.java class="helloworld.HelloWorldService"
requires="tuscany:testIntent"/>
<service name="HelloWorld" requires="tuscany:testIntent">
@@ -38,4 +38,11 @@
</service>
</component>
+ <component name="HelloWorldService2" requires="tuscany:testIntent">
+ <implementation.java class="helloworld.HelloWorldService"/>
+ <service name="HelloWorld">
+ <binding.ws name="BindingWS"/>
+ </service>
+ </component>
+
</composite>