<?xml version="1.0" encoding="UTF-8"?>
<!--
    JBoss, Home of Professional Open Source
    Copyright 2013, Red Hat, Inc. and/or its affiliates, and individual
    contributors by the @authors tag. See the copyright.txt in the
    distribution for a full listing of individual 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:camel="urn:switchyard-component-camel:config:1.0" xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912">
    <sca:composite name="camel-service" targetNamespace="urn:switchyard-quickstart:camel-service:0.1.0">
        <sca:service name="JavaDSL" promote="JavaDSLBuilder/JavaDSL">
            <sca:binding.sca/>
        </sca:service>
        <sca:component name="JavaDSLBuilder">
            <camel:implementation.camel>
                <camel:java class="org.switchyard.quickstarts.camel.service.JavaDSLBuilder"/>
            </camel:implementation.camel>
            <sca:service name="JavaDSL">
                <sca:interface.java interface="org.switchyard.quickstarts.camel.service.JavaDSL"/>
            </sca:service>
            <sca:reference name="XMLService">
                <interface.esb inputType="java:java.lang.String"/>
            </sca:reference>
        </sca:component>
        <sca:component name="XMLComponent">
            <camel:implementation.camel>
                <camel:xml path="META-INF/route.xml"/>
            </camel:implementation.camel>
            <sca:service name="XMLService">
                <interface.esb inputType="java:java.lang.String"/>
            </sca:service>
        </sca:component>
    </sca:composite>
</switchyard>
