<?xml version="1.0" encoding="UTF-8"?>
<!--
 - Copyright 2013 Red Hat Inc. and/or its affiliates and other contributors.
 - 
 - Licensed 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.
 -->
<switchyard xmlns="urn:switchyard-config:switchyard:1.0"
    xmlns:file="urn:switchyard-component-camel-file:config:1.0"
    xmlns:swyd="urn:switchyard-config:switchyard:1.0">

    <composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912" name="camel-service"
        targetNamespace="urn:switchyard-quickstart:camel-service:0.1.0">
        <service name="JavaDSL" promote="JavaDSLBuilder/JavaDSL">
            <file:binding.file>
                <file:directory>data/</file:directory>
            </file:binding.file>
        </service>
        <component name="JavaDSLBuilder">
            <implementation.camel xmlns="urn:switchyard-component-camel:config:1.0">
                <java class="org.switchyard.quickstarts.camel.service.JavaDSLBuilder"/>
            </implementation.camel>
            <service name="JavaDSL">
                <interface.java interface="org.switchyard.quickstarts.camel.service.JavaDSL"/>
            </service>
            <reference name="XMLService">
                <swyd:interface.esb xmlns:swyd="urn:switchyard-config:switchyard:1.0" inputType="java:java.lang.String"/>
            </reference>
        </component>
        <component name="XMLComponent">
            <implementation.camel xmlns="urn:switchyard-component-camel:config:1.0">
                <xml path="META-INF/route.xml"/>
            </implementation.camel>
            <service name="XMLService">
                <swyd:interface.esb xmlns:swyd="urn:switchyard-config:switchyard:1.0" inputType="java:java.lang.String"/>
            </service>
        </component>
    </composite>
</switchyard>
