diff options
Diffstat (limited to '')
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">
|