blob: 412c810f982cd49830776edbb7528c63e925ffa2 [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" />
27 </scr:component>
28
29 <!-- component takes configuration as available -->
30 <scr:component name="SimpleComponent.configuration.optional"
31 enabled="false"
32 configuration-policy="optional" >
33 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
34 </scr:component>
35
36 <!-- component requires configuration -->
37 <scr:component name="SimpleComponent.configuration.require"
38 enabled="false"
39 configuration-policy="require" >
40 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
41 </scr:component>
42
43 <!-- component dynamically updates configuration -->
44 <scr:component name="DynamicConfigurationComponent"
45 enabled="false" modified="configure">
46 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
47 </scr:component>
48
49 <!-- component instances created by factory configuration -->
50 <scr:component name="FactoryConfigurationComponent"
51 enabled="false"
52 configuration-policy="require" >
53 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
54 </scr:component>
Felix Meschberger4dab8ea2009-07-31 14:44:12 +000055
56 <!-- component is a stupid service to verify non-use of private props -->
57 <scr:component name="ServiceComponent"
58 enabled="false" immediate="true"
59 configuration-policy="ignore" >
60 <implementation class="org.apache.felix.scr.integration.components.SimpleComponent" />
61 <property name="prop.public" value="required" />
62 <property name=".prop.private" value="private" />
63 <service>
64 <provide interface="java.lang.Object" />
65 </service>
66 </scr:component>
67
Felix Meschberger47eb0372009-07-28 13:48:28 +000068</components>