summaryrefslogtreecommitdiffstats
path: root/java/sca/itest/policies
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-07-09 18:26:35 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-07-09 18:26:35 +0000
commitd7c580b31dc33e14f4a06bec256611a6b72a9e48 (patch)
tree4bf5b71df317a971dc3185e1685b6f256be504a4 /java/sca/itest/policies
parent20aaa2dfe837ec9ee2800d9a8e06a5ffc65e77f5 (diff)
Add the jdk logging into the itest-policies
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@792626 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--java/sca/itest/policies/pom.xml6
-rw-r--r--java/sca/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/impl/PaymentImpl.java2
-rw-r--r--java/sca/itest/policies/src/main/resources/Customer.composite4
-rw-r--r--java/sca/itest/policies/src/main/resources/Payment.composite5
4 files changed, 13 insertions, 4 deletions
diff --git a/java/sca/itest/policies/pom.xml b/java/sca/itest/policies/pom.xml
index 919e5c057b..4d9168ba95 100644
--- a/java/sca/itest/policies/pom.xml
+++ b/java/sca/itest/policies/pom.xml
@@ -37,6 +37,12 @@
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-policy-logging</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
<artifactId>tuscany-node-impl</artifactId>
<version>2.0-SNAPSHOT</version>
<scope>test</scope>
diff --git a/java/sca/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/impl/PaymentImpl.java b/java/sca/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/impl/PaymentImpl.java
index 1388d2ea75..4bda0d5e95 100644
--- a/java/sca/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/impl/PaymentImpl.java
+++ b/java/sca/itest/policies/src/main/java/org/apache/tuscany/sca/itest/policies/impl/PaymentImpl.java
@@ -24,6 +24,7 @@ import org.apache.tuscany.sca.itest.policies.CreditCardPayment;
import org.apache.tuscany.sca.itest.policies.Customer;
import org.apache.tuscany.sca.itest.policies.CustomerRegistry;
import org.apache.tuscany.sca.itest.policies.Payment;
+import org.apache.tuscany.sca.policy.logging.Logging;
import org.oasisopen.sca.annotation.Authentication;
import org.oasisopen.sca.annotation.Confidentiality;
import org.oasisopen.sca.annotation.Reference;
@@ -32,6 +33,7 @@ import org.oasisopen.sca.annotation.Requires;
/**
*
*/
+@Logging
public class PaymentImpl implements Payment {
@Reference
diff --git a/java/sca/itest/policies/src/main/resources/Customer.composite b/java/sca/itest/policies/src/main/resources/Customer.composite
index 29458ad284..f38f5fe7f4 100644
--- a/java/sca/itest/policies/src/main/resources/Customer.composite
+++ b/java/sca/itest/policies/src/main/resources/Customer.composite
@@ -19,11 +19,11 @@
-->
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
xmlns:c="http://customer"
- xmlns:sca = "http://docs.oasis-open.org/ns/opencsa/sca/200903"
targetNamespace="http://customer"
+ xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1"
name="Customer">
- <service name="Registry" promote="CustomerRegistry">
+ <service name="Registry" promote="CustomerRegistry" requires="tuscany:logging">
<binding.sca/>
</service>
diff --git a/java/sca/itest/policies/src/main/resources/Payment.composite b/java/sca/itest/policies/src/main/resources/Payment.composite
index a1f9aefdac..2b50c6a32a 100644
--- a/java/sca/itest/policies/src/main/resources/Payment.composite
+++ b/java/sca/itest/policies/src/main/resources/Payment.composite
@@ -21,6 +21,7 @@
xmlns:p="http://payment"
xmlns:c="http://customer"
xmlns:sca = "http://docs.oasis-open.org/ns/opencsa/sca/200903"
+ xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1"
requires = "sca:authorization"
targetNamespace="http://payment"
name="Payment">
@@ -28,10 +29,10 @@
<component name="Payment">
<implementation.java class="org.apache.tuscany.sca.itest.policies.impl.PaymentImpl" />
<reference name="creditCardPayment" target="CreditCardPayment">
- <binding.sca requires="sca:integrity">
+ <binding.sca requires="sca:integrity tuscany:logging">
</binding.sca>
</reference>
- <reference name="customerRegistry" target="Customer/Registry" requires="sca:suspendsTransaction"/>
+ <reference name="customerRegistry" target="Customer/Registry" requires="sca:suspendsTransaction tuscany:logging"/>
</component>
<component name="CreditCardPayment">