blob: 5bbfee84d3bf213444c56c0160b7210a33b4db5c [file] [log] [blame]
Felix Meschberger47eb0372009-07-28 13:48:28 +00001<?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 Meschbergerbbfc7172009-08-03 19:16:00 +000027 <property name="service.pid" value="SimpleComponent.configuration.ignore" />
Felix Meschberger47eb0372009-07-28 13:48:28 +000028 </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 Meschbergerbbfc7172009-08-03 19:16:00 +000035 <property name="service.pid" value="SimpleComponent.configuration.optional" />
Felix Meschberger47eb0372009-07-28 13:48:28 +000036 </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 Meschbergerbbfc7172009-08-03 19:16:00 +000043 <property name="service.pid" value="SimpleComponent.configuration.require" />
Felix Meschberger47eb0372009-07-28 13:48:28 +000044 </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 Meschbergerbbfc7172009-08-03 19:16:00 +000050 <property name="service.pid" value="DynamicConfigurationComponent" />
Felix Meschberger47eb0372009-07-28 13:48:28 +000051 </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 Meschbergerbbfc7172009-08-03 19:16:00 +000058 <property name="service.pid" value="FactoryConfigurationComponent" />
Felix Meschberger47eb0372009-07-28 13:48:28 +000059 </scr:component>
Felix Meschberger4dab8ea2009-07-31 14:44:12 +000060
Felix Meschbergerf96e10c2010-03-24 08:15:51 +000061 <!-- component instances created by factory configuration -->
62 <scr:component name="FactoryConfigurationComponent_enabled"
63 enabled="true"
64 configuration-policy="require" >
65 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
66 <property name="service.pid" value="FactoryConfigurationComponent" />
67 </scr:component>
68
Felix Meschberger639f83a2009-10-29 14:44:54 +000069 <!-- component is a simple service to verify non-use of private props -->
Felix Meschberger4dab8ea2009-07-31 14:44:12 +000070 <scr:component name="ServiceComponent"
71 enabled="false" immediate="true"
72 configuration-policy="ignore" >
73 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
Felix Meschbergerbbfc7172009-08-03 19:16:00 +000074 <property name="service.pid" value="ServiceComponent" />
Felix Meschberger4dab8ea2009-07-31 14:44:12 +000075 <property name="prop.public" value="required" />
76 <property name=".prop.private" value="private" />
77 <service>
78 <provide interface="java.lang.Object" />
79 </service>
80 </scr:component>
81
Felix Meschberger639f83a2009-10-29 14:44:54 +000082 <!-- component is a simple service to verify deactivation when not being used any longer -->
83 <scr:component name="DelayedServiceComponent"
84 enabled="false" immediate="false"
85 configuration-policy="ignore" >
86 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
87 <property name="service.pid" value="ServiceComponent" />
88 <service>
89 <provide interface="java.lang.Object" />
90 </service>
91 </scr:component>
92
Felix Meschberger31181f22009-08-21 11:52:16 +000093 <!-- Component Factory Instances -->
94 <scr:component name="factory.component"
95 enabled="false"
96 factory="factory.component.factory" >
97 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
98 </scr:component>
Felix Meschberger01fdc282009-12-14 10:00:12 +000099
100 <!-- Component Factory Instances, requiring configuration -->
101 <scr:component name="factory.component.configuration"
102 enabled="false"
103 configuration-policy="require"
104 factory="factory.component.factory.configuration" >
105 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
106 </scr:component>
Felix Meschberger31181f22009-08-21 11:52:16 +0000107
Felix Meschberger47eb0372009-07-28 13:48:28 +0000108</components>