blob: aed8968c53ce0bf2d5325c0c35cb899212ba2822 [file] [log] [blame]
Clement Escoffierf58887c2008-09-09 14:21:15 +00001<ipojo
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Clement Escoffierafaeb3d2008-12-22 17:30:12 +00003 xsi:schemaLocation="org.apache.felix.ipojo http://felix.apache.org/ipojo/schemas/1.1.0-SNAPSHOT/core.xsd
4 org.apache.felix.composite http://felix.apache.org/ipojo/schemas/1.1.0-SNAPSHOT/composite.xsd"
Clement Escoffierf58887c2008-09-09 14:21:15 +00005 xmlns="org.apache.felix.ipojo"
6 xmlns:comp="org.apache.felix.ipojo.composite"
7 xmlns:cs="org.apache.felix.ipojo.test.composite.handler.CheckServiceHandler">
Clement Escoffierad6c5552008-04-25 16:49:43 +00008 <!-- Used component type -->
9 <component
Clement Escoffierf58887c2008-09-09 14:21:15 +000010 classname="org.apache.felix.ipojo.test.composite.component.FooProviderType1"
Clement Escoffier17f8e812008-07-17 09:17:59 +000011 name="COMPO-FooProviderType-1" architecture="true">
Clement Escoffierad6c5552008-04-25 16:49:43 +000012 <provides />
13 </component>
14 <component
Clement Escoffierf58887c2008-09-09 14:21:15 +000015 classname="org.apache.felix.ipojo.test.composite.component.FooProviderType1"
Clement Escoffierad6c5552008-04-25 16:49:43 +000016 name="COMPO-FooProviderType-2" architecture="true">
17 <provides>
18 <property name="int" type="int" value="2" />
19 <property name="long" type="long" value="40" />
20 <property name="string" type="java.lang.String" value="foo" />
21 <property name="strAProp" type="java.lang.String[]"
22 value="{foo, bar}" />
23 <property name="intAProp" type="int[]" value="{1,2,3}" />
24 </provides>
25 </component>
26 <component
Clement Escoffierf58887c2008-09-09 14:21:15 +000027 classname="org.apache.felix.ipojo.test.composite.component.FooProviderTypeDyn"
Clement Escoffierad6c5552008-04-25 16:49:43 +000028 name="COMPO-FooProviderType-Dyn" architecture="true">
29 <provides>
30 <property name="int" field="intProp" value="2" />
31 <property name="boolean" field="boolProp" value="false" />
32 <property name="string" field="strProp" value="foo" />
33 <property name="strAProp" field="strAProp"
34 value="{foo, bar}" />
35 <property name="intAProp" field="intAProp" value="{ 1,2,3}" />
36 </provides>
37 </component>
38 <component
Clement Escoffierf58887c2008-09-09 14:21:15 +000039 classname="org.apache.felix.ipojo.test.composite.component.FooProviderTypeDyn2"
Clement Escoffier17f8e812008-07-17 09:17:59 +000040 name="COMPO-FooProviderType-Dyn2" architecture="true">
Clement Escoffierad6c5552008-04-25 16:49:43 +000041 <provides>
42 <property name="int" field="intProp" value="4" />
43 <property name="boolean" field="boolProp" />
44 <property name="string" field="strProp" />
45 <property name="strAProp" field="strAProp" />
46 <property name="intAProp" field="intAProp"
47 value="{1, 2,3 }" />
48 </provides>
49 </component>
50 <component
Clement Escoffierf58887c2008-09-09 14:21:15 +000051 classname="org.apache.felix.ipojo.test.composite.component.CheckServiceProvider"
Clement Escoffier17f8e812008-07-17 09:17:59 +000052 name="COMPO-SimpleCheckServiceProvider" architecture="true">
Clement Escoffierad6c5552008-04-25 16:49:43 +000053 <requires field="fs" />
54 <provides />
55 </component>
56 <component
Clement Escoffierf58887c2008-09-09 14:21:15 +000057 classname="org.apache.felix.ipojo.test.composite.component.FooBarProviderType1"
Clement Escoffier17f8e812008-07-17 09:17:59 +000058 name="COMPO-FooBarProviderType-1" architecture="true">
Clement Escoffierad6c5552008-04-25 16:49:43 +000059 <provides />
60 </component>
61 <component
Clement Escoffierf58887c2008-09-09 14:21:15 +000062 classname="org.apache.felix.ipojo.test.composite.component.FooBarProviderType1"
Clement Escoffier17f8e812008-07-17 09:17:59 +000063 name="COMPO-FooBarProviderType-2" architecture="true">
Clement Escoffierad6c5552008-04-25 16:49:43 +000064 <provides
65 interface="{org.apache.felix.ipojo.test.composite.service.FooService, org.apache.felix.ipojo.test.composite.service.BarService }" />
66 </component>
67 <component
Clement Escoffierf58887c2008-09-09 14:21:15 +000068 classname="org.apache.felix.ipojo.test.composite.component.FooBarProviderType1"
Clement Escoffier17f8e812008-07-17 09:17:59 +000069 name="COMPO-FooBarProviderType-3" architecture="true">
Clement Escoffierad6c5552008-04-25 16:49:43 +000070 <provides
71 interface="{org.apache.felix.ipojo.test.composite.service.FooService}">
72 <property name="baz" type="java.lang.String" value="foo" />
73 </provides>
74 <provides
75 interface="{org.apache.felix.ipojo.test.composite.service.BarService}">
76 <property name="baz" type="java.lang.String" value="bar" />
77 </provides>
78 </component>
79
Clement Escoffier77374832008-04-29 22:25:39 +000080 <component
Clement Escoffierf58887c2008-09-09 14:21:15 +000081 classname="org.apache.felix.ipojo.test.composite.component.BazProviderType1"
82 name="BazProviderType">
Clement Escoffier77374832008-04-29 22:25:39 +000083 <provides />
Clement Escoffierce0e1e52008-03-28 15:33:36 +000084 </component>
85
Clement Escoffier77374832008-04-29 22:25:39 +000086 <component
87 classname="org.apache.felix.ipojo.test.composite.component.TataProvider"
Clement Escoffier17f8e812008-07-17 09:17:59 +000088 name="tata">
Clement Escoffier77374832008-04-29 22:25:39 +000089 <provides />
90 </component>
91
92 <component
93 classname="org.apache.felix.ipojo.test.composite.component.TotoProvider"
Clement Escoffier17f8e812008-07-17 09:17:59 +000094 name="toto" architecture="true">
Clement Escoffier77374832008-04-29 22:25:39 +000095 <provides />
96 </component>
97
98 <component
99 classname="org.apache.felix.ipojo.test.composite.component.TotoProviderGlue"
Clement Escoffier17f8e812008-07-17 09:17:59 +0000100 name="totoglue">
Clement Escoffier77374832008-04-29 22:25:39 +0000101 <requires field="m_toto" scope="composite" />
102 </component>
Clement Escoffierce0e1e52008-03-28 15:33:36 +0000103
Clement Escoffier77374832008-04-29 22:25:39 +0000104 <!-- Composite -->
Clement Escoffierf58887c2008-09-09 14:21:15 +0000105 <comp:composite name="composite.empty" architecture="true">
106 </comp:composite>
Clement Escoffierce0e1e52008-03-28 15:33:36 +0000107
Clement Escoffierf58887c2008-09-09 14:21:15 +0000108 <component classname="org.apache.felix.ipojo.test.composite.component.Baz2CheckProvider" name="Baz2CheckProvider" architecture="true">
Clement Escoffierce0e1e52008-03-28 15:33:36 +0000109 <requires field="fs" scope="composite"/>
110 <provides/>
111 </component>
Clement Escoffierce0e1e52008-03-28 15:33:36 +0000112
113</ipojo>