Felix Meschberger | f7d5706 | 2009-06-15 08:52:25 +0000 | [diff] [blame^] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | Licensed to the Apache Software Foundation (ASF) under one |
| 4 | or more contributor license agreements. See the NOTICE file |
| 5 | distributed with this work for additional information |
| 6 | regarding copyright ownership. The ASF licenses this file |
| 7 | to you under the Apache License, Version 2.0 (the |
| 8 | "License"); you may not use this file except in compliance |
| 9 | with 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, |
| 14 | software distributed under the License is distributed on an |
| 15 | "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 16 | KIND, either express or implied. See the License for the |
| 17 | specific language governing permissions and limitations |
| 18 | under the License. |
| 19 | --> |
| 20 | |
| 21 | <!-- |
| 22 | |
| 23 | This file has a component descriptor with values for all elements |
| 24 | and attributes defined in the Declarative Services XML Schema for |
| 25 | the Declarative Services Specification 1.0. |
| 26 | |
| 27 | The goal of this file is to test the XML parsing whether all elements |
| 28 | are read and stored in the metadata objects and fields. Semantic |
| 29 | correctness according to the specificiation is not tested. |
| 30 | --> |
| 31 | |
| 32 | <components> |
| 33 | <!-- |
| 34 | component element with |
| 35 | * DS 1.0 namespace (sets the ds namespace code) |
| 36 | * DS 1.0 attributes |
| 37 | * DS 1.1 attributes (must be read) |
| 38 | --> |
| 39 | <scr:component |
| 40 | xmlns:scr="http://www.osgi.org/xmlns/scr/v1.0.0" |
| 41 | |
| 42 | enabled="true" |
| 43 | name="components.all.name" |
| 44 | factory="components.all.factory" |
| 45 | immediate="true" |
| 46 | |
| 47 | activate="myactivate" |
| 48 | deactivate="mydeactivate" |
| 49 | configuration-policy="ignore" |
| 50 | > |
| 51 | |
| 52 | <implementation class="components.all.impl" /> |
| 53 | |
| 54 | <property |
| 55 | name="prop" |
| 56 | value="1234" |
| 57 | type="Integer" |
| 58 | /> |
| 59 | |
| 60 | <properties |
| 61 | entry="components_all_elements_10.properties" |
| 62 | /> |
| 63 | |
| 64 | <service |
| 65 | servicefactory="true" |
| 66 | > |
| 67 | <provide |
| 68 | interface="components.all.service" |
| 69 | /> |
| 70 | </service> |
| 71 | |
| 72 | <!-- Basic reference testing reading --> |
| 73 | <reference |
| 74 | name="ref.name" |
| 75 | interface="ref.service" |
| 76 | cardinality="0..n" |
| 77 | policy="dynamic" |
| 78 | target="ref.target" |
| 79 | bind="ref_bind" |
| 80 | unbind="ref_unbind" |
| 81 | /> |
| 82 | |
| 83 | <!-- |
| 84 | references testing the setting of secondary properties |
| 85 | isStatic, isMultiple and isOptional |
| 86 | --> |
| 87 | <reference name="ref.01" cardinality="0..1" /> |
| 88 | <reference name="ref.11" cardinality="1..1" /> |
| 89 | <reference name="ref.0n" cardinality="0..n" /> |
| 90 | <reference name="ref.1n" cardinality="1..n" /> |
| 91 | <reference name="ref.static" policy="static" /> |
| 92 | <reference name="ref.dynamic" policy="dynamic" /> |
| 93 | |
| 94 | </scr:component> |
| 95 | </components> |