blob: 26c8b5d6c37d3bd1ac78014b4c7e6f591899e6e6 [file] [log] [blame]
Clement Escoffier3269efa2008-09-09 14:21:15 +00001<ipojo
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Clement Escoffier8368d922008-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 Escoffier3269efa2008-09-09 14:21:15 +00005 xmlns="org.apache.felix.ipojo"
6 xmlns:comp="org.apache.felix.ipojo.composite">
7 <comp:composite name="composite.test.3" architecture="true">
Clement Escoffiera8e58ab2008-05-07 20:11:29 +00008 <subservice action="instantiate"
9 specification="org.apache.felix.ipojo.test.composite.service.BazService"
10 aggregate="true" filter="(factory.name=BazProviderType)" />
Clement Escoffier3269efa2008-09-09 14:21:15 +000011 <comp:provides action="export"
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000012 specification="org.apache.felix.ipojo.test.composite.service.BazService" />
Clement Escoffier3269efa2008-09-09 14:21:15 +000013 </comp:composite>
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000014
Clement Escoffier3269efa2008-09-09 14:21:15 +000015 <comp:composite name="composite.test.2" architecture="true">
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000016 <subservice action="instantiate"
17 specification="org.apache.felix.ipojo.test.composite.service.CheckService"
18 filter="(factory.name=Baz2CheckProvider)" />
Clement Escoffier3269efa2008-09-09 14:21:15 +000019 <comp:provides action="export"
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000020 specification="org.apache.felix.ipojo.test.composite.service.CheckService" />
21 <subservice action="import"
22 specification="org.apache.felix.ipojo.test.composite.service.BazService"
23 scope="composite" />
Clement Escoffier3269efa2008-09-09 14:21:15 +000024 </comp:composite>
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000025
Clement Escoffier3269efa2008-09-09 14:21:15 +000026 <comp:composite name="composite.test.1" architecture="true">
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000027 <subservice action="instantiate"
28 specification="org.apache.felix.ipojo.test.composite.service.BazService"
29 filter="(factory.name=composite.test.3)" />
30 <subservice action="instantiate"
31 specification="org.apache.felix.ipojo.test.composite.service.CheckService"
32 filter="(factory.name=composite.test.2)" />
Clement Escoffier3269efa2008-09-09 14:21:15 +000033 <comp:provides action="export"
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000034 specification="org.apache.felix.ipojo.test.composite.service.CheckService" />
Clement Escoffier3269efa2008-09-09 14:21:15 +000035 </comp:composite>
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000036
Clement Escoffier3269efa2008-09-09 14:21:15 +000037 <comp:composite name="composite.instantiator" architecture="true">
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000038 <subservice action="instantiate"
39 specification="org.apache.felix.ipojo.test.composite.service.BazService"
40 filter="(factory.name=composite.test.3)" />
41 <subservice action="instantiate"
42 specification="org.apache.felix.ipojo.test.composite.service.FooService" />
Clement Escoffier3269efa2008-09-09 14:21:15 +000043 <comp:provides action="export"
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000044 specification="org.apache.felix.ipojo.test.composite.service.BazService" />
Clement Escoffier3269efa2008-09-09 14:21:15 +000045 <comp:provides action="export"
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000046 specification="org.apache.felix.ipojo.test.composite.service.FooService" />
Clement Escoffier3269efa2008-09-09 14:21:15 +000047 </comp:composite>
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000048
49 <!-- Test composition provides -->
50
Clement Escoffier3269efa2008-09-09 14:21:15 +000051 <comp:composite name="comp-0" architecture="true">
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000052 <subservice action="instantiate"
53 specification="org.apache.felix.ipojo.test.composite.service.Tata" />
54 <subservice action="import"
55 specification="org.apache.felix.ipojo.test.composite.service.Toto" />
Clement Escoffier3269efa2008-09-09 14:21:15 +000056 <comp:provides action="implement"
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000057 specification="org.apache.felix.ipojo.test.composite.service.Tota" />
Clement Escoffier3269efa2008-09-09 14:21:15 +000058 </comp:composite>
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000059
Clement Escoffier3269efa2008-09-09 14:21:15 +000060 <comp:composite name="comp-1" architecture="true">
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000061 <subservice action="instantiate"
62 specification="org.apache.felix.ipojo.test.composite.service.Tata" />
63 <subservice action="import"
64 specification="org.apache.felix.ipojo.test.composite.service.Toto" />
Clement Escoffier3269efa2008-09-09 14:21:15 +000065 <comp:provides action="implement"
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000066 specification="org.apache.felix.ipojo.test.composite.service.Tota">
67 <delegation method="tataInt" policy="One" />
68 <delegation method="toto1" policy="All" />
Clement Escoffier3269efa2008-09-09 14:21:15 +000069 </comp:provides>
70 </comp:composite>
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000071
Clement Escoffier3269efa2008-09-09 14:21:15 +000072 <comp:composite name="comp-2" architecture="true">
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000073 <subservice action="instantiate"
74 specification="org.apache.felix.ipojo.test.composite.service.Tata"
75 aggregate="true" />
76 <subservice action="import"
77 specification="org.apache.felix.ipojo.test.composite.service.Toto"
78 aggregate="true" />
Clement Escoffier3269efa2008-09-09 14:21:15 +000079 <comp:provides action="implement"
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000080 specification="org.apache.felix.ipojo.test.composite.service.Tota">
81 <delegation method="tataInt" policy="One" />
82 <delegation method="toto1" policy="All" />
Clement Escoffier3269efa2008-09-09 14:21:15 +000083 </comp:provides>
84 </comp:composite>
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000085
Clement Escoffier3269efa2008-09-09 14:21:15 +000086 <comp:composite name="comp-3" architecture="true">
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000087 <subservice action="instantiate"
88 specification="org.apache.felix.ipojo.test.composite.service.Tata" />
89 <subservice action="import"
90 specification="org.apache.felix.ipojo.test.composite.service.Toto"
91 optional="true" />
Clement Escoffier3269efa2008-09-09 14:21:15 +000092 <comp:provides action="implement"
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000093 specification="org.apache.felix.ipojo.test.composite.service.Tota">
Clement Escoffier3269efa2008-09-09 14:21:15 +000094 </comp:provides>
95 </comp:composite>
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000096
Clement Escoffier3269efa2008-09-09 14:21:15 +000097 <comp:composite name="comp-4" architecture="true">
Clement Escoffiera8e58ab2008-05-07 20:11:29 +000098 <subservice action="instantiate"
99 specification="org.apache.felix.ipojo.test.composite.service.Tata" />
100 <subservice action="import"
101 specification="org.apache.felix.ipojo.test.composite.service.Toto"
102 optional="true" />
Clement Escoffier3269efa2008-09-09 14:21:15 +0000103 <comp:provides action="implement"
Clement Escoffiera8e58ab2008-05-07 20:11:29 +0000104 specification="org.apache.felix.ipojo.test.composite.service.Tota">
105 <delegation method="tataInt" policy="One" />
106 <delegation method="toto1" policy="All" />
Clement Escoffier3269efa2008-09-09 14:21:15 +0000107 </comp:provides>
108 </comp:composite>
Clement Escoffiera8e58ab2008-05-07 20:11:29 +0000109
Clement Escoffier3269efa2008-09-09 14:21:15 +0000110 <comp:composite name="comp-5" architecture="true">
Clement Escoffiera8e58ab2008-05-07 20:11:29 +0000111 <subservice action="instantiate"
112 specification="org.apache.felix.ipojo.test.composite.service.Tata"
113 aggregate="true" />
Clement Escoffier3269efa2008-09-09 14:21:15 +0000114 <!-- <subservice action="import" specification="org.apache.felix.ipojo.test.comp:composite.service.Toto" aggregate ="true" optional="true"/> -->
115 <comp:provides action="implement"
Clement Escoffiera8e58ab2008-05-07 20:11:29 +0000116 specification="org.apache.felix.ipojo.test.composite.service.Tota">
117 <delegation method="tataInt" policy="One" />
118 <delegation method="toto1" policy="All" />
Clement Escoffier3269efa2008-09-09 14:21:15 +0000119 </comp:provides>
120 </comp:composite>
Clement Escoffiera8e58ab2008-05-07 20:11:29 +0000121
Clement Escoffier3269efa2008-09-09 14:21:15 +0000122 <comp:composite name="comp-6" architecture="true">
Clement Escoffiera8e58ab2008-05-07 20:11:29 +0000123 <subservice action="instantiate"
124 specification="org.apache.felix.ipojo.test.composite.service.Tata"
125 aggregate="true" />
126 <subservice action="import"
127 specification="org.apache.felix.ipojo.test.composite.service.Toto"
128 aggregate="true" optional="true" />
Clement Escoffier3269efa2008-09-09 14:21:15 +0000129 <comp:provides action="implement"
Clement Escoffiera8e58ab2008-05-07 20:11:29 +0000130 specification="org.apache.felix.ipojo.test.composite.service.Toto">
131 <delegation method="toto1" policy="All" />
Clement Escoffier3269efa2008-09-09 14:21:15 +0000132 </comp:provides>
133 <comp:provides action="implement"
Clement Escoffiera8e58ab2008-05-07 20:11:29 +0000134 specification="org.apache.felix.ipojo.test.composite.service.Tata">
135 <delegation method="tataInt" policy="One" />
Clement Escoffier3269efa2008-09-09 14:21:15 +0000136 </comp:provides>
137 </comp:composite>
Clement Escoffiera8e58ab2008-05-07 20:11:29 +0000138
Clement Escoffier3269efa2008-09-09 14:21:15 +0000139 <comp:composite name="comp-7" architecture="true">
Clement Escoffiera8e58ab2008-05-07 20:11:29 +0000140 <instance component="tata" />
141 <subservice action="import"
142 specification="org.apache.felix.ipojo.test.composite.service.Toto" />
Clement Escoffier3269efa2008-09-09 14:21:15 +0000143 <comp:provides action="implement"
Clement Escoffiera8e58ab2008-05-07 20:11:29 +0000144 specification="org.apache.felix.ipojo.test.composite.service.Tota" />
Clement Escoffier3269efa2008-09-09 14:21:15 +0000145 </comp:composite>
Clement Escoffiera8e58ab2008-05-07 20:11:29 +0000146
Clement Escoffier3269efa2008-09-09 14:21:15 +0000147 <comp:composite name="comp-8" architecture="true">
Clement Escoffiera8e58ab2008-05-07 20:11:29 +0000148 <instance component="tata" />
149 <instance component="totoglue" />
150 <subservice action="import"
151 specification="org.apache.felix.ipojo.test.composite.service.Toto" />
Clement Escoffier3269efa2008-09-09 14:21:15 +0000152 <comp:provides action="implement"
Clement Escoffiera8e58ab2008-05-07 20:11:29 +0000153 specification="org.apache.felix.ipojo.test.composite.service.Tota" />
Clement Escoffier3269efa2008-09-09 14:21:15 +0000154 </comp:composite>
Clement Escoffiera8e58ab2008-05-07 20:11:29 +0000155</ipojo>