blob: eecf97430c6e96128816ec7ac0cee20bdd0ada0e [file] [log] [blame]
Clement Escoffierce0e1e52008-03-28 15:33:36 +00001<ipojo xmlns:cs="org.apache.felix.ipojo.test.composite.handler.CheckServiceHandler">
Clement Escoffierad6c5552008-04-25 16:49:43 +00002 <!-- Used component type -->
3 <component
4 className="org.apache.felix.ipojo.test.composite.component.FooProviderType1"
Clement Escoffier17f8e812008-07-17 09:17:59 +00005 name="COMPO-FooProviderType-1" architecture="true">
Clement Escoffierad6c5552008-04-25 16:49:43 +00006 <provides />
7 </component>
8 <component
9 className="org.apache.felix.ipojo.test.composite.component.FooProviderType1"
10 name="COMPO-FooProviderType-2" architecture="true">
11 <provides>
12 <property name="int" type="int" value="2" />
13 <property name="long" type="long" value="40" />
14 <property name="string" type="java.lang.String" value="foo" />
15 <property name="strAProp" type="java.lang.String[]"
16 value="{foo, bar}" />
17 <property name="intAProp" type="int[]" value="{1,2,3}" />
18 </provides>
19 </component>
20 <component
21 className="org.apache.felix.ipojo.test.composite.component.FooProviderTypeDyn"
22 name="COMPO-FooProviderType-Dyn" architecture="true">
23 <provides>
24 <property name="int" field="intProp" value="2" />
25 <property name="boolean" field="boolProp" value="false" />
26 <property name="string" field="strProp" value="foo" />
27 <property name="strAProp" field="strAProp"
28 value="{foo, bar}" />
29 <property name="intAProp" field="intAProp" value="{ 1,2,3}" />
30 </provides>
31 </component>
32 <component
33 className="org.apache.felix.ipojo.test.composite.component.FooProviderTypeDyn2"
Clement Escoffier17f8e812008-07-17 09:17:59 +000034 name="COMPO-FooProviderType-Dyn2" architecture="true">
Clement Escoffierad6c5552008-04-25 16:49:43 +000035 <provides>
36 <property name="int" field="intProp" value="4" />
37 <property name="boolean" field="boolProp" />
38 <property name="string" field="strProp" />
39 <property name="strAProp" field="strAProp" />
40 <property name="intAProp" field="intAProp"
41 value="{1, 2,3 }" />
42 </provides>
43 </component>
44 <component
45 className="org.apache.felix.ipojo.test.composite.component.CheckServiceProvider"
Clement Escoffier17f8e812008-07-17 09:17:59 +000046 name="COMPO-SimpleCheckServiceProvider" architecture="true">
Clement Escoffierad6c5552008-04-25 16:49:43 +000047 <requires field="fs" />
48 <provides />
49 </component>
50 <component
51 className="org.apache.felix.ipojo.test.composite.component.FooBarProviderType1"
Clement Escoffier17f8e812008-07-17 09:17:59 +000052 name="COMPO-FooBarProviderType-1" architecture="true">
Clement Escoffierad6c5552008-04-25 16:49:43 +000053 <provides />
54 </component>
55 <component
56 className="org.apache.felix.ipojo.test.composite.component.FooBarProviderType1"
Clement Escoffier17f8e812008-07-17 09:17:59 +000057 name="COMPO-FooBarProviderType-2" architecture="true">
Clement Escoffierad6c5552008-04-25 16:49:43 +000058 <provides
59 interface="{org.apache.felix.ipojo.test.composite.service.FooService, org.apache.felix.ipojo.test.composite.service.BarService }" />
60 </component>
61 <component
62 className="org.apache.felix.ipojo.test.composite.component.FooBarProviderType1"
Clement Escoffier17f8e812008-07-17 09:17:59 +000063 name="COMPO-FooBarProviderType-3" architecture="true">
Clement Escoffierad6c5552008-04-25 16:49:43 +000064 <provides
65 interface="{org.apache.felix.ipojo.test.composite.service.FooService}">
66 <property name="baz" type="java.lang.String" value="foo" />
67 </provides>
68 <provides
69 interface="{org.apache.felix.ipojo.test.composite.service.BarService}">
70 <property name="baz" type="java.lang.String" value="bar" />
71 </provides>
72 </component>
73
Clement Escoffier77374832008-04-29 22:25:39 +000074 <component
75 className="org.apache.felix.ipojo.test.composite.component.BazProviderType1"
Clement Escoffier17f8e812008-07-17 09:17:59 +000076 name="BazProviderType" scope="composite">
Clement Escoffier77374832008-04-29 22:25:39 +000077 <provides />
Clement Escoffierce0e1e52008-03-28 15:33:36 +000078 </component>
79
Clement Escoffier77374832008-04-29 22:25:39 +000080 <component
81 classname="org.apache.felix.ipojo.test.composite.component.TataProvider"
Clement Escoffier17f8e812008-07-17 09:17:59 +000082 name="tata">
Clement Escoffier77374832008-04-29 22:25:39 +000083 <provides />
84 </component>
85
86 <component
87 classname="org.apache.felix.ipojo.test.composite.component.TotoProvider"
Clement Escoffier17f8e812008-07-17 09:17:59 +000088 name="toto" architecture="true">
Clement Escoffier77374832008-04-29 22:25:39 +000089 <provides />
90 </component>
91
92 <component
93 classname="org.apache.felix.ipojo.test.composite.component.TotoProviderGlue"
Clement Escoffier17f8e812008-07-17 09:17:59 +000094 name="totoglue">
Clement Escoffier77374832008-04-29 22:25:39 +000095 <requires field="m_toto" scope="composite" />
96 </component>
Clement Escoffierce0e1e52008-03-28 15:33:36 +000097
Clement Escoffier77374832008-04-29 22:25:39 +000098 <!-- Composite -->
Clement Escoffier17f8e812008-07-17 09:17:59 +000099 <composite name="composite.empty" architecture="true">
Clement Escoffierce0e1e52008-03-28 15:33:36 +0000100 </composite>
101
Clement Escoffier17f8e812008-07-17 09:17:59 +0000102 <component className="org.apache.felix.ipojo.test.composite.component.Baz2CheckProvider" name="Baz2CheckProvider" architecture="true">
Clement Escoffierce0e1e52008-03-28 15:33:36 +0000103 <requires field="fs" scope="composite"/>
104 <provides/>
105 </component>
Clement Escoffierce0e1e52008-03-28 15:33:36 +0000106
107</ipojo>