blob: 00ccba9e7f7e7c34792cb8f93834cb7b2462d3b7 [file] [log] [blame]
Felix Meschberger40a26772009-10-06 14:13:14 +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 <!--
23 Components used for the ComponentActivationTest integration test.
24 This tests components with and without activate/deactivate method
25 configured and with and without activate/deactivate methods present
26 -->
27
28 <!-- no declaration of activate/deactivate methods -->
29 <scr:component name="ActivatorComponent.no.decl"
30 enabled="false">
31 <implementation class="org.apache.felix.scr.integration.components.ActivatorComponent" />
32 </scr:component>
33
34 <!-- wrong declaration of activate method -->
35 <scr:component name="ActivatorComponent.activate.missing"
36 enabled="false"
37 activate="nonExistingActivate">
38 <implementation class="org.apache.felix.scr.integration.components.ActivatorComponent" />
39 </scr:component>
40
41 <!-- wrong declaration of deactivate method -->
42 <scr:component name="ActivatorComponent.deactivate.missing"
43 enabled="false"
44 deactivate="nonExistingDeactivate">
45 <implementation class="org.apache.felix.scr.integration.components.ActivatorComponent" />
46 </scr:component>
47
48 <!-- correct declaration of activate and deactivate method -->
49 <scr:component name="ActivatorComponent.decl"
50 enabled="false"
51 activate="myActivate"
52 deactivate="myDeactivate">
53 <implementation class="org.apache.felix.scr.integration.components.ActivatorComponent" />
54 </scr:component>
55
56 <!-- correct declaration of activate and deactivate method, activate failure -->
57 <scr:component name="ActivatorComponent.activate.fail"
58 enabled="false"
59 activate="myActivate"
60 deactivate="myDeactivate">
61 <implementation class="org.apache.felix.scr.integration.components.ActivatorComponent" />
62 <property name="failActivate" value="true" />
63 </scr:component>
64
65 <!-- correct declaration of activate and deactivate method, deactivate failure -->
66 <scr:component name="ActivatorComponent.deactivate.fail"
67 enabled="false"
68 activate="myActivate"
69 deactivate="myDeactivate">
70 <implementation class="org.apache.felix.scr.integration.components.ActivatorComponent" />
71 <property name="failDeactivate" value="true" />
72 </scr:component>
73</components>