Guillaume Nodet | 1022cd1 | 2013-12-09 20:20:03 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor |
| 3 | license agreements. See the NOTICE file distributed with this work for additional |
| 4 | information regarding copyright ownership. The ASF licenses this file to |
| 5 | you under the Apache License, Version 2.0 (the "License"); you may not use |
| 6 | this file except in compliance with the License. You may obtain a copy of |
| 7 | the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required |
| 8 | by applicable law or agreed to in writing, software distributed under the |
| 9 | License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS |
| 10 | OF ANY KIND, either express or implied. See the License for the specific |
| 11 | language governing permissions and limitations under the License. --> |
| 12 | <components xmlns:scr="http://www.osgi.org/xmlns/scr/v1.2.0"> |
| 13 | |
| 14 | <scr:component enabled='false' name='SingleStatic' |
| 15 | activate='start' deactivate='stop'> |
| 16 | <implementation |
| 17 | class='org.apache.felix.scr.integration.components.Felix4350Component' /> |
| 18 | <reference name='component1' |
| 19 | interface='org.apache.felix.scr.integration.components.SimpleComponent' |
| 20 | cardinality='1..1' bind='bindComponent1' unbind='unbindComponent1' policy='static' /> |
| 21 | <reference name='component2' |
| 22 | interface='org.apache.felix.scr.integration.components.SimpleComponent2' |
| 23 | cardinality='1..1' bind='bindComponent2' unbind='unbindComponent2' policy='static' /> |
| 24 | </scr:component> |
| 25 | |
| 26 | <scr:component enabled='false' name='SingleDynamic' |
| 27 | activate='start' deactivate='stop'> |
| 28 | <implementation |
| 29 | class='org.apache.felix.scr.integration.components.Felix4350Component' /> |
| 30 | <reference name='component1' |
| 31 | interface='org.apache.felix.scr.integration.components.SimpleComponent' |
| 32 | cardinality='1..1' bind='bindComponent1' unbind='unbindComponent1' policy='dynamic' /> |
| 33 | <reference name='component2' |
| 34 | interface='org.apache.felix.scr.integration.components.SimpleComponent2' |
| 35 | cardinality='1..1' bind='bindComponent2' unbind='unbindComponent2' policy='static' /> |
| 36 | </scr:component> |
| 37 | |
| 38 | <scr:component enabled='false' name='MultipleDynamic' |
| 39 | activate='start' deactivate='stop'> |
| 40 | <implementation |
| 41 | class='org.apache.felix.scr.integration.components.Felix4350Component' /> |
| 42 | <reference name='component1' |
| 43 | interface='org.apache.felix.scr.integration.components.SimpleComponent' |
| 44 | cardinality='1..n' bind='bindComponent1' unbind='unbindComponent1' policy='dynamic' /> |
| 45 | <reference name='component2' |
| 46 | interface='org.apache.felix.scr.integration.components.SimpleComponent2' |
| 47 | cardinality='1..1' bind='bindComponent2' unbind='unbindComponent2' policy='static' /> |
| 48 | </scr:component> |
| 49 | |
| 50 | <scr:component enabled='false' name='MultipleStaticReluctant' |
| 51 | activate='start' deactivate='stop'> |
| 52 | <implementation |
| 53 | class='org.apache.felix.scr.integration.components.Felix4350Component' /> |
| 54 | <reference name='component1' |
| 55 | interface='org.apache.felix.scr.integration.components.SimpleComponent' |
| 56 | cardinality='1..n' bind='bindComponent1' unbind='unbindComponent1' policy='static' /> |
| 57 | <reference name='component2' |
| 58 | interface='org.apache.felix.scr.integration.components.SimpleComponent2' |
| 59 | cardinality='1..1' bind='bindComponent2' unbind='unbindComponent2' policy='static' /> |
| 60 | </scr:component> |
| 61 | |
| 62 | <scr:component enabled='false' name='MultipleStaticGreedy' |
| 63 | activate='start' deactivate='stop'> |
| 64 | <implementation |
| 65 | class='org.apache.felix.scr.integration.components.Felix4350Component' /> |
| 66 | <reference name='component1' |
| 67 | interface='org.apache.felix.scr.integration.components.SimpleComponent' |
| 68 | cardinality='1..n' bind='bindComponent1' unbind='unbindComponent1' policy='static' policy-option='greedy' /> |
| 69 | <reference name='component2' |
| 70 | interface='org.apache.felix.scr.integration.components.SimpleComponent2' |
| 71 | cardinality='1..1' bind='bindComponent2' unbind='unbindComponent2' policy='static' /> |
| 72 | </scr:component> |
| 73 | |
| 74 | </components> |