| <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| <!-- |
| 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" |
| xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.2.0"> |
| |
| <type-converters> |
| <bean id="converter1" class="org.apache.aries.blueprint.sample.DateTypeConverter"> |
| <property name="format" value="yyyy.MM.dd" /> |
| </bean> |
| <bean id="converter2" class="org.apache.aries.blueprint.sample.CurrencyTypeConverter" /> |
| </type-converters> |
| |
| <ext:property-placeholder> |
| <ext:default-properties> |
| <ext:property name="name" value="value" /> |
| <ext:property name="a" value="Hello " /> |
| <ext:property name="b" value="FooBar" /> |
| </ext:default-properties> |
| </ext:property-placeholder> |
| |
| <bean id="foo" class="org.apache.aries.blueprint.sample.Foo" |
| init-method="init" destroy-method="destroy"> |
| <property name="a" value="5" /> |
| <property name="b" value="${key.b}" /> |
| <property name="currency"> |
| <value>PLN</value> |
| </property> |
| <property name="date"> |
| <value>2009.04.17</value> |
| </property> |
| </bean> |
| |
| <bean id="accountOne" class="org.apache.aries.blueprint.sample.Account"> |
| <argument value="1" /> |
| </bean> |
| |
| <bean id="accountTwo" class="org.apache.aries.blueprint.sample.StaticAccountFactory" |
| factory-method="createAccount"> |
| <argument value="2" /> |
| </bean> |
| |
| <bean id="accountFactory" class="org.apache.aries.blueprint.sample.AccountFactory"> |
| <argument value="account factory" /> |
| </bean> |
| |
| <bean id="accountThree" factory-ref="accountFactory" |
| factory-method="createAccount"> |
| <argument value="3" /> |
| </bean> |
| |
| <bean id="accounts" class="java.util.ArrayList"> |
| <argument> |
| <list> |
| <ref component-id="accountOne"/> |
| <ref component-id="accountTwo"/> |
| <ref component-id="accountThree"/> |
| </list> |
| </argument> |
| </bean> |
| </blueprint> |
| |