Guillaume Nodet | 18c56a1 | 2009-04-30 09:10:03 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
Chris Custine | 45921e6 | 2010-02-28 20:18:36 +0000 | [diff] [blame] | 2 | <!-- |
| 3 | |
| 4 | Licensed to the Apache Software Foundation (ASF) under one or more |
| 5 | contributor license agreements. See the NOTICE file distributed with |
| 6 | this work for additional information regarding copyright ownership. |
| 7 | The ASF licenses this file to You under the Apache License, Version 2.0 |
| 8 | (the "License"); you may not use this file except in compliance with |
| 9 | the License. You may obtain a copy of the License at |
| 10 | |
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | |
| 13 | Unless required by applicable law or agreed to in writing, software |
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | See the License for the specific language governing permissions and |
| 17 | limitations under the License. |
| 18 | |
| 19 | --> |
Guillaume Nodet | 18c56a1 | 2009-04-30 09:10:03 +0000 | [diff] [blame] | 20 | <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" |
Guillaume Nodet | c7f649d | 2010-02-20 20:23:14 +0000 | [diff] [blame] | 21 | 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] | 22 | default-availability="optional"> |
| 23 | |
| 24 | <type-converters> |
Guillaume Nodet | c7f649d | 2010-02-20 20:23:14 +0000 | [diff] [blame] | 25 | <bean id="converter1" class="org.apache.aries.blueprint.sample.DateTypeConverter"> |
Guillaume Nodet | 18c56a1 | 2009-04-30 09:10:03 +0000 | [diff] [blame] | 26 | <property name="format" value="yyyy.MM.dd"/> |
| 27 | </bean> |
Guillaume Nodet | c7f649d | 2010-02-20 20:23:14 +0000 | [diff] [blame] | 28 | <bean id="converter2" class="org.apache.aries.blueprint.sample.CurrencyTypeConverter"/> |
Guillaume Nodet | 18c56a1 | 2009-04-30 09:10:03 +0000 | [diff] [blame] | 29 | |
| 30 | <cm:property-placeholder id="property-placeholder" persistent-id="blueprint-sample"> |
| 31 | <cm:default-properties> |
| 32 | <cm:property name="key.b" value="-1"/> |
| 33 | </cm:default-properties> |
| 34 | </cm:property-placeholder> |
| 35 | </type-converters> |
| 36 | |
Guillaume Nodet | c7f649d | 2010-02-20 20:23:14 +0000 | [diff] [blame] | 37 | <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] | 38 | <property name="a" value="5" /> |
| 39 | <property name="b" value="${key.b}" /> |
| 40 | <property name="bar" ref="bar" /> |
| 41 | <property name="currency"> |
| 42 | <value>PLN</value> |
| 43 | </property> |
| 44 | <property name="date"> |
| 45 | <value>2009.04.17</value> |
| 46 | </property> |
| 47 | </bean> |
| 48 | |
Guillaume Nodet | c7f649d | 2010-02-20 20:23:14 +0000 | [diff] [blame] | 49 | <bean id="bar" class="org.apache.aries.blueprint.sample.Bar"> |
Guillaume Nodet | 18c56a1 | 2009-04-30 09:10:03 +0000 | [diff] [blame] | 50 | <property name="value"><value>Hello FooBar</value></property> |
| 51 | <property name="context" ref="bundleContext"/> |
| 52 | <property name="list"> |
| 53 | <list> |
| 54 | <value>a list element</value> |
| 55 | <value type = "java.lang.Integer">5</value> |
| 56 | </list> |
| 57 | </property> |
| 58 | </bean> |
| 59 | |
| 60 | <service ref="foo" auto-export="all-classes"> |
| 61 | <service-properties> |
| 62 | <entry key="key" value="value"/> |
| 63 | </service-properties> |
| 64 | <registration-listener ref="fooRegistrationListener" |
| 65 | registration-method="serviceRegistered" |
| 66 | unregistration-method="serviceUnregistered"/> |
| 67 | </service> |
| 68 | |
Guillaume Nodet | c7f649d | 2010-02-20 20:23:14 +0000 | [diff] [blame] | 69 | <bean id="fooRegistrationListener" class="org.apache.aries.blueprint.sample.FooRegistrationListener"/> |
Guillaume Nodet | 18c56a1 | 2009-04-30 09:10:03 +0000 | [diff] [blame] | 70 | |
Guillaume Nodet | c7f649d | 2010-02-20 20:23:14 +0000 | [diff] [blame] | 71 | <reference id="ref" interface="org.apache.aries.blueprint.sample.Foo"> |
Guillaume Nodet | 18c56a1 | 2009-04-30 09:10:03 +0000 | [diff] [blame] | 72 | </reference> |
| 73 | |
Guillaume Nodet | c7f649d | 2010-02-20 20:23:14 +0000 | [diff] [blame] | 74 | <reference id="ref2" interface="org.apache.aries.blueprint.sample.InterfaceA" timeout="100"> |
Guillaume Nodet | 508a4e1 | 2009-06-18 21:11:51 +0000 | [diff] [blame] | 75 | <reference-listener bind-method="bind" unbind-method="unbind" ref="bindingListener" /> |
Guillaume Nodet | 18c56a1 | 2009-04-30 09:10:03 +0000 | [diff] [blame] | 76 | </reference> |
| 77 | |
Guillaume Nodet | c7f649d | 2010-02-20 20:23:14 +0000 | [diff] [blame] | 78 | <bean id="bindingListener" class="org.apache.aries.blueprint.sample.BindingListener"/> |
Guillaume Nodet | 18c56a1 | 2009-04-30 09:10:03 +0000 | [diff] [blame] | 79 | |
Guillaume Nodet | c7f649d | 2010-02-20 20:23:14 +0000 | [diff] [blame] | 80 | <reference-list id="ref-list" interface="org.apache.aries.blueprint.sample.InterfaceA"> |
Guillaume Nodet | 508a4e1 | 2009-06-18 21:11:51 +0000 | [diff] [blame] | 81 | <reference-listener bind-method="bind" unbind-method="unbind" ref="listBindingListener" /> |
Guillaume Nodet | 67eeb70 | 2009-07-02 07:04:21 +0000 | [diff] [blame] | 82 | </reference-list> |
Guillaume Nodet | 18c56a1 | 2009-04-30 09:10:03 +0000 | [diff] [blame] | 83 | |
Guillaume Nodet | c7f649d | 2010-02-20 20:23:14 +0000 | [diff] [blame] | 84 | <bean id="listBindingListener" class="org.apache.aries.blueprint.sample.BindingListener"/> |
Guillaume Nodet | 18c56a1 | 2009-04-30 09:10:03 +0000 | [diff] [blame] | 85 | |
| 86 | </blueprint> |
| 87 | |