blob: 7f443fd28efc4e9d2500bdc0304040673b54c182 [file] [log] [blame]
Clement Escoffieraae612a2008-10-24 15:48:18 +00001<?xml version="1.0" encoding="UTF-8"?>
2<ipojo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Clement Escoffier5b42bb02010-09-29 07:43:47 +00003 xsi:schemaLocation="org.apache.felix.ipojo http://felix.apache.org/ipojo/schemas/SNAPSHOT/core.xsd"
Clement Escoffieraae612a2008-10-24 15:48:18 +00004 xmlns="org.apache.felix.ipojo"
Clement Escoffierd2ce8982008-11-25 14:47:49 +00005 xmlns:ev="org.apache.felix.ipojo.handlers.event">
Clement Escoffier5b42bb02010-09-29 07:43:47 +00006
Clement Escoffieraae612a2008-10-24 15:48:18 +00007 <!-- The (asynchronous) donut provider -->
8 <component classname="org.apache.felix.ipojo.test.donut.DonutProviderImpl"
9 name="donut-provider">
10 <!-- Expose the donut provider service -->
Clement Escoffier0304dab2008-12-29 18:59:40 +000011 <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider">
Clement Escoffieraae612a2008-10-24 15:48:18 +000012 <property name="name" field="m_name" value="Unknown donut vendor"/>
13 </provides>
14 <!-- Donut publisher -->
15 <ev:publisher name="donut-publisher" field="m_publisher"
16 topics="food/donuts" data-key="food" synchronous="false"/>
17 </component>
Clement Escoffier5b42bb02010-09-29 07:43:47 +000018
Clement Escoffier28429622010-10-06 16:56:15 +000019 <!-- The (asynchronous) donut provider using publishes -->
20 <component classname="org.apache.felix.ipojo.test.donut.DonutProviderImpl"
21 name="donut-provider-publishes">
22 <!-- Expose the donut provider service -->
23 <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider">
24 <property name="name" field="m_name" value="Unknown donut vendor"/>
25 </provides>
26 <!-- Donut publisher -->
27 <ev:publishes name="donut-publisher" field="m_publisher"
28 topics="food/donuts" dataKey="food" synchronous="false"/>
29 </component>
30
Clement Escoffieraae612a2008-10-24 15:48:18 +000031 <!-- The synchronous donut provider -->
32 <component classname="org.apache.felix.ipojo.test.donut.DonutProviderImpl"
33 name="synchronous-donut-provider">
34 <!-- Expose the donut provider service -->
Clement Escoffier0304dab2008-12-29 18:59:40 +000035 <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider">
Clement Escoffieraae612a2008-10-24 15:48:18 +000036 <property name="name" field="m_name" value="Unknown donut vendor"/>
37 </provides>
38 <!-- Donut publisher -->
39 <ev:publisher name="donut-publisher" field="m_publisher"
40 topics="food/donuts" data-key="food" synchronous="true"/>
41 </component>
Clement Escoffier5b42bb02010-09-29 07:43:47 +000042
43 <!-- The synchronous donut provider using dataKey -->
44 <component classname="org.apache.felix.ipojo.test.donut.DonutProviderImpl"
45 name="synchronous-donut-provider-2">
46 <!-- Expose the donut provider service -->
47 <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider">
48 <property name="name" field="m_name" value="Unknown donut vendor"/>
49 </provides>
50 <!-- Donut publisher -->
51 <ev:publisher name="donut-publisher" field="m_publisher"
52 topics="food/donuts" dataKey="food" synchronous="true"/>
53 </component>
54
Clement Escoffieraae612a2008-10-24 15:48:18 +000055 <!-- The (asynchronous) donut event provider -->
56 <component
57 classname="org.apache.felix.ipojo.test.donut.DonutEventProviderImpl"
58 name="donut-event-provider">
59 <!-- Expose the donut provider service -->
Clement Escoffier0304dab2008-12-29 18:59:40 +000060 <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider">
Clement Escoffieraae612a2008-10-24 15:48:18 +000061 <property name="name" field="m_name" value="Unknown donut vendor"/>
62 </provides>
63 <!-- Raw events publisher -->
64 <ev:publisher name="event-publisher" field="m_publisher"
65 topics="food/donuts" synchronous="false"/>
66 </component>
Clement Escoffier5b42bb02010-09-29 07:43:47 +000067
Clement Escoffieraae612a2008-10-24 15:48:18 +000068 <!-- The synchronous donut event provider -->
69 <component
70 classname="org.apache.felix.ipojo.test.donut.DonutEventProviderImpl"
71 name="synchronous-donut-event-provider">
72 <!-- Expose the donut provider service -->
Clement Escoffier0304dab2008-12-29 18:59:40 +000073 <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider">
Clement Escoffieraae612a2008-10-24 15:48:18 +000074 <property name="name" field="m_name" value="Unknown donut vendor"/>
75 </provides>
76 <!-- Raw events publisher -->
77 <ev:publisher name="event-publisher" field="m_publisher"
78 topics="food/donuts" synchronous="true"/>
79 </component>
Clement Escoffier5b42bb02010-09-29 07:43:47 +000080
Clement Escoffieraae612a2008-10-24 15:48:18 +000081 <!-- The (asynchronous) event provider -->
82 <component
83 classname="org.apache.felix.ipojo.test.donut.AsyncEventProviderImpl"
84 name="event-provider">
85 <!-- Expose the donut provider service -->
Clement Escoffier0304dab2008-12-29 18:59:40 +000086 <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider">
Clement Escoffieraae612a2008-10-24 15:48:18 +000087 <property name="name" field="m_name" value="Unknown donut vendor"/>
88 </provides>
89 <!-- Direcly interacts with the Event Admin service -->
90 <requires field="m_ea"/>
91 </component>
Clement Escoffier5b42bb02010-09-29 07:43:47 +000092
Clement Escoffieraae612a2008-10-24 15:48:18 +000093 <!-- The synchronous event provider -->
94 <component
95 classname="org.apache.felix.ipojo.test.donut.SyncEventProviderImpl"
96 name="synchronous-event-provider">
97 <!-- Expose the donut provider service -->
Clement Escoffier0304dab2008-12-29 18:59:40 +000098 <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider">
Clement Escoffieraae612a2008-10-24 15:48:18 +000099 <property name="name" field="m_name" value="Unknown donut vendor"/>
100 </provides>
101 <!-- Direcly interacts with the Event Admin service -->
102 <requires field="m_ea"/>
103 </component>
Clement Escoffier5b42bb02010-09-29 07:43:47 +0000104
Clement Escoffieraae612a2008-10-24 15:48:18 +0000105 <!-- The donut consumer -->
106 <component classname="org.apache.felix.ipojo.test.donut.DonutConsumerImpl"
107 name="donut-consumer">
108 <!-- Expose the donut consumer service -->
Clement Escoffier0304dab2008-12-29 18:59:40 +0000109 <provides specifications="org.apache.felix.ipojo.test.donut.DonutConsumer">
Clement Escoffieraae612a2008-10-24 15:48:18 +0000110 <property name="name" field="m_name" value="Unknown donut consumer"/>
111 <property name="slow" field="m_isSlow" value="false"/>
112 </provides>
113 <!-- Donut events subscriber -->
114 <ev:subscriber name="donut-subscriber" callback="receiveDonut"
115 topics="food/donuts" data-key="food"
116 data-type="org.apache.felix.ipojo.test.donut.Donut"/>
117 </component>
Clement Escoffier5b42bb02010-09-29 07:43:47 +0000118
119 <!-- The donut consumer using dataKey and dataType -->
120 <component classname="org.apache.felix.ipojo.test.donut.DonutConsumerImpl"
121 name="donut-consumer-2">
122 <!-- Expose the donut consumer service -->
123 <provides specifications="org.apache.felix.ipojo.test.donut.DonutConsumer">
124 <property name="name" field="m_name" value="Unknown donut consumer"/>
125 <property name="slow" field="m_isSlow" value="false"/>
126 </provides>
127 <!-- Donut events subscriber -->
128 <ev:subscriber name="donut-subscriber" callback="receiveDonut"
129 topics="food/donuts" dataKey="food"
130 dataType="org.apache.felix.ipojo.test.donut.Donut"/>
131 </component>
132
133
Clement Escoffieraae612a2008-10-24 15:48:18 +0000134 <!-- The donut event consumer -->
135 <component classname="org.apache.felix.ipojo.test.donut.DonutConsumerImpl"
136 name="donut-event-consumer">
137 <!-- Expose the donut consumer service -->
Clement Escoffier0304dab2008-12-29 18:59:40 +0000138 <provides specifications="org.apache.felix.ipojo.test.donut.DonutConsumer">
Clement Escoffieraae612a2008-10-24 15:48:18 +0000139 <property name="name" field="m_name" value="Unknown donut consumer"/>
140 <property name="slow" field="m_isSlow" value="false"/>
141 </provides>
142 <!-- Raw events subscriber -->
143 <ev:subscriber name="donut-event-subscriber" callback="receiveEvent"
144 topics="food/donuts"/>
145 </component>
Clement Escoffier5b42bb02010-09-29 07:43:47 +0000146
Clement Escoffieraae612a2008-10-24 15:48:18 +0000147 <!-- The event consumer -->
148 <component classname="org.apache.felix.ipojo.test.donut.EventConsumerImpl"
149 name="event-consumer">
150 <!-- Expose the donut consumer service -->
151 <provides
Clement Escoffier0304dab2008-12-29 18:59:40 +0000152 specifications="{org.apache.felix.ipojo.test.donut.DonutConsumer,org.osgi.service.event.EventHandler}">
Clement Escoffieraae612a2008-10-24 15:48:18 +0000153 <property name="name" field="m_name" value="Unknown event consumer"/>
154 <property name="slow" field="m_isSlow" value="false"/>
155 <property name="event.topics" type="String" value="food/donuts"/>
156 </provides>
157 </component>
Clement Escoffier5b42bb02010-09-29 07:43:47 +0000158
Clement Escoffieraae612a2008-10-24 15:48:18 +0000159 <!-- The event tracker -->
160 <component classname="org.apache.felix.ipojo.test.donut.EventTrackerImpl"
161 name="event-tracker">
162 <!-- Expose the donut consumer service -->
163 <provides
Clement Escoffier0304dab2008-12-29 18:59:40 +0000164 specifications="{org.apache.felix.ipojo.test.donut.EventTracker,org.osgi.service.event.EventHandler}">
Clement Escoffieraae612a2008-10-24 15:48:18 +0000165 <property name="name" field="m_name" value="Unknown event tracker"/>
166 <property name="event.topics" type="String" value="food/donuts"/>
167 </provides>
168 </component>
Clement Escoffier5b42bb02010-09-29 07:43:47 +0000169
170
Clement Escoffieraae612a2008-10-24 15:48:18 +0000171 <!-- Example instances -->
172 <instance component="donut-provider" name="zeifhgbzre">
173 <property name="name" value="Zeifhgbzre donuts"/>
174 </instance>
175 <instance component="donut-consumer" name="zeifhgbzre simpson">
176 <property name="name" value="Zeifhgbzre simpson"/>
177 <property name="slow" value="false"/>
178 </instance>
Clement Escoffier5b42bb02010-09-29 07:43:47 +0000179
Clement Escoffier39558712008-07-30 18:05:29 +0000180</ipojo>