Clement Escoffier | a8e58ab | 2008-05-07 20:11:29 +0000 | [diff] [blame^] | 1 | <ipojo>
|
| 2 | <composite name="composite.test.3" architecture="true">
|
| 3 | <subservice action="instantiate"
|
| 4 | specification="org.apache.felix.ipojo.test.composite.service.BazService"
|
| 5 | aggregate="true" filter="(factory.name=BazProviderType)" />
|
| 6 | <provides action="export"
|
| 7 | specification="org.apache.felix.ipojo.test.composite.service.BazService" />
|
| 8 | </composite>
|
| 9 |
|
| 10 | <composite name="composite.test.2" architecture="true">
|
| 11 | <subservice action="instantiate"
|
| 12 | specification="org.apache.felix.ipojo.test.composite.service.CheckService"
|
| 13 | filter="(factory.name=Baz2CheckProvider)" />
|
| 14 | <provides action="export"
|
| 15 | specification="org.apache.felix.ipojo.test.composite.service.CheckService" />
|
| 16 | <subservice action="import"
|
| 17 | specification="org.apache.felix.ipojo.test.composite.service.BazService"
|
| 18 | scope="composite" />
|
| 19 | </composite>
|
| 20 |
|
| 21 | <composite name="composite.test.1" architecture="true">
|
| 22 | <subservice action="instantiate"
|
| 23 | specification="org.apache.felix.ipojo.test.composite.service.BazService"
|
| 24 | filter="(factory.name=composite.test.3)" />
|
| 25 | <subservice action="instantiate"
|
| 26 | specification="org.apache.felix.ipojo.test.composite.service.CheckService"
|
| 27 | filter="(factory.name=composite.test.2)" />
|
| 28 | <provides action="export"
|
| 29 | specification="org.apache.felix.ipojo.test.composite.service.CheckService" />
|
| 30 | </composite>
|
| 31 |
|
| 32 | <composite name="composite.instantiator" architecture="true">
|
| 33 | <subservice action="instantiate"
|
| 34 | specification="org.apache.felix.ipojo.test.composite.service.BazService"
|
| 35 | filter="(factory.name=composite.test.3)" />
|
| 36 | <subservice action="instantiate"
|
| 37 | specification="org.apache.felix.ipojo.test.composite.service.FooService" />
|
| 38 | <provides action="export"
|
| 39 | specification="org.apache.felix.ipojo.test.composite.service.BazService" />
|
| 40 | <provides action="export"
|
| 41 | specification="org.apache.felix.ipojo.test.composite.service.FooService" />
|
| 42 | </composite>
|
| 43 |
|
| 44 | <!-- Test composition provides -->
|
| 45 |
|
| 46 | <composite name="comp-0" architecture="true">
|
| 47 | <subservice action="instantiate"
|
| 48 | specification="org.apache.felix.ipojo.test.composite.service.Tata" />
|
| 49 | <subservice action="import"
|
| 50 | specification="org.apache.felix.ipojo.test.composite.service.Toto" />
|
| 51 | <provides action="implement"
|
| 52 | specification="org.apache.felix.ipojo.test.composite.service.Tota" />
|
| 53 | </composite>
|
| 54 |
|
| 55 | <composite name="comp-1" architecture="true">
|
| 56 | <subservice action="instantiate"
|
| 57 | specification="org.apache.felix.ipojo.test.composite.service.Tata" />
|
| 58 | <subservice action="import"
|
| 59 | specification="org.apache.felix.ipojo.test.composite.service.Toto" />
|
| 60 | <provides action="implement"
|
| 61 | specification="org.apache.felix.ipojo.test.composite.service.Tota">
|
| 62 | <delegation method="tataInt" policy="One" />
|
| 63 | <delegation method="toto1" policy="All" />
|
| 64 | </provides>
|
| 65 | </composite>
|
| 66 |
|
| 67 | <composite name="comp-2" architecture="true">
|
| 68 | <subservice action="instantiate"
|
| 69 | specification="org.apache.felix.ipojo.test.composite.service.Tata"
|
| 70 | aggregate="true" />
|
| 71 | <subservice action="import"
|
| 72 | specification="org.apache.felix.ipojo.test.composite.service.Toto"
|
| 73 | aggregate="true" />
|
| 74 | <provides action="implement"
|
| 75 | specification="org.apache.felix.ipojo.test.composite.service.Tota">
|
| 76 | <delegation method="tataInt" policy="One" />
|
| 77 | <delegation method="toto1" policy="All" />
|
| 78 | </provides>
|
| 79 | </composite>
|
| 80 |
|
| 81 | <composite name="comp-3" architecture="true">
|
| 82 | <subservice action="instantiate"
|
| 83 | specification="org.apache.felix.ipojo.test.composite.service.Tata" />
|
| 84 | <subservice action="import"
|
| 85 | specification="org.apache.felix.ipojo.test.composite.service.Toto"
|
| 86 | optional="true" />
|
| 87 | <provides action="implement"
|
| 88 | specification="org.apache.felix.ipojo.test.composite.service.Tota">
|
| 89 | </provides>
|
| 90 | </composite>
|
| 91 |
|
| 92 | <composite name="comp-4" architecture="true">
|
| 93 | <subservice action="instantiate"
|
| 94 | specification="org.apache.felix.ipojo.test.composite.service.Tata" />
|
| 95 | <subservice action="import"
|
| 96 | specification="org.apache.felix.ipojo.test.composite.service.Toto"
|
| 97 | optional="true" />
|
| 98 | <provides action="implement"
|
| 99 | specification="org.apache.felix.ipojo.test.composite.service.Tota">
|
| 100 | <delegation method="tataInt" policy="One" />
|
| 101 | <delegation method="toto1" policy="All" />
|
| 102 | </provides>
|
| 103 | </composite>
|
| 104 |
|
| 105 | <composite name="comp-5" architecture="true">
|
| 106 | <subservice action="instantiate"
|
| 107 | specification="org.apache.felix.ipojo.test.composite.service.Tata"
|
| 108 | aggregate="true" />
|
| 109 | <!-- <subservice action="import" specification="org.apache.felix.ipojo.test.composite.service.Toto" aggregate ="true" optional="true"/> -->
|
| 110 | <provides action="implement"
|
| 111 | specification="org.apache.felix.ipojo.test.composite.service.Tota">
|
| 112 | <delegation method="tataInt" policy="One" />
|
| 113 | <delegation method="toto1" policy="All" />
|
| 114 | </provides>
|
| 115 | </composite>
|
| 116 |
|
| 117 | <composite name="comp-6" architecture="true">
|
| 118 | <subservice action="instantiate"
|
| 119 | specification="org.apache.felix.ipojo.test.composite.service.Tata"
|
| 120 | aggregate="true" />
|
| 121 | <subservice action="import"
|
| 122 | specification="org.apache.felix.ipojo.test.composite.service.Toto"
|
| 123 | aggregate="true" optional="true" />
|
| 124 | <provides action="implement"
|
| 125 | specification="org.apache.felix.ipojo.test.composite.service.Toto">
|
| 126 | <delegation method="toto1" policy="All" />
|
| 127 | </provides>
|
| 128 | <provides action="implement"
|
| 129 | specification="org.apache.felix.ipojo.test.composite.service.Tata">
|
| 130 | <delegation method="tataInt" policy="One" />
|
| 131 | </provides>
|
| 132 | </composite>
|
| 133 |
|
| 134 | <composite name="comp-7" architecture="true">
|
| 135 | <instance component="tata" />
|
| 136 | <subservice action="import"
|
| 137 | specification="org.apache.felix.ipojo.test.composite.service.Toto" />
|
| 138 | <provides action="implement"
|
| 139 | specification="org.apache.felix.ipojo.test.composite.service.Tota" />
|
| 140 | </composite>
|
| 141 |
|
| 142 | <composite name="comp-8" architecture="true">
|
| 143 | <instance component="tata" />
|
| 144 | <instance component="totoglue" />
|
| 145 | <subservice action="import"
|
| 146 | specification="org.apache.felix.ipojo.test.composite.service.Toto" />
|
| 147 | <provides action="implement"
|
| 148 | specification="org.apache.felix.ipojo.test.composite.service.Tota" />
|
| 149 | </composite>
|
| 150 | </ipojo>
|