Felix Meschberger | f975aa5 | 2009-08-24 10:37:44 +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.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 | |
Felix Meschberger | f1ce1a3 | 2009-12-14 10:08:27 +0000 | [diff] [blame^] | 106 | <scr:component name="test_required_multiple_dynamic_factory" |
| 107 | enabled="false" |
| 108 | configuration-policy="ignore" |
| 109 | factory="factory_test_required_multiple_dynamic_factory"> |
| 110 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 111 | <reference |
| 112 | name="ref" |
| 113 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 114 | cardinality="1..n" |
| 115 | policy="dynamic" |
| 116 | bind="bindSimpleService" |
| 117 | unbind="unbindSimpleService" |
| 118 | /> |
| 119 | </scr:component> |
| 120 | |
Felix Meschberger | f975aa5 | 2009-08-24 10:37:44 +0000 | [diff] [blame] | 121 | <scr:component name="test_optional_multiple_static" |
| 122 | enabled="false" |
| 123 | configuration-policy="ignore"> |
| 124 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 125 | <reference |
| 126 | name="ref" |
| 127 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 128 | cardinality="0..n" |
| 129 | policy="static" |
| 130 | bind="bindSimpleService" |
| 131 | unbind="unbindSimpleService" |
| 132 | /> |
| 133 | </scr:component> |
| 134 | |
| 135 | <scr:component name="test_required_multiple_static" |
| 136 | enabled="false" |
| 137 | configuration-policy="ignore"> |
| 138 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 139 | <reference |
| 140 | name="ref" |
| 141 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 142 | cardinality="1..n" |
| 143 | policy="static" |
| 144 | bind="bindSimpleService" |
| 145 | unbind="unbindSimpleService" |
| 146 | /> |
| 147 | </scr:component> |
| 148 | |
Felix Meschberger | 470a975 | 2009-11-25 14:51:21 +0000 | [diff] [blame] | 149 | |
| 150 | <!-- Same components as above but using a target spec --> |
| 151 | |
| 152 | <scr:component name="test_optional_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="0..1" |
| 160 | policy="dynamic" |
| 161 | bind="setSimpleService" |
| 162 | unbind="unsetSimpleService" |
| 163 | target="(filterprop=match)" |
| 164 | /> |
| 165 | </scr:component> |
| 166 | |
| 167 | <scr:component name="test_required_single_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="1..1" |
| 175 | policy="dynamic" |
| 176 | bind="setSimpleService" |
| 177 | unbind="unsetSimpleService" |
| 178 | target="(filterprop=match)" |
| 179 | /> |
| 180 | </scr:component> |
| 181 | |
| 182 | <scr:component name="test_optional_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="0..n" |
| 190 | policy="dynamic" |
| 191 | bind="bindSimpleService" |
| 192 | unbind="unbindSimpleService" |
| 193 | target="(filterprop=match)" |
| 194 | /> |
| 195 | </scr:component> |
| 196 | |
| 197 | <scr:component name="test_required_multiple_dynamic_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="1..n" |
| 205 | policy="dynamic" |
| 206 | bind="bindSimpleService" |
| 207 | unbind="unbindSimpleService" |
| 208 | target="(filterprop=match)" |
| 209 | /> |
| 210 | </scr:component> |
| 211 | |
| 212 | <scr:component name="test_optional_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="0..1" |
| 220 | policy="static" |
| 221 | bind="setSimpleService" |
| 222 | unbind="unsetSimpleService" |
| 223 | target="(filterprop=match)" |
| 224 | /> |
| 225 | </scr:component> |
| 226 | |
| 227 | <scr:component name="test_required_single_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="1..1" |
| 235 | policy="static" |
| 236 | bind="setSimpleService" |
| 237 | unbind="unsetSimpleService" |
| 238 | target="(filterprop=match)" |
| 239 | /> |
| 240 | </scr:component> |
| 241 | |
| 242 | <scr:component name="test_optional_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="0..n" |
| 250 | policy="static" |
| 251 | bind="bindSimpleService" |
| 252 | unbind="unbindSimpleService" |
| 253 | target="(filterprop=match)" |
| 254 | /> |
| 255 | </scr:component> |
| 256 | |
| 257 | <scr:component name="test_required_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="1..n" |
| 265 | policy="static" |
| 266 | bind="bindSimpleService" |
| 267 | unbind="unbindSimpleService" |
| 268 | target="(filterprop=match)" |
| 269 | /> |
| 270 | </scr:component> |
| 271 | |
Felix Meschberger | f975aa5 | 2009-08-24 10:37:44 +0000 | [diff] [blame] | 272 | </components> |