You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sv...@apache.org on 2007/10/07 15:50:17 UTC
svn commit: r582633 - in
/incubator/tuscany/java/sca/samples/calculator/src/main/resources:
Calculator.composite definitions.xml
Author: svkrish
Date: Sun Oct 7 06:50:16 2007
New Revision: 582633
URL: http://svn.apache.org/viewvc?rev=582633&view=rev
Log:
adding policy intent for implementation.java
Added:
incubator/tuscany/java/sca/samples/calculator/src/main/resources/definitions.xml
Modified:
incubator/tuscany/java/sca/samples/calculator/src/main/resources/Calculator.composite
Modified: incubator/tuscany/java/sca/samples/calculator/src/main/resources/Calculator.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/calculator/src/main/resources/Calculator.composite?rev=582633&r1=582632&r2=582633&view=diff
==============================================================================
--- incubator/tuscany/java/sca/samples/calculator/src/main/resources/Calculator.composite (original)
+++ incubator/tuscany/java/sca/samples/calculator/src/main/resources/Calculator.composite Sun Oct 7 06:50:16 2007
@@ -31,7 +31,7 @@
</component>
<component name="AddServiceComponent">
- <implementation.java class="calculator.AddServiceImpl"/>
+ <implementation.java class="calculator.AddServiceImpl" requires="logging"/>
</component>
<component name="SubtractServiceComponent">
Added: incubator/tuscany/java/sca/samples/calculator/src/main/resources/definitions.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/calculator/src/main/resources/definitions.xml?rev=582633&view=auto
==============================================================================
--- incubator/tuscany/java/sca/samples/calculator/src/main/resources/definitions.xml (added)
+++ incubator/tuscany/java/sca/samples/calculator/src/main/resources/definitions.xml Sun Oct 7 06:50:16 2007
@@ -0,0 +1,62 @@
+<?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://www.osoa.org/xmlns/sca/1.0"
+ targetNamespace="http://test"
+ xmlns:sca="http://www.osoa.org/xmlns/sca/1.0"
+ xmlns:tjp="http://tuscany.apache.org/xmlns/sca/1.0/impl/java/policy">
+
+<!-- Extension Types Metadata -->
+<!-- implementationType type="sca:implementation.java" alwaysProvides="logging"
+ mayProvide="tracing"/>
+<bindingType type="sca:binding.ws" alwaysProvides="confidentiality"
+ mayProvide="integrity"/-->
+
+ <!-- POLICY SETS -->
+<policySet name="tjp:LoggingPolicy"
+ provides="logging"
+ appliesTo="sca:implementation.java"
+ xmlns="http://www.osoa.org/xmlns/sca/1.0"
+ xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
+ <wsp:PolicyAttachment>
+ <!-- policy expression and policy subject for
+ "basic authentication" -->
+ </wsp:PolicyAttachment>
+ <wsp:PolicyAttachment>
+ <!-- policy expression and policy subject for
+ "reliability" -->
+ </wsp:PolicyAttachment>
+</policySet>
+
+<!-- simple intent -->
+ <intent name="logging"
+ constrains="sca:implementation">
+ <description>
+ All messages to and from this implementation must be logged
+ </description>
+ </intent>
+
+ <intent name="tracing"
+ constrains="sca:implementation.java">
+ <description>
+ Need to figure out some description for this
+ </description>
+ </intent>
+
+</definitions>
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org