blob: 77fe217a934da3d90dba9949766440094d999e7c [file] [log] [blame]
Clement Escoffier534748b2008-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 Escoffierf67938e2010-09-29 07:43:47 +00003 xsi:schemaLocation="org.apache.felix.ipojo http://felix.apache.org/ipojo/schemas/SNAPSHOT/core.xsd"
Clement Escoffier534748b2008-10-24 15:48:18 +00004 xmlns="org.apache.felix.ipojo"
Clement Escoffier0b07ca42008-11-25 14:47:49 +00005 xmlns:ev="org.apache.felix.ipojo.handlers.event">
Clement Escoffierf67938e2010-09-29 07:43:47 +00006
Clement Escoffier534748b2008-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 Escoffierdf788b42008-12-29 18:59:40 +000011 <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider">
Clement Escoffier534748b2008-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 Escoffierf67938e2010-09-29 07:43:47 +000018
Clement Escoffier534748b2008-10-24 15:48:18 +000019 <!-- The synchronous donut provider -->
20 <component classname="org.apache.felix.ipojo.test.donut.DonutProviderImpl"
21 name="synchronous-donut-provider">
22 <!-- Expose the donut provider service -->
Clement Escoffierdf788b42008-12-29 18:59:40 +000023 <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider">
Clement Escoffier534748b2008-10-24 15:48:18 +000024 <property name="name" field="m_name" value="Unknown donut vendor"/>
25 </provides>
26 <!-- Donut publisher -->
27 <ev:publisher name="donut-publisher" field="m_publisher"
28 topics="food/donuts" data-key="food" synchronous="true"/>
29 </component>
Clement Escoffierf67938e2010-09-29 07:43:47 +000030
31 <!-- The synchronous donut provider using dataKey -->
32 <component classname="org.apache.felix.ipojo.test.donut.DonutProviderImpl"
33 name="synchronous-donut-provider-2">
34 <!-- Expose the donut provider service -->
35 <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider">
36 <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" dataKey="food" synchronous="true"/>
41 </component>
42
Clement Escoffier534748b2008-10-24 15:48:18 +000043 <!-- The (asynchronous) donut event provider -->
44 <component
45 classname="org.apache.felix.ipojo.test.donut.DonutEventProviderImpl"
46 name="donut-event-provider">
47 <!-- Expose the donut provider service -->
Clement Escoffierdf788b42008-12-29 18:59:40 +000048 <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider">
Clement Escoffier534748b2008-10-24 15:48:18 +000049 <property name="name" field="m_name" value="Unknown donut vendor"/>
50 </provides>
51 <!-- Raw events publisher -->
52 <ev:publisher name="event-publisher" field="m_publisher"
53 topics="food/donuts" synchronous="false"/>
54 </component>
Clement Escoffierf67938e2010-09-29 07:43:47 +000055
Clement Escoffier534748b2008-10-24 15:48:18 +000056 <!-- The synchronous donut event provider -->
57 <component
58 classname="org.apache.felix.ipojo.test.donut.DonutEventProviderImpl"
59 name="synchronous-donut-event-provider">
60 <!-- Expose the donut provider service -->
Clement Escoffierdf788b42008-12-29 18:59:40 +000061 <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider">
Clement Escoffier534748b2008-10-24 15:48:18 +000062 <property name="name" field="m_name" value="Unknown donut vendor"/>
63 </provides>
64 <!-- Raw events publisher -->
65 <ev:publisher name="event-publisher" field="m_publisher"
66 topics="food/donuts" synchronous="true"/>
67 </component>
Clement Escoffierf67938e2010-09-29 07:43:47 +000068
Clement Escoffier534748b2008-10-24 15:48:18 +000069 <!-- The (asynchronous) event provider -->
70 <component
71 classname="org.apache.felix.ipojo.test.donut.AsyncEventProviderImpl"
72 name="event-provider">
73 <!-- Expose the donut provider service -->
Clement Escoffierdf788b42008-12-29 18:59:40 +000074 <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider">
Clement Escoffier534748b2008-10-24 15:48:18 +000075 <property name="name" field="m_name" value="Unknown donut vendor"/>
76 </provides>
77 <!-- Direcly interacts with the Event Admin service -->
78 <requires field="m_ea"/>
79 </component>
Clement Escoffierf67938e2010-09-29 07:43:47 +000080
Clement Escoffier534748b2008-10-24 15:48:18 +000081 <!-- The synchronous event provider -->
82 <component
83 classname="org.apache.felix.ipojo.test.donut.SyncEventProviderImpl"
84 name="synchronous-event-provider">
85 <!-- Expose the donut provider service -->
Clement Escoffierdf788b42008-12-29 18:59:40 +000086 <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider">
Clement Escoffier534748b2008-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 Escoffierf67938e2010-09-29 07:43:47 +000092
Clement Escoffier534748b2008-10-24 15:48:18 +000093 <!-- The donut consumer -->
94 <component classname="org.apache.felix.ipojo.test.donut.DonutConsumerImpl"
95 name="donut-consumer">
96 <!-- Expose the donut consumer service -->
Clement Escoffierdf788b42008-12-29 18:59:40 +000097 <provides specifications="org.apache.felix.ipojo.test.donut.DonutConsumer">
Clement Escoffier534748b2008-10-24 15:48:18 +000098 <property name="name" field="m_name" value="Unknown donut consumer"/>
99 <property name="slow" field="m_isSlow" value="false"/>
100 </provides>
101 <!-- Donut events subscriber -->
102 <ev:subscriber name="donut-subscriber" callback="receiveDonut"
103 topics="food/donuts" data-key="food"
104 data-type="org.apache.felix.ipojo.test.donut.Donut"/>
105 </component>
Clement Escoffierf67938e2010-09-29 07:43:47 +0000106
107 <!-- The donut consumer using dataKey and dataType -->
108 <component classname="org.apache.felix.ipojo.test.donut.DonutConsumerImpl"
109 name="donut-consumer-2">
110 <!-- Expose the donut consumer service -->
111 <provides specifications="org.apache.felix.ipojo.test.donut.DonutConsumer">
112 <property name="name" field="m_name" value="Unknown donut consumer"/>
113 <property name="slow" field="m_isSlow" value="false"/>
114 </provides>
115 <!-- Donut events subscriber -->
116 <ev:subscriber name="donut-subscriber" callback="receiveDonut"
117 topics="food/donuts" dataKey="food"
118 dataType="org.apache.felix.ipojo.test.donut.Donut"/>
119 </component>
120
121
Clement Escoffier534748b2008-10-24 15:48:18 +0000122 <!-- The donut event consumer -->
123 <component classname="org.apache.felix.ipojo.test.donut.DonutConsumerImpl"
124 name="donut-event-consumer">
125 <!-- Expose the donut consumer service -->
Clement Escoffierdf788b42008-12-29 18:59:40 +0000126 <provides specifications="org.apache.felix.ipojo.test.donut.DonutConsumer">
Clement Escoffier534748b2008-10-24 15:48:18 +0000127 <property name="name" field="m_name" value="Unknown donut consumer"/>
128 <property name="slow" field="m_isSlow" value="false"/>
129 </provides>
130 <!-- Raw events subscriber -->
131 <ev:subscriber name="donut-event-subscriber" callback="receiveEvent"
132 topics="food/donuts"/>
133 </component>
Clement Escoffierf67938e2010-09-29 07:43:47 +0000134
Clement Escoffier534748b2008-10-24 15:48:18 +0000135 <!-- The event consumer -->
136 <component classname="org.apache.felix.ipojo.test.donut.EventConsumerImpl"
137 name="event-consumer">
138 <!-- Expose the donut consumer service -->
139 <provides
Clement Escoffierdf788b42008-12-29 18:59:40 +0000140 specifications="{org.apache.felix.ipojo.test.donut.DonutConsumer,org.osgi.service.event.EventHandler}">
Clement Escoffier534748b2008-10-24 15:48:18 +0000141 <property name="name" field="m_name" value="Unknown event consumer"/>
142 <property name="slow" field="m_isSlow" value="false"/>
143 <property name="event.topics" type="String" value="food/donuts"/>
144 </provides>
145 </component>
Clement Escoffierf67938e2010-09-29 07:43:47 +0000146
Clement Escoffier534748b2008-10-24 15:48:18 +0000147 <!-- The event tracker -->
148 <component classname="org.apache.felix.ipojo.test.donut.EventTrackerImpl"
149 name="event-tracker">
150 <!-- Expose the donut consumer service -->
151 <provides
Clement Escoffierdf788b42008-12-29 18:59:40 +0000152 specifications="{org.apache.felix.ipojo.test.donut.EventTracker,org.osgi.service.event.EventHandler}">
Clement Escoffier534748b2008-10-24 15:48:18 +0000153 <property name="name" field="m_name" value="Unknown event tracker"/>
154 <property name="event.topics" type="String" value="food/donuts"/>
155 </provides>
156 </component>
Clement Escoffierf67938e2010-09-29 07:43:47 +0000157
158
Clement Escoffier534748b2008-10-24 15:48:18 +0000159 <!-- Example instances -->
160 <instance component="donut-provider" name="zeifhgbzre">
161 <property name="name" value="Zeifhgbzre donuts"/>
162 </instance>
163 <instance component="donut-consumer" name="zeifhgbzre simpson">
164 <property name="name" value="Zeifhgbzre simpson"/>
165 <property name="slow" value="false"/>
166 </instance>
Clement Escoffierf67938e2010-09-29 07:43:47 +0000167
Clement Escoffierdfce6b32008-07-30 18:05:29 +0000168</ipojo>