| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 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 |
--> |
| 20 |
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" |
| 21 |
xmlns:foo="http://acme.com"> |
| 22 |
|
| 23 |
<!-- tests using nested beans --> |
| 24 |
|
| 25 |
<bean id="restaurant" |
| 26 |
class="org.apache.xbean.blueprint.example.RestaurantService"> |
| 27 |
<property name="serviceName" value="foo:xyz"/> |
| 28 |
<property name="favourite"> |
| 29 |
<bean class="org.apache.xbean.blueprint.example.PizzaService"> |
| 30 |
<property name="topping" value="Salami" /> |
| 31 |
<property name="cheese" value="Edam" /> |
| 32 |
<property name="size" value="17" /> |
| 33 |
</bean> |
| 34 |
</property> |
| 35 |
<property name="dinnerMenu"> |
| 36 |
<list> |
| 37 |
<bean class="org.apache.xbean.blueprint.example.PizzaService"> |
| 38 |
<property name="topping" value="Ham" /> |
| 39 |
<property name="cheese" value="Mozzarella" /> |
| 40 |
<property name="size" value="15" /> |
| 41 |
</bean> |
| 42 |
<bean class="org.apache.xbean.blueprint.example.PizzaService"> |
| 43 |
<property name="topping" value="Eggs" /> |
| 44 |
<property name="cheese" value="Mozzarella" /> |
| 45 |
<property name="size" value="16" /> |
| 46 |
</bean> |
| 47 |
</list> |
| 48 |
</property> |
| 49 |
<property name="snackMenu"> |
| 50 |
<set> |
| 51 |
<bean class="org.apache.xbean.blueprint.example.PizzaService"> |
| 52 |
<property name="topping" value="Tofu" /> |
| 53 |
<property name="cheese" value="Parmesan" /> |
| 54 |
<property name="size" value="6" /> |
| 55 |
</bean> |
| 56 |
<bean class="org.apache.xbean.blueprint.example.PizzaService"> |
| 57 |
<property name="topping" value="Prosciutto" /> |
| 58 |
<property name="cheese" value="Blue" /> |
| 59 |
<property name="size" value="8" /> |
| 60 |
</bean> |
| 61 |
</set> |
| 62 |
</property> |
| 63 |
<property name="lunchMenu"> |
| 64 |
<list> |
| 65 |
<bean class="org.apache.xbean.blueprint.example.PizzaService"> |
| 66 |
<property name="topping" value="Chicken" /> |
| 67 |
<property name="cheese" value="Brie" /> |
| 68 |
<property name="size" value="17" /> |
| 69 |
</bean> |
| 70 |
</list> |
| 71 |
</property> |
| 72 |
</bean> |
| 73 |
|
| 74 |
|
| 75 |
</blueprint> |