blob: 49b8637ad83de7ca3431848c551b57e07b60f008 [file] [log] [blame]
Clement Escoffiere50ede52008-03-28 15:33:36 +00001<ipojo xmlns:cs="org.apache.felix.ipojo.test.composite.handler.CheckServiceHandler">
Clement Escoffier832ab7a2008-04-25 16:49:43 +00002 <!-- Used component type -->
3 <component
4 className="org.apache.felix.ipojo.test.composite.component.FooProviderType1"
5 factory="COMPO-FooProviderType-1" architecture="true">
6 <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"
34 name="COMPO-FooProviderType-Dyn2" factory="true" architecture="true">
35 <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"
46 factory="COMPO-SimpleCheckServiceProvider" architecture="true">
47 <requires field="fs" />
48 <provides />
49 </component>
50 <component
51 className="org.apache.felix.ipojo.test.composite.component.FooBarProviderType1"
52 factory="COMPO-FooBarProviderType-1" architecture="true">
53 <provides />
54 </component>
55 <component
56 className="org.apache.felix.ipojo.test.composite.component.FooBarProviderType1"
57 factory="COMPO-FooBarProviderType-2" architecture="true">
58 <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"
63 factory="COMPO-FooBarProviderType-3" architecture="true">
64 <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 Escoffiercdb4b172008-04-29 22:25:39 +000074 <component
75 className="org.apache.felix.ipojo.test.composite.component.BazProviderType1"
76 factory="BazProviderType" scope="composite">
77 <provides />
Clement Escoffiere50ede52008-03-28 15:33:36 +000078 </component>
79
Clement Escoffiercdb4b172008-04-29 22:25:39 +000080 <component
81 classname="org.apache.felix.ipojo.test.composite.component.TataProvider"
82 factory="tata">
83 <provides />
84 </component>
85
86 <component
87 classname="org.apache.felix.ipojo.test.composite.component.TotoProvider"
88 factory="toto" architecture="true">
89 <provides />
90 </component>
91
92 <component
93 classname="org.apache.felix.ipojo.test.composite.component.TotoProviderGlue"
94 factory="totoglue">
95 <requires field="m_toto" scope="composite" />
96 </component>
Clement Escoffiere50ede52008-03-28 15:33:36 +000097
Clement Escoffiercdb4b172008-04-29 22:25:39 +000098 <!-- Composite -->
99 <composite name="composite.empty" factory="true" architecture="true">
Clement Escoffiere50ede52008-03-28 15:33:36 +0000100 </composite>
101
102 <component className="org.apache.felix.ipojo.test.composite.component.Baz2CheckProvider" factory="Baz2CheckProvider" architecture="true">
103 <requires field="fs" scope="composite"/>
104 <provides/>
105 </component>
Clement Escoffiere50ede52008-03-28 15:33:36 +0000106
107</ipojo>