<?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.
-->
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
           default-availability="mandatory">

    <description>
        This is a parsing test application
    </description>

    <type-converters>
        <bean class="org.apache.aries.blueprint.pojos.ConverterA"/>
        <ref component-id="converterB"/>
    </type-converters>

    <bean id="pojoA" class="org.apache.aries.blueprint.pojos.PojoA">
        <property name="pojob" ref="pojoB"/>
    </bean>

    <bean id="pojoAcns" class="org.apache.aries.blueprint.pojos.PojoA">
        <argument ref="pojoB"/>
    </bean>

    <bean id="pojoB" class="org.apache.aries.blueprint.pojos.PojoB">
        <property name="uri" value="urn:myuri"/>
    </bean>

    <bean id="pojoBcns" class="org.apache.aries.blueprint.pojos.PojoB">
        <argument value="urn:myuri"/>
    </bean>

    <bean id="converterB" class="org.apache.aries.blueprint.pojos.ConverterB"/>

    <reference id="refA" filter="(key=prop)" interface="org.apache.aries.blueprint.pojos.InterfaceA"/>

    <reference id="refB" availability="optional">
        <interfaces>
            <value>org.apache.aries.blueprint.pojos.InterfaceA</value>
        </interfaces>
        <listener   ref="listenerA" bind-method="bind" unbind-method="unbind"/>
    </reference>

    <service interface="org.apache.aries.blueprint.pojos.InterfaceA" ref="pojoA"/>

    <bean id="listenerA" class="org.apache.aries.blueprint.pojos.ListenerA"/>

    <reference-list availability="optional" member-type="service-object"/>

</blueprint>