Felix Meschberger | b8ab893 | 2012-05-17 13:39:34 +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 | <components xmlns:scr="http://www.osgi.org/xmlns/scr/v1.2.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 | policy-option="greedy" |
| 32 | bind="setSimpleService" |
| 33 | unbind="unsetSimpleService" |
| 34 | /> |
| 35 | </scr:component> |
| 36 | |
| 37 | <scr:component name="test_required_single_dynamic" |
| 38 | enabled="false" |
| 39 | configuration-policy="ignore"> |
| 40 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 41 | <reference |
| 42 | name="ref" |
| 43 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 44 | cardinality="1..1" |
| 45 | policy="dynamic" |
| 46 | policy-option="greedy" |
| 47 | bind="setSimpleService" |
| 48 | unbind="unsetSimpleService" |
| 49 | /> |
| 50 | </scr:component> |
| 51 | |
| 52 | <scr:component name="test_optional_multiple_dynamic" |
| 53 | enabled="false" |
| 54 | configuration-policy="ignore"> |
| 55 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 56 | <reference |
| 57 | name="ref" |
| 58 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 59 | cardinality="0..n" |
| 60 | policy="dynamic" |
| 61 | policy-option="greedy" |
| 62 | bind="bindSimpleService" |
| 63 | unbind="unbindSimpleService" |
| 64 | /> |
| 65 | </scr:component> |
| 66 | |
| 67 | <scr:component name="test_required_multiple_dynamic" |
| 68 | enabled="false" |
| 69 | configuration-policy="ignore"> |
| 70 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 71 | <reference |
| 72 | name="ref" |
| 73 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 74 | cardinality="1..n" |
| 75 | policy="dynamic" |
| 76 | policy-option="greedy" |
| 77 | bind="bindSimpleService" |
| 78 | unbind="unbindSimpleService" |
| 79 | /> |
| 80 | </scr:component> |
| 81 | |
| 82 | <scr:component name="test_optional_single_static" |
| 83 | enabled="false" |
| 84 | configuration-policy="ignore"> |
| 85 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 86 | <reference |
| 87 | name="ref" |
| 88 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 89 | cardinality="0..1" |
| 90 | policy="static" |
| 91 | policy-option="greedy" |
| 92 | bind="setSimpleService" |
| 93 | unbind="unsetSimpleService" |
| 94 | /> |
| 95 | </scr:component> |
| 96 | |
| 97 | <scr:component name="test_required_single_static" |
| 98 | enabled="false" |
| 99 | configuration-policy="ignore"> |
| 100 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 101 | <reference |
| 102 | name="ref" |
| 103 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 104 | cardinality="1..1" |
| 105 | policy="static" |
| 106 | policy-option="greedy" |
| 107 | bind="setSimpleService" |
| 108 | unbind="unsetSimpleService" |
| 109 | /> |
| 110 | </scr:component> |
| 111 | |
| 112 | <scr:component name="test_required_multiple_dynamic_factory" |
| 113 | enabled="false" |
| 114 | configuration-policy="ignore" |
| 115 | factory="factory_test_required_multiple_dynamic_factory"> |
| 116 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 117 | <reference |
| 118 | name="ref" |
| 119 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 120 | cardinality="1..n" |
| 121 | policy="dynamic" |
| 122 | policy-option="greedy" |
| 123 | bind="bindSimpleService" |
| 124 | unbind="unbindSimpleService" |
| 125 | /> |
| 126 | </scr:component> |
| 127 | |
| 128 | <scr:component name="test_optional_multiple_static" |
| 129 | enabled="false" |
| 130 | configuration-policy="ignore"> |
| 131 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 132 | <reference |
| 133 | name="ref" |
| 134 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 135 | cardinality="0..n" |
| 136 | policy="static" |
| 137 | policy-option="greedy" |
| 138 | bind="bindSimpleService" |
| 139 | unbind="unbindSimpleService" |
| 140 | /> |
| 141 | </scr:component> |
| 142 | |
| 143 | <scr:component name="test_required_multiple_static" |
| 144 | enabled="false" |
| 145 | configuration-policy="ignore"> |
| 146 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 147 | <reference |
| 148 | name="ref" |
| 149 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 150 | cardinality="1..n" |
| 151 | policy="static" |
| 152 | policy-option="greedy" |
| 153 | bind="bindSimpleService" |
| 154 | unbind="unbindSimpleService" |
| 155 | /> |
| 156 | </scr:component> |
| 157 | |
| 158 | |
| 159 | <!-- Same components as above but using a target spec --> |
| 160 | |
| 161 | <scr:component name="test_optional_single_dynamic_target" |
| 162 | enabled="false" |
| 163 | configuration-policy="ignore"> |
| 164 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 165 | <reference |
| 166 | name="ref" |
| 167 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 168 | cardinality="0..1" |
| 169 | policy="dynamic" |
| 170 | policy-option="greedy" |
| 171 | bind="setSimpleService" |
| 172 | unbind="unsetSimpleService" |
| 173 | target="(filterprop=match)" |
| 174 | /> |
| 175 | </scr:component> |
| 176 | |
| 177 | <scr:component name="test_required_single_dynamic_target" |
| 178 | enabled="false" |
| 179 | configuration-policy="ignore"> |
| 180 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 181 | <reference |
| 182 | name="ref" |
| 183 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 184 | cardinality="1..1" |
| 185 | policy="dynamic" |
| 186 | policy-option="greedy" |
| 187 | bind="setSimpleService" |
| 188 | unbind="unsetSimpleService" |
| 189 | target="(filterprop=match)" |
| 190 | /> |
| 191 | </scr:component> |
| 192 | |
| 193 | <scr:component name="test_optional_multiple_dynamic_target" |
| 194 | enabled="false" |
| 195 | configuration-policy="ignore"> |
| 196 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 197 | <reference |
| 198 | name="ref" |
| 199 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 200 | cardinality="0..n" |
| 201 | policy="dynamic" |
| 202 | policy-option="greedy" |
| 203 | bind="bindSimpleService" |
| 204 | unbind="unbindSimpleService" |
| 205 | target="(filterprop=match)" |
| 206 | /> |
| 207 | </scr:component> |
| 208 | |
| 209 | <scr:component name="test_required_multiple_dynamic_target" |
| 210 | enabled="false" |
| 211 | configuration-policy="ignore"> |
| 212 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 213 | <reference |
| 214 | name="ref" |
| 215 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 216 | cardinality="1..n" |
| 217 | policy="dynamic" |
| 218 | policy-option="greedy" |
| 219 | bind="bindSimpleService" |
| 220 | unbind="unbindSimpleService" |
| 221 | target="(filterprop=match)" |
| 222 | /> |
| 223 | </scr:component> |
| 224 | |
| 225 | <scr:component name="test_optional_single_static_target" |
| 226 | enabled="false" |
| 227 | configuration-policy="ignore"> |
| 228 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 229 | <reference |
| 230 | name="ref" |
| 231 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 232 | cardinality="0..1" |
| 233 | policy="static" |
| 234 | policy-option="greedy" |
| 235 | bind="setSimpleService" |
| 236 | unbind="unsetSimpleService" |
| 237 | target="(filterprop=match)" |
| 238 | /> |
| 239 | </scr:component> |
| 240 | |
| 241 | <scr:component name="test_required_single_static_target" |
| 242 | enabled="false" |
| 243 | configuration-policy="ignore"> |
| 244 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 245 | <reference |
| 246 | name="ref" |
| 247 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 248 | cardinality="1..1" |
| 249 | policy="static" |
| 250 | policy-option="greedy" |
| 251 | bind="setSimpleService" |
| 252 | unbind="unsetSimpleService" |
| 253 | target="(filterprop=match)" |
| 254 | /> |
| 255 | </scr:component> |
| 256 | |
| 257 | <scr:component name="test_optional_multiple_static_target" |
| 258 | enabled="false" |
| 259 | configuration-policy="ignore"> |
| 260 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 261 | <reference |
| 262 | name="ref" |
| 263 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 264 | cardinality="0..n" |
| 265 | policy="static" |
| 266 | policy-option="greedy" |
| 267 | bind="bindSimpleService" |
| 268 | unbind="unbindSimpleService" |
| 269 | target="(filterprop=match)" |
| 270 | /> |
| 271 | </scr:component> |
| 272 | |
| 273 | <scr:component name="test_required_multiple_static_target" |
| 274 | enabled="false" |
| 275 | configuration-policy="ignore"> |
| 276 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 277 | <reference |
| 278 | name="ref" |
| 279 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 280 | cardinality="1..n" |
| 281 | policy="static" |
| 282 | policy-option="greedy" |
| 283 | bind="bindSimpleService" |
| 284 | unbind="unbindSimpleService" |
| 285 | target="(filterprop=match)" |
| 286 | /> |
| 287 | </scr:component> |
| 288 | |
| 289 | <scr:component name="test_multi_service_bind_unbind_order" |
| 290 | enabled="false" |
| 291 | configuration-policy="ignore"> |
| 292 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent2" /> |
| 293 | <reference |
| 294 | name="ref" |
| 295 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 296 | cardinality="0..n" |
| 297 | policy="static" |
| 298 | policy-option="greedy" |
| 299 | bind="bindSimpleService" |
| 300 | unbind="unbindSimpleService" |
| 301 | /> |
| 302 | <reference |
David Jencks | 0de0bb3 | 2012-09-08 03:55:26 +0000 | [diff] [blame^] | 303 | name="ref2" |
Felix Meschberger | b8ab893 | 2012-05-17 13:39:34 +0000 | [diff] [blame] | 304 | interface="org.apache.felix.scr.integration.components.SimpleService2" |
| 305 | cardinality="0..n" |
| 306 | policy="static" |
| 307 | policy-option="greedy" |
| 308 | bind="bindSimpleService2" |
| 309 | unbind="unbindSimpleService2" |
| 310 | /> |
| 311 | </scr:component> |
| 312 | |
| 313 | </components> |