From 0ad58ea612b11983efbb44064fb4a2b9fcda03c3 Mon Sep 17 00:00:00 2001 From: antelder Date: Thu, 11 Aug 2011 19:50:07 +0000 Subject: Add an example composite based on the one in section 5.2.1 of the assembly spec so we can compare the pictures git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1156776 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/services/myvalue/MyValueServiceImpl.java | 36 +++++++++++++++++++++ .../main/resources/META-INF/sca-contribution.xml | 4 ++- .../src/main/resources/myValue.composite | 37 ++++++++++++++++++++++ 3 files changed, 76 insertions(+), 1 deletion(-) create mode 100644 collaboration/GSoC-2011-Nirmal/CompositeDiagramShellPlugin/src/main/java/services/myvalue/MyValueServiceImpl.java create mode 100644 collaboration/GSoC-2011-Nirmal/CompositeDiagramShellPlugin/src/main/resources/myValue.composite (limited to 'collaboration') diff --git a/collaboration/GSoC-2011-Nirmal/CompositeDiagramShellPlugin/src/main/java/services/myvalue/MyValueServiceImpl.java b/collaboration/GSoC-2011-Nirmal/CompositeDiagramShellPlugin/src/main/java/services/myvalue/MyValueServiceImpl.java new file mode 100644 index 0000000000..af8795073e --- /dev/null +++ b/collaboration/GSoC-2011-Nirmal/CompositeDiagramShellPlugin/src/main/java/services/myvalue/MyValueServiceImpl.java @@ -0,0 +1,36 @@ +/* + * 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. + */ + +package services.myvalue; + +import org.oasisopen.sca.annotation.Property; +import org.oasisopen.sca.annotation.Reference; + +public class MyValueServiceImpl { + + @Property + String currency; + + @Reference + Object customerService; + + @Reference + Object stockQuoteService; + +} diff --git a/collaboration/GSoC-2011-Nirmal/CompositeDiagramShellPlugin/src/main/resources/META-INF/sca-contribution.xml b/collaboration/GSoC-2011-Nirmal/CompositeDiagramShellPlugin/src/main/resources/META-INF/sca-contribution.xml index 95c32fb5bf..7d740f8e9b 100644 --- a/collaboration/GSoC-2011-Nirmal/CompositeDiagramShellPlugin/src/main/resources/META-INF/sca-contribution.xml +++ b/collaboration/GSoC-2011-Nirmal/CompositeDiagramShellPlugin/src/main/resources/META-INF/sca-contribution.xml @@ -18,8 +18,10 @@ * under the License. --> + xmlns:sample="http://sample" + xmlns:foo="http://foo.com"> + diff --git a/collaboration/GSoC-2011-Nirmal/CompositeDiagramShellPlugin/src/main/resources/myValue.composite b/collaboration/GSoC-2011-Nirmal/CompositeDiagramShellPlugin/src/main/resources/myValue.composite new file mode 100644 index 0000000000..b84eb359fa --- /dev/null +++ b/collaboration/GSoC-2011-Nirmal/CompositeDiagramShellPlugin/src/main/resources/myValue.composite @@ -0,0 +1,37 @@ + + + + + + + + + EURO + + + + + + + + + \ No newline at end of file -- cgit v1.2.3