Clement Escoffier | aae612a | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <ipojo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
Clement Escoffier | 5b42bb0 | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 3 | xsi:schemaLocation="org.apache.felix.ipojo http://felix.apache.org/ipojo/schemas/SNAPSHOT/core.xsd" |
Clement Escoffier | aae612a | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 4 | xmlns="org.apache.felix.ipojo" |
Clement Escoffier | d2ce898 | 2008-11-25 14:47:49 +0000 | [diff] [blame] | 5 | xmlns:ev="org.apache.felix.ipojo.handlers.event"> |
Clement Escoffier | 5b42bb0 | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 6 | |
Clement Escoffier | aae612a | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 7 | <!-- 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 Escoffier | 0304dab | 2008-12-29 18:59:40 +0000 | [diff] [blame] | 11 | <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider"> |
Clement Escoffier | aae612a | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 12 | <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 Escoffier | 5b42bb0 | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 18 | |
Clement Escoffier | 2842962 | 2010-10-06 16:56:15 +0000 | [diff] [blame] | 19 | <!-- 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 Escoffier | aae612a | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 31 | <!-- 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 Escoffier | 0304dab | 2008-12-29 18:59:40 +0000 | [diff] [blame] | 35 | <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider"> |
Clement Escoffier | aae612a | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 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" data-key="food" synchronous="true"/> |
| 41 | </component> |
Clement Escoffier | 5b42bb0 | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 42 | |
| 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 Escoffier | aae612a | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 55 | <!-- 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 Escoffier | 0304dab | 2008-12-29 18:59:40 +0000 | [diff] [blame] | 60 | <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider"> |
Clement Escoffier | aae612a | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 61 | <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 Escoffier | 5b42bb0 | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 67 | |
Clement Escoffier | aae612a | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 68 | <!-- 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 Escoffier | 0304dab | 2008-12-29 18:59:40 +0000 | [diff] [blame] | 73 | <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider"> |
Clement Escoffier | aae612a | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 74 | <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 Escoffier | 5b42bb0 | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 80 | |
Clement Escoffier | aae612a | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 81 | <!-- 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 Escoffier | 0304dab | 2008-12-29 18:59:40 +0000 | [diff] [blame] | 86 | <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider"> |
Clement Escoffier | aae612a | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 87 | <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 Escoffier | 5b42bb0 | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 92 | |
Clement Escoffier | aae612a | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 93 | <!-- 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 Escoffier | 0304dab | 2008-12-29 18:59:40 +0000 | [diff] [blame] | 98 | <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider"> |
Clement Escoffier | aae612a | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 99 | <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 Escoffier | 5b42bb0 | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 104 | |
Clement Escoffier | aae612a | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 105 | <!-- The donut consumer --> |
| 106 | <component classname="org.apache.felix.ipojo.test.donut.DonutConsumerImpl" |
| 107 | name="donut-consumer"> |
| 108 | <!-- Expose the donut consumer service --> |
Clement Escoffier | 0304dab | 2008-12-29 18:59:40 +0000 | [diff] [blame] | 109 | <provides specifications="org.apache.felix.ipojo.test.donut.DonutConsumer"> |
Clement Escoffier | aae612a | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 110 | <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 Escoffier | 5b42bb0 | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 118 | |
| 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 Escoffier | aae612a | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 134 | <!-- 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 Escoffier | 0304dab | 2008-12-29 18:59:40 +0000 | [diff] [blame] | 138 | <provides specifications="org.apache.felix.ipojo.test.donut.DonutConsumer"> |
Clement Escoffier | aae612a | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 139 | <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 Escoffier | 5b42bb0 | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 146 | |
Clement Escoffier | aae612a | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 147 | <!-- 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 Escoffier | 0304dab | 2008-12-29 18:59:40 +0000 | [diff] [blame] | 152 | specifications="{org.apache.felix.ipojo.test.donut.DonutConsumer,org.osgi.service.event.EventHandler}"> |
Clement Escoffier | aae612a | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 153 | <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 Escoffier | 5b42bb0 | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 158 | |
Clement Escoffier | aae612a | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 159 | <!-- 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 Escoffier | 0304dab | 2008-12-29 18:59:40 +0000 | [diff] [blame] | 164 | specifications="{org.apache.felix.ipojo.test.donut.EventTracker,org.osgi.service.event.EventHandler}"> |
Clement Escoffier | aae612a | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 165 | <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 Escoffier | 5b42bb0 | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 169 | |
| 170 | |
Clement Escoffier | aae612a | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 171 | <!-- 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 Escoffier | 5b42bb0 | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 179 | |
Clement Escoffier | 3955871 | 2008-07-30 18:05:29 +0000 | [diff] [blame] | 180 | </ipojo> |