Clement Escoffier | 534748b | 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 | f67938e | 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 | 534748b | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 4 | xmlns="org.apache.felix.ipojo" |
Clement Escoffier | 0b07ca4 | 2008-11-25 14:47:49 +0000 | [diff] [blame] | 5 | xmlns:ev="org.apache.felix.ipojo.handlers.event"> |
Clement Escoffier | f67938e | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 6 | |
Clement Escoffier | 534748b | 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 | df788b4 | 2008-12-29 18:59:40 +0000 | [diff] [blame] | 11 | <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider"> |
Clement Escoffier | 534748b | 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 | f67938e | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 18 | |
Clement Escoffier | 534748b | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 19 | <!-- 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 Escoffier | df788b4 | 2008-12-29 18:59:40 +0000 | [diff] [blame] | 23 | <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider"> |
Clement Escoffier | 534748b | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 24 | <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 Escoffier | f67938e | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 30 | |
| 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 Escoffier | 534748b | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 43 | <!-- 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 Escoffier | df788b4 | 2008-12-29 18:59:40 +0000 | [diff] [blame] | 48 | <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider"> |
Clement Escoffier | 534748b | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 49 | <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 Escoffier | f67938e | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 55 | |
Clement Escoffier | 534748b | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 56 | <!-- 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 Escoffier | df788b4 | 2008-12-29 18:59:40 +0000 | [diff] [blame] | 61 | <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider"> |
Clement Escoffier | 534748b | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 62 | <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 Escoffier | f67938e | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 68 | |
Clement Escoffier | 534748b | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 69 | <!-- 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 Escoffier | df788b4 | 2008-12-29 18:59:40 +0000 | [diff] [blame] | 74 | <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider"> |
Clement Escoffier | 534748b | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 75 | <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 Escoffier | f67938e | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 80 | |
Clement Escoffier | 534748b | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 81 | <!-- 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 Escoffier | df788b4 | 2008-12-29 18:59:40 +0000 | [diff] [blame] | 86 | <provides specifications="org.apache.felix.ipojo.test.donut.DonutProvider"> |
Clement Escoffier | 534748b | 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 | f67938e | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 92 | |
Clement Escoffier | 534748b | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 93 | <!-- The donut consumer --> |
| 94 | <component classname="org.apache.felix.ipojo.test.donut.DonutConsumerImpl" |
| 95 | name="donut-consumer"> |
| 96 | <!-- Expose the donut consumer service --> |
Clement Escoffier | df788b4 | 2008-12-29 18:59:40 +0000 | [diff] [blame] | 97 | <provides specifications="org.apache.felix.ipojo.test.donut.DonutConsumer"> |
Clement Escoffier | 534748b | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 98 | <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 Escoffier | f67938e | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 106 | |
| 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 Escoffier | 534748b | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 122 | <!-- 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 Escoffier | df788b4 | 2008-12-29 18:59:40 +0000 | [diff] [blame] | 126 | <provides specifications="org.apache.felix.ipojo.test.donut.DonutConsumer"> |
Clement Escoffier | 534748b | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 127 | <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 Escoffier | f67938e | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 134 | |
Clement Escoffier | 534748b | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 135 | <!-- 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 Escoffier | df788b4 | 2008-12-29 18:59:40 +0000 | [diff] [blame] | 140 | specifications="{org.apache.felix.ipojo.test.donut.DonutConsumer,org.osgi.service.event.EventHandler}"> |
Clement Escoffier | 534748b | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 141 | <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 Escoffier | f67938e | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 146 | |
Clement Escoffier | 534748b | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 147 | <!-- 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 Escoffier | df788b4 | 2008-12-29 18:59:40 +0000 | [diff] [blame] | 152 | specifications="{org.apache.felix.ipojo.test.donut.EventTracker,org.osgi.service.event.EventHandler}"> |
Clement Escoffier | 534748b | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 153 | <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 Escoffier | f67938e | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 157 | |
| 158 | |
Clement Escoffier | 534748b | 2008-10-24 15:48:18 +0000 | [diff] [blame] | 159 | <!-- 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 Escoffier | f67938e | 2010-09-29 07:43:47 +0000 | [diff] [blame] | 167 | |
Clement Escoffier | dfce6b3 | 2008-07-30 18:05:29 +0000 | [diff] [blame] | 168 | </ipojo> |