blob: dee4837c0f252ed371077c3ece199a3d8a8e08a3 [file] [log] [blame]
Felix Meschberger962b3672009-06-15 08:52:25 +00001<?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"
Felix Meschberger7e345c52009-07-09 10:29:19 +000049 modified="mymodified"
Felix Meschberger962b3672009-06-15 08:52:25 +000050 configuration-policy="ignore"
51 >
52
53 <implementation class="components.all.impl" />
54
55 <property
56 name="prop"
57 value="1234"
58 type="Integer"
59 />
60
61 <properties
62 entry="components_all_elements_10.properties"
63 />
64
65 <service
66 servicefactory="true"
67 >
68 <provide
69 interface="components.all.service"
70 />
71 </service>
72
73 <!-- Basic reference testing reading -->
74 <reference
75 name="ref.name"
76 interface="ref.service"
77 cardinality="0..n"
78 policy="dynamic"
79 target="ref.target"
80 bind="ref_bind"
81 unbind="ref_unbind"
82 />
83
84 <!--
85 references testing the setting of secondary properties
86 isStatic, isMultiple and isOptional
87 -->
88 <reference name="ref.01" cardinality="0..1" />
89 <reference name="ref.11" cardinality="1..1" />
90 <reference name="ref.0n" cardinality="0..n" />
91 <reference name="ref.1n" cardinality="1..n" />
92 <reference name="ref.static" policy="static" />
93 <reference name="ref.dynamic" policy="dynamic" />
94
95 </scr:component>
96</components>