Pierre De Rop | 147b595 | 2015-09-08 20:36:07 +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 | <!-- A 1.1 dynamic. B 0..n dynamic both delayed. --> |
| 23 | <scr:component name="felix4984.A.1.1.dynamic" |
| 24 | enabled="true" |
| 25 | immediate="false" |
| 26 | configuration-policy="ignore"> |
| 27 | <implementation class="org.apache.felix.scr.integration.components.felix4984.A" /> |
| 28 | <service> |
| 29 | <provide interface="org.apache.felix.scr.integration.components.felix4984.A" /> |
| 30 | </service> |
| 31 | <reference |
| 32 | name="b" |
| 33 | interface="org.apache.felix.scr.integration.components.felix4984.B" |
| 34 | cardinality="1..1" |
| 35 | policy="dynamic" |
| 36 | bind="setB" |
| 37 | unbind="unsetB" |
| 38 | target="(service.pid=felix4984.B.0.n.dynamic)" |
| 39 | /> |
| 40 | <property name="service.pid" value="felix4984.A.1.1.dynamic" /> |
| 41 | </scr:component> |
| 42 | |
| 43 | <scr:component name="felix4984.B.0.n.dynamic" |
| 44 | enabled="true" |
| 45 | immediate="false" |
| 46 | configuration-policy="ignore"> |
| 47 | <implementation class="org.apache.felix.scr.integration.components.felix4984.B" /> |
| 48 | <service> |
| 49 | <provide interface="org.apache.felix.scr.integration.components.felix4984.B" /> |
| 50 | </service> |
| 51 | <reference |
| 52 | name="a" |
| 53 | interface="org.apache.felix.scr.integration.components.felix4984.A" |
| 54 | cardinality="0..n" |
| 55 | policy="dynamic" |
| 56 | bind="setA" |
| 57 | unbind="unsetA" |
| 58 | target="(service.pid=felix4984.A.1.1.dynamic)" |
| 59 | /> |
| 60 | <property name="service.pid" value="felix4984.B.0.n.dynamic" /> |
| 61 | </scr:component> |
| 62 | |
| 63 | </components> |