Guillaume Nodet | 18c56a1 | 2009-04-30 09:10:03 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 | <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" |
Guillaume Nodet | c7f649d | 2010-02-20 20:23:14 +0000 | [diff] [blame^] | 3 | xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0" |
Guillaume Nodet | 18c56a1 | 2009-04-30 09:10:03 +0000 | [diff] [blame] | 4 | default-availability="optional"> |
| 5 | |
| 6 | <type-converters> |
Guillaume Nodet | c7f649d | 2010-02-20 20:23:14 +0000 | [diff] [blame^] | 7 | <bean id="converter1" class="org.apache.aries.blueprint.sample.DateTypeConverter"> |
Guillaume Nodet | 18c56a1 | 2009-04-30 09:10:03 +0000 | [diff] [blame] | 8 | <property name="format" value="yyyy.MM.dd"/> |
| 9 | </bean> |
Guillaume Nodet | c7f649d | 2010-02-20 20:23:14 +0000 | [diff] [blame^] | 10 | <bean id="converter2" class="org.apache.aries.blueprint.sample.CurrencyTypeConverter"/> |
Guillaume Nodet | 18c56a1 | 2009-04-30 09:10:03 +0000 | [diff] [blame] | 11 | |
| 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 Nodet | c7f649d | 2010-02-20 20:23:14 +0000 | [diff] [blame^] | 19 | <bean id="foo" class="org.apache.aries.blueprint.sample.Foo" init-method="init" destroy-method="destroy"> |
Guillaume Nodet | 18c56a1 | 2009-04-30 09:10:03 +0000 | [diff] [blame] | 20 | <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 Nodet | c7f649d | 2010-02-20 20:23:14 +0000 | [diff] [blame^] | 31 | <bean id="bar" class="org.apache.aries.blueprint.sample.Bar"> |
Guillaume Nodet | 18c56a1 | 2009-04-30 09:10:03 +0000 | [diff] [blame] | 32 | <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 Nodet | c7f649d | 2010-02-20 20:23:14 +0000 | [diff] [blame^] | 51 | <bean id="fooRegistrationListener" class="org.apache.aries.blueprint.sample.FooRegistrationListener"/> |
Guillaume Nodet | 18c56a1 | 2009-04-30 09:10:03 +0000 | [diff] [blame] | 52 | |
Guillaume Nodet | c7f649d | 2010-02-20 20:23:14 +0000 | [diff] [blame^] | 53 | <reference id="ref" interface="org.apache.aries.blueprint.sample.Foo"> |
Guillaume Nodet | 18c56a1 | 2009-04-30 09:10:03 +0000 | [diff] [blame] | 54 | </reference> |
| 55 | |
Guillaume Nodet | c7f649d | 2010-02-20 20:23:14 +0000 | [diff] [blame^] | 56 | <reference id="ref2" interface="org.apache.aries.blueprint.sample.InterfaceA" timeout="100"> |
Guillaume Nodet | 508a4e1 | 2009-06-18 21:11:51 +0000 | [diff] [blame] | 57 | <reference-listener bind-method="bind" unbind-method="unbind" ref="bindingListener" /> |
Guillaume Nodet | 18c56a1 | 2009-04-30 09:10:03 +0000 | [diff] [blame] | 58 | </reference> |
| 59 | |
Guillaume Nodet | c7f649d | 2010-02-20 20:23:14 +0000 | [diff] [blame^] | 60 | <bean id="bindingListener" class="org.apache.aries.blueprint.sample.BindingListener"/> |
Guillaume Nodet | 18c56a1 | 2009-04-30 09:10:03 +0000 | [diff] [blame] | 61 | |
Guillaume Nodet | c7f649d | 2010-02-20 20:23:14 +0000 | [diff] [blame^] | 62 | <reference-list id="ref-list" interface="org.apache.aries.blueprint.sample.InterfaceA"> |
Guillaume Nodet | 508a4e1 | 2009-06-18 21:11:51 +0000 | [diff] [blame] | 63 | <reference-listener bind-method="bind" unbind-method="unbind" ref="listBindingListener" /> |
Guillaume Nodet | 67eeb70 | 2009-07-02 07:04:21 +0000 | [diff] [blame] | 64 | </reference-list> |
Guillaume Nodet | 18c56a1 | 2009-04-30 09:10:03 +0000 | [diff] [blame] | 65 | |
Guillaume Nodet | c7f649d | 2010-02-20 20:23:14 +0000 | [diff] [blame^] | 66 | <bean id="listBindingListener" class="org.apache.aries.blueprint.sample.BindingListener"/> |
Guillaume Nodet | 18c56a1 | 2009-04-30 09:10:03 +0000 | [diff] [blame] | 67 | |
| 68 | </blueprint> |
| 69 | |