blob: 9e285c861092ba4d465628910fe1fed0ed5377a8 [file] [log] [blame]
David Jencks31732282014-01-07 00:12:31 +00001<?xml version="1.0" encoding="UTF-8"?>
2<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
3 license agreements. See the NOTICE file distributed with this work for additional
4 information regarding copyright ownership. The ASF licenses this file to
5 you under the Apache License, Version 2.0 (the "License"); you may not use
6 this file except in compliance with the License. You may obtain a copy of
7 the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
8 by applicable law or agreed to in writing, software distributed under the
9 License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
10 OF ANY KIND, either express or implied. See the License for the specific
11 language governing permissions and limitations under the License. -->
12<components xmlns:scr="http://www.osgi.org/xmlns/scr/v1.1.0">
13
David Jencksd5212532015-07-18 18:12:45 +000014 <scr:component name="TestComponent"
David Jencks31732282014-01-07 00:12:31 +000015 configuration-policy="require">
16 <implementation class="org.apache.felix.scr.integration.components.deadlock.TestComponent" />
17 <service>
18 <provide interface='org.apache.felix.scr.integration.components.deadlock.TestComponent' />
19 </service>
20 <reference
21 name="Ref"
22 interface="java.lang.Object"
23 cardinality="0..1"
24 policy="dynamic"
25 bind="setRef"
26 unbind="unsetRef"
27 />
28 </scr:component>
29
30
David Jencksd5212532015-07-18 18:12:45 +000031 <scr:component name="Consumer"
David Jencks31732282014-01-07 00:12:31 +000032 immediate="true">
33 <implementation class="org.apache.felix.scr.integration.components.deadlock.Consumer" />
34 <reference
David Jencksd5212532015-07-18 18:12:45 +000035 name="TestComponent"
David Jencks31732282014-01-07 00:12:31 +000036 interface="org.apache.felix.scr.integration.components.deadlock.TestComponent"
37 cardinality="0..1"
38 policy="dynamic"
David Jencksd5212532015-07-18 18:12:45 +000039 bind="setTestComponent"
40 unbind="unsetTestComponent"
41 target='(target=foo)'
David Jencks31732282014-01-07 00:12:31 +000042 />
43 </scr:component>
44
45</components>