Felix Meschberger | 8422a30 | 2012-03-08 05:55:06 +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> |
David Jencks | d117e83 | 2015-09-21 05:18:13 +0000 | [diff] [blame] | 21 | |
Felix Meschberger | 8422a30 | 2012-03-08 05:55:06 +0000 | [diff] [blame] | 22 | <scr:component name="components.mutable.properties" |
Felix Meschberger | dc3ad6a | 2012-05-09 18:25:22 +0000 | [diff] [blame] | 23 | xmlns:scr="http://felix.apache.org/xmlns/scr/v1.2.0-felix" |
Felix Meschberger | 8422a30 | 2012-03-08 05:55:06 +0000 | [diff] [blame] | 24 | enabled="true" |
| 25 | configuration-policy="optional" |
| 26 | activate="activate" |
| 27 | modified="modified"> |
| 28 | <implementation class="org.apache.felix.scr.integration.components.MutatingServiceImpl" /> |
| 29 | <service> |
| 30 | <provide interface="org.apache.felix.scr.integration.components.MutatingService" /> |
| 31 | </service> |
| 32 | <property name="service.pid" value="components.mutable.properties" /> |
| 33 | <property name="theValue" value="otherValue" /> |
| 34 | <property name="p1" value="p1" /> |
| 35 | <property name="p2" value="p2" /> |
| 36 | </scr:component> |
Felix Meschberger | 9d508b5 | 2012-05-12 03:24:26 +0000 | [diff] [blame] | 37 | |
| 38 | <scr:component name="components.mutable.properties.return" |
Felix Meschberger | dc3ad6a | 2012-05-09 18:25:22 +0000 | [diff] [blame] | 39 | xmlns:scr="http://felix.apache.org/xmlns/scr/v1.2.0-felix" |
| 40 | enabled="true" |
| 41 | configuration-policy="optional" |
| 42 | activate="activateMutate" |
| 43 | modified="modifiedMutate" |
| 44 | deactivate="deactivateMutate"> |
| 45 | <implementation class="org.apache.felix.scr.integration.components.MutatingServiceImpl" /> |
| 46 | <service> |
| 47 | <provide interface="org.apache.felix.scr.integration.components.MutatingService" /> |
| 48 | </service> |
Felix Meschberger | 9d508b5 | 2012-05-12 03:24:26 +0000 | [diff] [blame] | 49 | <property name="service.pid" value="components.mutable.properties.return" /> |
Felix Meschberger | dc3ad6a | 2012-05-09 18:25:22 +0000 | [diff] [blame] | 50 | <property name="theValue" value="otherValue" /> |
| 51 | <property name="p1" value="p1" /> |
| 52 | <property name="p2" value="p2" /> |
| 53 | </scr:component> |
Felix Meschberger | 9d508b5 | 2012-05-12 03:24:26 +0000 | [diff] [blame] | 54 | |
David Jencks | 99cd15c | 2012-06-05 01:08:12 +0000 | [diff] [blame] | 55 | <scr:component name="components.mutable.properties.return.public" |
| 56 | xmlns:scr="http://felix.apache.org/xmlns/scr/v1.2.0-felix" |
| 57 | enabled="true" |
| 58 | configuration-policy="optional" |
| 59 | activate="activateMutate" |
| 60 | modified="modifiedMutate" |
| 61 | deactivate="deactivateMutate"> |
| 62 | <implementation class="org.apache.felix.scr.integration.components.MutatingServiceImpl" /> |
| 63 | <service> |
| 64 | <provide interface="org.apache.felix.scr.integration.components.MutatingService" /> |
| 65 | </service> |
| 66 | <property name="service.pid" value="components.mutable.properties.return.public" /> |
| 67 | <property name="theValue" value="otherValue" /> |
| 68 | <property name="p1" value="p1" /> |
| 69 | <property name="p2" value="p2" /> |
| 70 | <property name=".p2" value="p2" /> |
| 71 | </scr:component> |
| 72 | |
Felix Meschberger | 9d508b5 | 2012-05-12 03:24:26 +0000 | [diff] [blame] | 73 | <scr:component name="components.mutable.properties.bind" |
| 74 | xmlns:scr="http://felix.apache.org/xmlns/scr/v1.2.0-felix" |
| 75 | enabled="true" |
| 76 | configuration-policy="optional" |
| 77 | activate="activateMutate" |
| 78 | modified="modifiedMutate" |
| 79 | deactivate="deactivateMutate"> |
| 80 | <implementation class="org.apache.felix.scr.integration.components.MutatingServiceImpl"/> |
| 81 | <service> |
| 82 | <provide interface="org.apache.felix.scr.integration.components.MutatingService"/> |
| 83 | </service> |
| 84 | <reference |
| 85 | name="simpleService" |
| 86 | interface="org.apache.felix.scr.integration.components.SimpleService" |
| 87 | cardinality="0..1" |
| 88 | policy="dynamic" |
| 89 | bind="bindSimpleService" |
| 90 | unbind="unbindSimpleService" |
| 91 | updated="updateSimpleService" |
| 92 | /> |
| 93 | <property name="service.pid" value="components.mutable.properties.bind"/> |
| 94 | <property name="theValue" value="otherValue"/> |
| 95 | <property name="p1" value="p1"/> |
| 96 | <property name="p2" value="p2"/> |
| 97 | </scr:component> |
David Jencks | d117e83 | 2015-09-21 05:18:13 +0000 | [diff] [blame] | 98 | |
| 99 | <scr:component name="components.mutable.properties.return2" |
| 100 | xmlns:scr="http://felix.apache.org/xmlns/scr/v1.2.0-felix" |
| 101 | enabled="false" |
| 102 | configuration-policy="optional" |
| 103 | activate="activateMutate" |
| 104 | modified="modifiedMutate" |
| 105 | deactivate="deactivateMutate"> |
| 106 | <implementation class="org.apache.felix.scr.integration.components.MutatingServiceImpl" /> |
| 107 | <service> |
| 108 | <provide interface="org.apache.felix.scr.integration.components.MutatingService" /> |
| 109 | </service> |
| 110 | </scr:component> |
| 111 | |
| 112 | <scr:component name="components.mutable.properties.consumer" |
| 113 | xmlns:scr="http://www.osgi.org/xmlns/scr/v1.2.0" |
| 114 | enabled="true"> |
| 115 | <implementation class="org.apache.felix.scr.integration.components.MutatingServiceConsumer" /> |
| 116 | <service> |
| 117 | <provide interface="org.apache.felix.scr.integration.components.MutatingServiceConsumer" /> |
| 118 | </service> |
| 119 | <reference |
| 120 | name="MutatingService" |
| 121 | interface="org.apache.felix.scr.integration.components.MutatingService" |
| 122 | cardinality="0..1" |
| 123 | policy="dynamic" |
| 124 | bind="setMutatingService" |
| 125 | unbind="unsetMutatingService" |
| 126 | updated="updatedMutatingService" |
| 127 | target="(component.name=components.mutable.properties.return2)" |
| 128 | /> |
| 129 | </scr:component> |
| 130 | |
Felix Meschberger | 8422a30 | 2012-03-08 05:55:06 +0000 | [diff] [blame] | 131 | </components> |