blob: b298a599bc3fc2e4638fcd5610ff7ebceba50c72 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:osgi="http://www.springframework.org/schema/osgi"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd">
<osgi:service ref="dependent" interface="org.springframework.osgi.iandt.dependencies.Dependent"/>
<osgi:reference id="simpleService3"
interface="org.springframework.osgi.iandt.simpleservice2.MyService2"
filter="(service=3)"/>
<osgi:reference id="simpleService2"
interface="org.springframework.osgi.iandt.simpleservice2.MyService2"
filter="(service=2)"/>
<osgi:reference interface="org.springframework.osgi.iandt.simpleservice.MyService" id="nested"/>
<bean id="dependent" class="org.springframework.osgi.iandt.dependencies.DependentImpl" lazy-init="false">
<property name="service2" ref="simpleService2"/>
<property name="service3" ref="simpleService3"/>
<property name="service1">
<ref bean="nested"/>
</property>
</bean>
</beans>