blob: 9c8c6309c2078498443d2b957edb9d994c0fb83d [file] [log] [blame]
Felix Meschbergerf975aa52009-08-24 10:37:44 +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<components xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0">
21
22 <scr:component name="test_optional_single_dynamic"
23 enabled="false"
24 configuration-policy="ignore">
25 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
26 <reference
27 name="ref"
28 interface="org.apache.felix.scr.integration.components.SimpleService"
29 cardinality="0..1"
30 policy="dynamic"
31 bind="setSimpleService"
32 unbind="unsetSimpleService"
33 />
34 </scr:component>
35
36 <scr:component name="test_required_single_dynamic"
37 enabled="false"
38 configuration-policy="ignore">
39 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
40 <reference
41 name="ref"
42 interface="org.apache.felix.scr.integration.components.SimpleService"
43 cardinality="1..1"
44 policy="dynamic"
45 bind="setSimpleService"
46 unbind="unsetSimpleService"
47 />
48 </scr:component>
49
50 <scr:component name="test_optional_multiple_dynamic"
51 enabled="false"
52 configuration-policy="ignore">
53 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
54 <reference
55 name="ref"
56 interface="org.apache.felix.scr.integration.components.SimpleService"
57 cardinality="0..n"
58 policy="dynamic"
59 bind="bindSimpleService"
60 unbind="unbindSimpleService"
61 />
62 </scr:component>
63
64 <scr:component name="test_required_multiple_dynamic"
65 enabled="false"
66 configuration-policy="ignore">
67 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
68 <reference
69 name="ref"
70 interface="org.apache.felix.scr.integration.components.SimpleService"
71 cardinality="1..n"
72 policy="dynamic"
73 bind="bindSimpleService"
74 unbind="unbindSimpleService"
75 />
76 </scr:component>
77
78 <scr:component name="test_optional_single_static"
79 enabled="false"
80 configuration-policy="ignore">
81 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
82 <reference
83 name="ref"
84 interface="org.apache.felix.scr.integration.components.SimpleService"
85 cardinality="0..1"
86 policy="static"
87 bind="setSimpleService"
88 unbind="unsetSimpleService"
89 />
90 </scr:component>
91
92 <scr:component name="test_required_single_static"
93 enabled="false"
94 configuration-policy="ignore">
95 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
96 <reference
97 name="ref"
98 interface="org.apache.felix.scr.integration.components.SimpleService"
99 cardinality="1..1"
100 policy="static"
101 bind="setSimpleService"
102 unbind="unsetSimpleService"
103 />
104 </scr:component>
105
106 <scr:component name="test_optional_multiple_static"
107 enabled="false"
108 configuration-policy="ignore">
109 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
110 <reference
111 name="ref"
112 interface="org.apache.felix.scr.integration.components.SimpleService"
113 cardinality="0..n"
114 policy="static"
115 bind="bindSimpleService"
116 unbind="unbindSimpleService"
117 />
118 </scr:component>
119
120 <scr:component name="test_required_multiple_static"
121 enabled="false"
122 configuration-policy="ignore">
123 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
124 <reference
125 name="ref"
126 interface="org.apache.felix.scr.integration.components.SimpleService"
127 cardinality="1..n"
128 policy="static"
129 bind="bindSimpleService"
130 unbind="unbindSimpleService"
131 />
132 </scr:component>
133
Felix Meschberger470a9752009-11-25 14:51:21 +0000134
135 <!-- Same components as above but using a target spec -->
136
137 <scr:component name="test_optional_single_dynamic_target"
138 enabled="false"
139 configuration-policy="ignore">
140 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
141 <reference
142 name="ref"
143 interface="org.apache.felix.scr.integration.components.SimpleService"
144 cardinality="0..1"
145 policy="dynamic"
146 bind="setSimpleService"
147 unbind="unsetSimpleService"
148 target="(filterprop=match)"
149 />
150 </scr:component>
151
152 <scr:component name="test_required_single_dynamic_target"
153 enabled="false"
154 configuration-policy="ignore">
155 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
156 <reference
157 name="ref"
158 interface="org.apache.felix.scr.integration.components.SimpleService"
159 cardinality="1..1"
160 policy="dynamic"
161 bind="setSimpleService"
162 unbind="unsetSimpleService"
163 target="(filterprop=match)"
164 />
165 </scr:component>
166
167 <scr:component name="test_optional_multiple_dynamic_target"
168 enabled="false"
169 configuration-policy="ignore">
170 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
171 <reference
172 name="ref"
173 interface="org.apache.felix.scr.integration.components.SimpleService"
174 cardinality="0..n"
175 policy="dynamic"
176 bind="bindSimpleService"
177 unbind="unbindSimpleService"
178 target="(filterprop=match)"
179 />
180 </scr:component>
181
182 <scr:component name="test_required_multiple_dynamic_target"
183 enabled="false"
184 configuration-policy="ignore">
185 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
186 <reference
187 name="ref"
188 interface="org.apache.felix.scr.integration.components.SimpleService"
189 cardinality="1..n"
190 policy="dynamic"
191 bind="bindSimpleService"
192 unbind="unbindSimpleService"
193 target="(filterprop=match)"
194 />
195 </scr:component>
196
197 <scr:component name="test_optional_single_static_target"
198 enabled="false"
199 configuration-policy="ignore">
200 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
201 <reference
202 name="ref"
203 interface="org.apache.felix.scr.integration.components.SimpleService"
204 cardinality="0..1"
205 policy="static"
206 bind="setSimpleService"
207 unbind="unsetSimpleService"
208 target="(filterprop=match)"
209 />
210 </scr:component>
211
212 <scr:component name="test_required_single_static_target"
213 enabled="false"
214 configuration-policy="ignore">
215 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
216 <reference
217 name="ref"
218 interface="org.apache.felix.scr.integration.components.SimpleService"
219 cardinality="1..1"
220 policy="static"
221 bind="setSimpleService"
222 unbind="unsetSimpleService"
223 target="(filterprop=match)"
224 />
225 </scr:component>
226
227 <scr:component name="test_optional_multiple_static_target"
228 enabled="false"
229 configuration-policy="ignore">
230 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
231 <reference
232 name="ref"
233 interface="org.apache.felix.scr.integration.components.SimpleService"
234 cardinality="0..n"
235 policy="static"
236 bind="bindSimpleService"
237 unbind="unbindSimpleService"
238 target="(filterprop=match)"
239 />
240 </scr:component>
241
242 <scr:component name="test_required_multiple_static_target"
243 enabled="false"
244 configuration-policy="ignore">
245 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
246 <reference
247 name="ref"
248 interface="org.apache.felix.scr.integration.components.SimpleService"
249 cardinality="1..n"
250 policy="static"
251 bind="bindSimpleService"
252 unbind="unbindSimpleService"
253 target="(filterprop=match)"
254 />
255 </scr:component>
256
Felix Meschbergerf975aa52009-08-24 10:37:44 +0000257</components>