Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 1 | <ipojo
|
| 2 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
Clement Escoffier | c80b73d | 2009-07-03 13:16:24 +0000 | [diff] [blame] | 3 | xsi:schemaLocation="org.apache.felix.ipojo http://felix.apache.org/ipojo/schemas/SNAPSHOT/core.xsd
|
| 4 | org.apache.felix.composite http://felix.apache.org/ipojo/schemas/SNAPSHOT/composite.xsd"
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 5 | xmlns="org.apache.felix.ipojo"
|
| 6 | xmlns:comp="org.apache.felix.ipojo.composite">
|
| 7 | <comp:composite name="composite.test.3" architecture="true">
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 8 | <subservice action="instantiate"
|
| 9 | specification="org.apache.felix.ipojo.test.composite.service.BazService"
|
| 10 | aggregate="true" filter="(factory.name=BazProviderType)" />
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 11 | <comp:provides action="export"
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 12 | specification="org.apache.felix.ipojo.test.composite.service.BazService" />
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 13 | </comp:composite>
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 14 |
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 15 | <comp:composite name="composite.test.2" architecture="true">
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 16 | <subservice action="instantiate"
|
| 17 | specification="org.apache.felix.ipojo.test.composite.service.CheckService"
|
| 18 | filter="(factory.name=Baz2CheckProvider)" />
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 19 | <comp:provides action="export"
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 20 | 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 Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 24 | </comp:composite>
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 25 |
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 26 | <comp:composite name="composite.test.1" architecture="true">
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 27 | <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 Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 33 | <comp:provides action="export"
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 34 | specification="org.apache.felix.ipojo.test.composite.service.CheckService" />
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 35 | </comp:composite>
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 36 |
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 37 | <comp:composite name="composite.instantiator" architecture="true">
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 38 | <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 Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 43 | <comp:provides action="export"
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 44 | specification="org.apache.felix.ipojo.test.composite.service.BazService" />
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 45 | <comp:provides action="export"
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 46 | specification="org.apache.felix.ipojo.test.composite.service.FooService" />
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 47 | </comp:composite>
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 48 |
|
| 49 | <!-- Test composition provides -->
|
| 50 |
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 51 | <comp:composite name="comp-0" architecture="true">
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 52 | <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 Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 56 | <comp:provides action="implement"
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 57 | specification="org.apache.felix.ipojo.test.composite.service.Tota" />
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 58 | </comp:composite>
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 59 |
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 60 | <comp:composite name="comp-1" architecture="true">
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 61 | <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 Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 65 | <comp:provides action="implement"
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 66 | specification="org.apache.felix.ipojo.test.composite.service.Tota">
|
| 67 | <delegation method="tataInt" policy="One" />
|
| 68 | <delegation method="toto1" policy="All" />
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 69 | </comp:provides>
|
| 70 | </comp:composite>
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 71 |
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 72 | <comp:composite name="comp-2" architecture="true">
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 73 | <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 Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 79 | <comp:provides action="implement"
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 80 | specification="org.apache.felix.ipojo.test.composite.service.Tota">
|
| 81 | <delegation method="tataInt" policy="One" />
|
| 82 | <delegation method="toto1" policy="All" />
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 83 | </comp:provides>
|
| 84 | </comp:composite>
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 85 |
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 86 | <comp:composite name="comp-3" architecture="true">
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 87 | <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 Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 92 | <comp:provides action="implement"
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 93 | specification="org.apache.felix.ipojo.test.composite.service.Tota">
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 94 | </comp:provides>
|
| 95 | </comp:composite>
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 96 |
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 97 | <comp:composite name="comp-4" architecture="true">
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 98 | <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 Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 103 | <comp:provides action="implement"
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 104 | specification="org.apache.felix.ipojo.test.composite.service.Tota">
|
| 105 | <delegation method="tataInt" policy="One" />
|
| 106 | <delegation method="toto1" policy="All" />
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 107 | </comp:provides>
|
| 108 | </comp:composite>
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 109 |
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 110 | <comp:composite name="comp-5" architecture="true">
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 111 | <subservice action="instantiate"
|
| 112 | specification="org.apache.felix.ipojo.test.composite.service.Tata"
|
| 113 | aggregate="true" />
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 114 | <!-- <subservice action="import" specification="org.apache.felix.ipojo.test.comp:composite.service.Toto" aggregate ="true" optional="true"/> -->
|
| 115 | <comp:provides action="implement"
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 116 | specification="org.apache.felix.ipojo.test.composite.service.Tota">
|
| 117 | <delegation method="tataInt" policy="One" />
|
| 118 | <delegation method="toto1" policy="All" />
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 119 | </comp:provides>
|
| 120 | </comp:composite>
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 121 |
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 122 | <comp:composite name="comp-6" architecture="true">
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 123 | <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 Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 129 | <comp:provides action="implement"
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 130 | specification="org.apache.felix.ipojo.test.composite.service.Toto">
|
| 131 | <delegation method="toto1" policy="All" />
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 132 | </comp:provides>
|
| 133 | <comp:provides action="implement"
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 134 | specification="org.apache.felix.ipojo.test.composite.service.Tata">
|
| 135 | <delegation method="tataInt" policy="One" />
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 136 | </comp:provides>
|
| 137 | </comp:composite>
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 138 |
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 139 | <comp:composite name="comp-7" architecture="true">
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 140 | <instance component="tata" />
|
| 141 | <subservice action="import"
|
| 142 | specification="org.apache.felix.ipojo.test.composite.service.Toto" />
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 143 | <comp:provides action="implement"
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 144 | specification="org.apache.felix.ipojo.test.composite.service.Tota" />
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 145 | </comp:composite>
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 146 |
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 147 | <comp:composite name="comp-8" architecture="true">
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 148 | <instance component="tata" />
|
| 149 | <instance component="totoglue" />
|
| 150 | <subservice action="import"
|
| 151 | specification="org.apache.felix.ipojo.test.composite.service.Toto" />
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 152 | <comp:provides action="implement"
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 153 | specification="org.apache.felix.ipojo.test.composite.service.Tota" />
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 154 | </comp:composite>
|
Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame] | 155 | </ipojo>
|