David Jencks | f58fac9 | 2014-01-24 01:34:28 +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="MinimumCardinality" |
| 23 | configuration-policy="require" |
| 24 | modified="configure"> |
| 25 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 26 | <service> |
| 27 | <provide interface="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 28 | </service> |
| 29 | <property name="service.pid" value="DynamicConfigurationComponentWithRequiredReference" /> |
| 30 | <reference |
| 31 | name="one" |
| 32 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 33 | cardinality="0..1" |
| 34 | policy="dynamic" |
| 35 | bind="setSimpleService" |
| 36 | unbind="unsetSimpleService" |
| 37 | /> |
| 38 | <reference |
| 39 | name="many" |
| 40 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 41 | cardinality="0..n" |
| 42 | policy="dynamic" |
| 43 | bind="bindSimpleService" |
| 44 | unbind="unbindSimpleService" |
| 45 | /> |
| 46 | </scr:component> |
| 47 | |
| 48 | </components> |