summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/definitions.xml
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-06-14 09:48:46 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-06-14 09:48:46 +0000
commit6aeeff9e3b0b2a75f808d4937fd63312a632ba65 (patch)
tree01a4ac59516a7af39150b0302e42d30a77b5f630 /sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/definitions.xml
parent5d8998148b1de990559f6617f09b518d3ab324fe (diff)
TUSCANY-3873 - start of a test case to check out policy matching and to look at where an how policy interceptors are added along the reference, service and binding chains
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1135444 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/definitions.xml43
1 files changed, 43 insertions, 0 deletions
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
new file mode 100644
index 0000000000..3f7e24e075
--- /dev/null
+++ b/sca-java-2.x/trunk/testing/itest/policy/interceptors/src/main/resources/definitions.xml
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="ASCII"?>
+<!--
+ * 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.
+-->
+<definitions xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
+ targetNamespace="http://tuscany.apache.org/xmlns/sca/1.1"
+ xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912"
+ xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1">
+
+ <intent name="testIntent" constrains="sca:implementation sca:binding">
+ <description>a test intent</description>
+ </intent>
+
+ <sca:policySet name="TestInteractonPolicySet"
+ attachTo="//sca:binding.ws"
+ provides="tuscany:testIntent"
+ appliesTo="//sca:binding.ws">
+ <tuscany:testPolicy testString="interaction"/>
+ </sca:policySet>
+
+ <sca:policySet name="TestImplementationPolicySet"
+ attachTo="//sca:implementation.java"
+ provides="tuscany:testIntent"
+ appliesTo="//sca:implementation.java">
+ <tuscany:testPolicy testString="implementation"/>
+ </sca:policySet>
+
+</definitions> \ No newline at end of file