Felix Meschberger | 8c64e85 | 2009-07-28 13:48: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 | <!-- component ignores configuration --> |
| 23 | <scr:component name="SimpleComponent.configuration.ignore" |
| 24 | enabled="false" |
| 25 | configuration-policy="ignore"> |
| 26 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
Felix Meschberger | 7e572cc | 2009-08-03 19:16:00 +0000 | [diff] [blame] | 27 | <property name="service.pid" value="SimpleComponent.configuration.ignore" /> |
Felix Meschberger | 8c64e85 | 2009-07-28 13:48:28 +0000 | [diff] [blame] | 28 | </scr:component> |
| 29 | |
| 30 | <!-- component takes configuration as available --> |
| 31 | <scr:component name="SimpleComponent.configuration.optional" |
| 32 | enabled="false" |
| 33 | configuration-policy="optional" > |
| 34 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
Felix Meschberger | 7e572cc | 2009-08-03 19:16:00 +0000 | [diff] [blame] | 35 | <property name="service.pid" value="SimpleComponent.configuration.optional" /> |
Felix Meschberger | 8c64e85 | 2009-07-28 13:48:28 +0000 | [diff] [blame] | 36 | </scr:component> |
| 37 | |
| 38 | <!-- component requires configuration --> |
| 39 | <scr:component name="SimpleComponent.configuration.require" |
| 40 | enabled="false" |
| 41 | configuration-policy="require" > |
| 42 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
Felix Meschberger | 7e572cc | 2009-08-03 19:16:00 +0000 | [diff] [blame] | 43 | <property name="service.pid" value="SimpleComponent.configuration.require" /> |
Felix Meschberger | 8c64e85 | 2009-07-28 13:48:28 +0000 | [diff] [blame] | 44 | </scr:component> |
| 45 | |
| 46 | <!-- component dynamically updates configuration --> |
| 47 | <scr:component name="DynamicConfigurationComponent" |
| 48 | enabled="false" modified="configure"> |
| 49 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
Felix Meschberger | 7e572cc | 2009-08-03 19:16:00 +0000 | [diff] [blame] | 50 | <property name="service.pid" value="DynamicConfigurationComponent" /> |
Felix Meschberger | 8c64e85 | 2009-07-28 13:48:28 +0000 | [diff] [blame] | 51 | </scr:component> |
| 52 | |
| 53 | <!-- component instances created by factory configuration --> |
| 54 | <scr:component name="FactoryConfigurationComponent" |
| 55 | enabled="false" |
| 56 | configuration-policy="require" > |
| 57 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
Felix Meschberger | 7e572cc | 2009-08-03 19:16:00 +0000 | [diff] [blame] | 58 | <property name="service.pid" value="FactoryConfigurationComponent" /> |
Felix Meschberger | 8c64e85 | 2009-07-28 13:48:28 +0000 | [diff] [blame] | 59 | </scr:component> |
Felix Meschberger | dcb192f | 2009-07-31 14:44:12 +0000 | [diff] [blame] | 60 | |
| 61 | <!-- component is a stupid service to verify non-use of private props --> |
| 62 | <scr:component name="ServiceComponent" |
| 63 | enabled="false" immediate="true" |
| 64 | configuration-policy="ignore" > |
| 65 | <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" /> |
Felix Meschberger | 7e572cc | 2009-08-03 19:16:00 +0000 | [diff] [blame] | 66 | <property name="service.pid" value="ServiceComponent" /> |
Felix Meschberger | dcb192f | 2009-07-31 14:44:12 +0000 | [diff] [blame] | 67 | <property name="prop.public" value="required" /> |
| 68 | <property name=".prop.private" value="private" /> |
| 69 | <service> |
| 70 | <provide interface="java.lang.Object" /> |
| 71 | </service> |
| 72 | </scr:component> |
| 73 | |
Felix Meschberger | 8c64e85 | 2009-07-28 13:48:28 +0000 | [diff] [blame] | 74 | </components> |