summaryrefslogtreecommitdiffstats
path: root/sandbox/kgoodson/jagg/src/main/resources/plan.composite
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sandbox/kgoodson/jagg/src/main/resources/plan.composite (renamed from sandbox/kgoodson/jagg/src/main/java/services/Item.java)58
1 files changed, 23 insertions, 35 deletions
diff --git a/sandbox/kgoodson/jagg/src/main/java/services/Item.java b/sandbox/kgoodson/jagg/src/main/resources/plan.composite
index d89712a791..dfc71c6e33 100644
--- a/sandbox/kgoodson/jagg/src/main/java/services/Item.java
+++ b/sandbox/kgoodson/jagg/src/main/resources/plan.composite
@@ -1,4 +1,5 @@
-/*
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
* 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
@@ -15,40 +16,27 @@
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
- */
-
-package services;
-
-public class Item {
- private String name;
- private String price;
-
- public Item() {
- }
-
- public Item(String name, String price) {
- this.name = name;
- this.price = price;
- }
-
- public Item(String name) {
- this(name,"0.00");
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
+-->
+<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903"
+ xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1"
+ targetNamespace="http://jagg"
+ name="jagg">
+
+ <component name="planApp">
+ <tuscany:implementation.widget location="uiservices/plan.html"/>
+ <service name="Widget">
+ <tuscany:binding.http uri="/plan"/>
+ </service>
+ <reference name="plan" target="Plan"/>
+ </component>
- public String getPrice() {
- return price;
- }
+ <component name="Plan">
+ <implementation.java class="services.PlanViewImpl"/>
+ <service name="PlanView">
+ <tuscany:binding.jsonrpc/>
+ </service>
+ </component>
+
- public void setPrice(String price) {
- this.price = price;
- }
-}
+</composite>