diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2008-07-03 01:03:50 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2008-07-03 01:03:50 +0000 |
commit | 2bd12eeb21785924346b1114272c9306a2dc7b25 (patch) | |
tree | 03dec87f514ede7ea7a0593f7d94934f4d0a0d4e /java/sca/samples/photo-gallery/src/main/resources/photo-gallery.composite | |
parent | 71961dd90a5eca97bf70f5ffcc0d9d713f616040 (diff) |
Simple picture gallery just showing list of pictures from a album stored as project resource
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@673556 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | java/sca/samples/photo-gallery/src/main/resources/photo-gallery.composite | 41 |
1 files changed, 12 insertions, 29 deletions
diff --git a/java/sca/samples/photo-gallery/src/main/resources/photo-gallery.composite b/java/sca/samples/photo-gallery/src/main/resources/photo-gallery.composite index 4f4a9d2e3d..0bb3c4b4db 100644 --- a/java/sca/samples/photo-gallery/src/main/resources/photo-gallery.composite +++ b/java/sca/samples/photo-gallery/src/main/resources/photo-gallery.composite @@ -22,43 +22,26 @@ targetNamespace="http://photo-gallery" name="photo-gallery"> - <component name="Store"> - <t:implementation.widget location="uiservices/store.html"/> + <component name="Gallery"> + <t:implementation.widget location="gallery.html"/> <service name="Widget"> - <t:binding.http uri="/store"/> + <t:binding.http uri="/gallery"/> </service> - <reference name="catalog" target="Catalog"> - <t:binding.jsonrpc/> - </reference> - <reference name="shoppingCart" target="ShoppingCart/Cart"> - <t:binding.atom/> - </reference> - <reference name="shoppingTotal" target="ShoppingCart/Total"> + <reference name="album" target="Album"> <t:binding.jsonrpc/> </reference> </component> - <component name="Catalog"> - <implementation.java class="services.FruitsCatalogImpl"/> - <property name="currencyCode">USD</property> - <service name="Catalog"> + <component name="Album"> + <implementation.java class="services.AlbumImpl"/> + <property name="gallery">gallery</property> + <property name="album">boston</property> + <service name="Album"> <t:binding.jsonrpc/> </service> - <reference name="currencyConverter" target="CurrencyConverter"/> </component> - - <component name="ShoppingCart"> - <implementation.java class="services.ShoppingCartImpl"/> - <service name="Cart"> - <t:binding.atom uri="/ShoppingCart/Cart"/> - </service> - <service name="Total"> - <t:binding.jsonrpc/> - </service> + + <component name="GalleryPictures"> + <t:implementation.resource location="gallery"></t:implementation.resource> </component> - - <component name="CurrencyConverter"> - <implementation.java class="services.CurrencyConverterImpl"/> - </component> - </composite> |