David Jencks | c7c342e | 2014-07-16 19:55:57 +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> |
| 21 | <scr:component name="components.target.properties.1" |
| 22 | xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" |
| 23 | immediate="true" |
| 24 | enabled="false" |
| 25 | configuration-policy="optional" |
| 26 | activate="activate" |
| 27 | modified="modified"> |
| 28 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 29 | <service> |
| 30 | <provide interface="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 31 | </service> |
| 32 | <reference |
| 33 | name="one" |
| 34 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 35 | cardinality="0..1" |
| 36 | policy="dynamic" |
| 37 | bind="setSimpleService" |
| 38 | unbind="unsetSimpleService" |
| 39 | target="(value=foo)" |
| 40 | /> |
| 41 | </scr:component> |
| 42 | |
| 43 | <scr:component name="components.target.properties.2" |
| 44 | xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" |
| 45 | immediate="true" |
| 46 | enabled="false" |
| 47 | configuration-policy="optional" |
| 48 | activate="activate" |
| 49 | modified="modified"> |
| 50 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 51 | <service> |
| 52 | <provide interface="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 53 | </service> |
| 54 | <property name="one.target" value="(value=bar)" /> |
| 55 | <reference |
| 56 | name="one" |
| 57 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 58 | cardinality="0..1" |
| 59 | policy="dynamic" |
| 60 | bind="setSimpleService" |
| 61 | unbind="unsetSimpleService" |
| 62 | target="(value=foo)" |
| 63 | /> |
| 64 | </scr:component> |
| 65 | |
| 66 | <scr:component name="components.target.properties.3" |
| 67 | xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0" |
| 68 | immediate="true" |
| 69 | enabled="false" |
| 70 | configuration-policy="optional" |
| 71 | activate="activate" |
| 72 | modified="modified"> |
| 73 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 74 | <service> |
| 75 | <provide interface="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 76 | </service> |
| 77 | <reference |
| 78 | name="one" |
| 79 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 80 | cardinality="0..1" |
| 81 | policy="dynamic" |
| 82 | bind="setSimpleService" |
| 83 | unbind="unsetSimpleService" |
| 84 | target="(value=foo)" |
| 85 | /> |
| 86 | <property name="one.target" value="(value=bar)" /> |
| 87 | </scr:component> |
| 88 | |
| 89 | <scr:component name="components.target.properties.1.2" |
| 90 | xmlns:scr="http://www.osgi.org/xmlns/scr/v1.2.0" |
| 91 | immediate="true" |
| 92 | enabled="false" |
| 93 | configuration-policy="optional" |
| 94 | activate="activate" |
| 95 | modified="modified"> |
| 96 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 97 | <service> |
| 98 | <provide interface="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 99 | </service> |
| 100 | <reference |
| 101 | name="one" |
| 102 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 103 | cardinality="0..1" |
| 104 | policy="dynamic" |
| 105 | bind="setSimpleService" |
| 106 | unbind="unsetSimpleService" |
| 107 | target="(value=foo)" |
| 108 | /> |
| 109 | </scr:component> |
| 110 | |
| 111 | <scr:component name="components.target.properties.1.3" |
| 112 | xmlns:scr="http://www.osgi.org/xmlns/scr/v1.3.0" |
| 113 | immediate="true" |
| 114 | enabled="false" |
| 115 | configuration-policy="optional" |
| 116 | activate="activate" |
| 117 | modified="modified"> |
| 118 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 119 | <service> |
| 120 | <provide interface="org.apache.felix.scr.integration.components.SimpleComponent" /> |
| 121 | </service> |
| 122 | <reference |
| 123 | name="one" |
| 124 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 125 | cardinality="0..1" |
| 126 | policy="dynamic" |
| 127 | bind="setSimpleService" |
| 128 | unbind="unsetSimpleService" |
| 129 | target="(value=foo)" |
| 130 | /> |
| 131 | </scr:component> |
| 132 | |
| 133 | </components> |