blob: c2429d81dcee816fa38172b73931f2eb21956163 [file] [log] [blame]
Guillaume Nodet18c56a12009-04-30 09:10:03 +00001<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
Guillaume Nodetc7f649d2010-02-20 20:23:14 +00003 xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
Guillaume Nodet18c56a12009-04-30 09:10:03 +00004 default-availability="optional">
5
6 <type-converters>
Guillaume Nodetc7f649d2010-02-20 20:23:14 +00007 <bean id="converter1" class="org.apache.aries.blueprint.sample.DateTypeConverter">
Guillaume Nodet18c56a12009-04-30 09:10:03 +00008 <property name="format" value="yyyy.MM.dd"/>
9 </bean>
Guillaume Nodetc7f649d2010-02-20 20:23:14 +000010 <bean id="converter2" class="org.apache.aries.blueprint.sample.CurrencyTypeConverter"/>
Guillaume Nodet18c56a12009-04-30 09:10:03 +000011
12 <cm:property-placeholder id="property-placeholder" persistent-id="blueprint-sample">
13 <cm:default-properties>
14 <cm:property name="key.b" value="-1"/>
15 </cm:default-properties>
16 </cm:property-placeholder>
17 </type-converters>
18
Guillaume Nodetc7f649d2010-02-20 20:23:14 +000019 <bean id="foo" class="org.apache.aries.blueprint.sample.Foo" init-method="init" destroy-method="destroy">
Guillaume Nodet18c56a12009-04-30 09:10:03 +000020 <property name="a" value="5" />
21 <property name="b" value="${key.b}" />
22 <property name="bar" ref="bar" />
23 <property name="currency">
24 <value>PLN</value>
25 </property>
26 <property name="date">
27 <value>2009.04.17</value>
28 </property>
29 </bean>
30
Guillaume Nodetc7f649d2010-02-20 20:23:14 +000031 <bean id="bar" class="org.apache.aries.blueprint.sample.Bar">
Guillaume Nodet18c56a12009-04-30 09:10:03 +000032 <property name="value"><value>Hello FooBar</value></property>
33 <property name="context" ref="bundleContext"/>
34 <property name="list">
35 <list>
36 <value>a list element</value>
37 <value type = "java.lang.Integer">5</value>
38 </list>
39 </property>
40 </bean>
41
42 <service ref="foo" auto-export="all-classes">
43 <service-properties>
44 <entry key="key" value="value"/>
45 </service-properties>
46 <registration-listener ref="fooRegistrationListener"
47 registration-method="serviceRegistered"
48 unregistration-method="serviceUnregistered"/>
49 </service>
50
Guillaume Nodetc7f649d2010-02-20 20:23:14 +000051 <bean id="fooRegistrationListener" class="org.apache.aries.blueprint.sample.FooRegistrationListener"/>
Guillaume Nodet18c56a12009-04-30 09:10:03 +000052
Guillaume Nodetc7f649d2010-02-20 20:23:14 +000053 <reference id="ref" interface="org.apache.aries.blueprint.sample.Foo">
Guillaume Nodet18c56a12009-04-30 09:10:03 +000054 </reference>
55
Guillaume Nodetc7f649d2010-02-20 20:23:14 +000056 <reference id="ref2" interface="org.apache.aries.blueprint.sample.InterfaceA" timeout="100">
Guillaume Nodet508a4e12009-06-18 21:11:51 +000057 <reference-listener bind-method="bind" unbind-method="unbind" ref="bindingListener" />
Guillaume Nodet18c56a12009-04-30 09:10:03 +000058 </reference>
59
Guillaume Nodetc7f649d2010-02-20 20:23:14 +000060 <bean id="bindingListener" class="org.apache.aries.blueprint.sample.BindingListener"/>
Guillaume Nodet18c56a12009-04-30 09:10:03 +000061
Guillaume Nodetc7f649d2010-02-20 20:23:14 +000062 <reference-list id="ref-list" interface="org.apache.aries.blueprint.sample.InterfaceA">
Guillaume Nodet508a4e12009-06-18 21:11:51 +000063 <reference-listener bind-method="bind" unbind-method="unbind" ref="listBindingListener" />
Guillaume Nodet67eeb702009-07-02 07:04:21 +000064 </reference-list>
Guillaume Nodet18c56a12009-04-30 09:10:03 +000065
Guillaume Nodetc7f649d2010-02-20 20:23:14 +000066 <bean id="listBindingListener" class="org.apache.aries.blueprint.sample.BindingListener"/>
Guillaume Nodet18c56a12009-04-30 09:10:03 +000067
68</blueprint>
69