blob: 1e8fd5f1ba40f01a2bc51e2717d1f630ce568c75 [file] [log] [blame]
<?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
* 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.
-->
<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:nuvem="http://apache.org/nuvem"
xmlns:s="http://store" targetNamespace="http://store" name="store">
<component name="Catalog">
<implementation.java class="services.FruitsCatalogImpl" />
<property name="currencyCode">USD</property>
<service name="Catalog">
<interface.java interface="services.Catalog" />
<tuscany:binding.jsonrpc uri="/Catalog" />
</service>
<reference name="currencyConverter" target="CurrencyConverter" />
</component>
<component name="CurrencyConverter">
<implementation.java class="services.CurrencyConverterImpl" />
<service name="CurrencyConverter">
<interface.java interface="services.CurrencyConverter" />
</service>
</component>
<component name="ShoppingCartManager">
<implementation.java class="services.ShoppingCartManager" />
<service name="ShoppingCart">
<tuscany:binding.jsonrpc uri="/ShoppingCart" />
</service>
<reference name="userService" target="UserService">
<binding.sca name="local" />
</reference>
<reference name="shipmentService" target="ShipmentService" />
<reference name="documentService" target="DocumentService" />
</component>
<component name="DocumentService">
<implementation.java
class="org.apache.nuvem.cloud.data.impl.MapDocumentServiceImpl" />
<!--
implementation.java
class="org.apache.nuvem.cloud.data.impl.MemcacheDocumentServiceImpl"/
-->
</component>
<component name="UserService">
<implementation.java
class="org.apache.nuvem.cloud.user.impl.GoogleUserService" />
<service name="UserService">
<binding.sca name="local" />
<tuscany:binding.jsonrpc uri="/User" />
</service>
</component>
<component name="ShipmentObserver">
<implementation.java class="services.XMPPShipmentObserver" />
<reference name="endpoint" target="XMPP/XMPPEndPoint">
<interface.java interface="org.apache.nuvem.cloud.xmpp.XMPPEndPoint" />
</reference>
</component>
<component name="XMPP">
<implementation.composite name="nuvem:xmppgoogle" />
</component>
<component name="ShipmentService">
<implementation.java class="services.ShipmentServiceImpl" />
<reference name="observer" target="ShipmentObserver" />
</component>
<component name="XMPPReciever">
<implementation.web web-uri="/_ah/xmpp/message/chat/"/>
<reference name="endPoint" target="XMPP/XMPPEndPoint">
<interface.java interface="org.apache.nuvem.cloud.xmpp.XMPPEndPoint" />
</reference>
</component>
</composite>