blob: b7c2ad25d6cefd78c12e93e1e43286c4a25466b1 [file] [log] [blame]
Clement Escoffier3269efa2008-09-09 14:21:15 +00001<ipojo
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Clement Escoffierc80b73d2009-07-03 13:16:24 +00003 xsi:schemaLocation="org.apache.felix.ipojo http://felix.apache.org/ipojo/schemas/SNAPSHOT/core.xsd
4 org.apache.felix.composite http://felix.apache.org/ipojo/schemas/SNAPSHOT/composite.xsd"
Clement Escoffier3269efa2008-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 Escoffier832ab7a2008-04-25 16:49:43 +00008 <!-- Used component type -->
9 <component
Clement Escoffier3269efa2008-09-09 14:21:15 +000010 classname="org.apache.felix.ipojo.test.composite.component.FooProviderType1"
Clement Escoffier65158f82008-07-17 09:17:59 +000011 name="COMPO-FooProviderType-1" architecture="true">
Clement Escoffier832ab7a2008-04-25 16:49:43 +000012 <provides />
13 </component>
14 <component
Clement Escoffier3269efa2008-09-09 14:21:15 +000015 classname="org.apache.felix.ipojo.test.composite.component.FooProviderType1"
Clement Escoffier832ab7a2008-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 Escoffier3269efa2008-09-09 14:21:15 +000027 classname="org.apache.felix.ipojo.test.composite.component.FooProviderTypeDyn"
Clement Escoffier832ab7a2008-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 Escoffier3269efa2008-09-09 14:21:15 +000039 classname="org.apache.felix.ipojo.test.composite.component.FooProviderTypeDyn2"
Clement Escoffier65158f82008-07-17 09:17:59 +000040 name="COMPO-FooProviderType-Dyn2" architecture="true">
Clement Escoffier832ab7a2008-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 Escoffier3269efa2008-09-09 14:21:15 +000051 classname="org.apache.felix.ipojo.test.composite.component.CheckServiceProvider"
Clement Escoffier65158f82008-07-17 09:17:59 +000052 name="COMPO-SimpleCheckServiceProvider" architecture="true">
Clement Escoffier832ab7a2008-04-25 16:49:43 +000053 <requires field="fs" />
54 <provides />
55 </component>
56 <component
Clement Escoffier3269efa2008-09-09 14:21:15 +000057 classname="org.apache.felix.ipojo.test.composite.component.FooBarProviderType1"
Clement Escoffier65158f82008-07-17 09:17:59 +000058 name="COMPO-FooBarProviderType-1" architecture="true">
Clement Escoffier832ab7a2008-04-25 16:49:43 +000059 <provides />
60 </component>
61 <component
Clement Escoffier3269efa2008-09-09 14:21:15 +000062 classname="org.apache.felix.ipojo.test.composite.component.FooBarProviderType1"
Clement Escoffier65158f82008-07-17 09:17:59 +000063 name="COMPO-FooBarProviderType-2" architecture="true">
Clement Escoffier832ab7a2008-04-25 16:49:43 +000064 <provides
Clement Escoffier0304dab2008-12-29 18:59:40 +000065 specifications="{org.apache.felix.ipojo.test.composite.service.FooService, org.apache.felix.ipojo.test.composite.service.BarService }" />
Clement Escoffier832ab7a2008-04-25 16:49:43 +000066 </component>
67 <component
Clement Escoffier3269efa2008-09-09 14:21:15 +000068 classname="org.apache.felix.ipojo.test.composite.component.FooBarProviderType1"
Clement Escoffier65158f82008-07-17 09:17:59 +000069 name="COMPO-FooBarProviderType-3" architecture="true">
Clement Escoffier832ab7a2008-04-25 16:49:43 +000070 <provides
Clement Escoffier0304dab2008-12-29 18:59:40 +000071 specifications="{org.apache.felix.ipojo.test.composite.service.FooService}">
Clement Escoffier832ab7a2008-04-25 16:49:43 +000072 <property name="baz" type="java.lang.String" value="foo" />
73 </provides>
74 <provides
Clement Escoffier0304dab2008-12-29 18:59:40 +000075 specifications="{org.apache.felix.ipojo.test.composite.service.BarService}">
Clement Escoffier832ab7a2008-04-25 16:49:43 +000076 <property name="baz" type="java.lang.String" value="bar" />
77 </provides>
78 </component>
Clement Escoffierc80b73d2009-07-03 13:16:24 +000079
Clement Escoffiercdb4b172008-04-29 22:25:39 +000080 <component
Clement Escoffier3269efa2008-09-09 14:21:15 +000081 classname="org.apache.felix.ipojo.test.composite.component.BazProviderType1"
82 name="BazProviderType">
Clement Escoffiercdb4b172008-04-29 22:25:39 +000083 <provides />
Clement Escoffiere50ede52008-03-28 15:33:36 +000084 </component>
Clement Escoffierc80b73d2009-07-03 13:16:24 +000085
Clement Escoffiercdb4b172008-04-29 22:25:39 +000086 <component
87 classname="org.apache.felix.ipojo.test.composite.component.TataProvider"
Clement Escoffier65158f82008-07-17 09:17:59 +000088 name="tata">
Clement Escoffiercdb4b172008-04-29 22:25:39 +000089 <provides />
90 </component>
91
92 <component
93 classname="org.apache.felix.ipojo.test.composite.component.TotoProvider"
Clement Escoffier65158f82008-07-17 09:17:59 +000094 name="toto" architecture="true">
Clement Escoffiercdb4b172008-04-29 22:25:39 +000095 <provides />
96 </component>
97
98 <component
99 classname="org.apache.felix.ipojo.test.composite.component.TotoProviderGlue"
Clement Escoffier65158f82008-07-17 09:17:59 +0000100 name="totoglue">
Clement Escoffiercdb4b172008-04-29 22:25:39 +0000101 <requires field="m_toto" scope="composite" />
102 </component>
Clement Escoffierc80b73d2009-07-03 13:16:24 +0000103
Clement Escoffiercdb4b172008-04-29 22:25:39 +0000104 <!-- Composite -->
Clement Escoffier3269efa2008-09-09 14:21:15 +0000105 <comp:composite name="composite.empty" architecture="true">
106 </comp:composite>
Clement Escoffierc80b73d2009-07-03 13:16:24 +0000107
Clement Escoffier3269efa2008-09-09 14:21:15 +0000108 <component classname="org.apache.felix.ipojo.test.composite.component.Baz2CheckProvider" name="Baz2CheckProvider" architecture="true">
Clement Escoffiere50ede52008-03-28 15:33:36 +0000109 <requires field="fs" scope="composite"/>
110 <provides/>
111 </component>
Clement Escoffierc80b73d2009-07-03 13:16:24 +0000112
Clement Escoffiere50ede52008-03-28 15:33:36 +0000113</ipojo>