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 | xmlns:cs="org.apache.felix.ipojo.test.composite.handler.CheckServiceHandler">
|
| 8 | <comp:composite name="composite.bar.1" architecture="true">
|
Clement Escoffier | cdb4b17 | 2008-04-29 22:25:39 +0000 | [diff] [blame] | 9 | <subservice action="instantiate" specification="org.apache.felix.ipojo.test.composite.service.BarService"/>
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 10 | </comp:composite>
|
Clement Escoffier | cdb4b17 | 2008-04-29 22:25:39 +0000 | [diff] [blame] | 11 |
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 12 | <comp:composite name="composite.bar.2" architecture="true">
|
Clement Escoffier | cdb4b17 | 2008-04-29 22:25:39 +0000 | [diff] [blame] | 13 | <subservice action="instantiate" specification="org.apache.felix.ipojo.test.composite.service.BarService" aggregate="true"/>
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 14 | </comp:composite>
|
Clement Escoffier | cdb4b17 | 2008-04-29 22:25:39 +0000 | [diff] [blame] | 15 |
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 16 | <comp:composite name="composite.bar.3" architecture="true">
|
Clement Escoffier | cdb4b17 | 2008-04-29 22:25:39 +0000 | [diff] [blame] | 17 | <subservice action="instantiate" specification="org.apache.felix.ipojo.test.composite.service.BarService" optional="true"/>
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 18 | </comp:composite>
|
Clement Escoffier | cdb4b17 | 2008-04-29 22:25:39 +0000 | [diff] [blame] | 19 |
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 20 | <comp:composite name="composite.bar.4" architecture="true">
|
Clement Escoffier | cdb4b17 | 2008-04-29 22:25:39 +0000 | [diff] [blame] | 21 | <subservice action="instantiate" specification="org.apache.felix.ipojo.test.composite.service.FooService" aggregate="true" optional="true"/>
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 22 | </comp:composite>
|
Clement Escoffier | cdb4b17 | 2008-04-29 22:25:39 +0000 | [diff] [blame] | 23 |
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 24 | <comp:composite name="composite.bar.5-accept" architecture="true">
|
Clement Escoffier | cdb4b17 | 2008-04-29 22:25:39 +0000 | [diff] [blame] | 25 | <subservice action="instantiate" specification="org.apache.felix.ipojo.test.composite.service.FooService">
|
| 26 | <property name="boolean" value="true"/>
|
| 27 | <property name="string" value="foo"/>
|
| 28 | <property name="strAprop" value="{foo, bar, baz}"/>
|
| 29 | <property name="int" value="5"/>
|
| 30 | </subservice>
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 31 | </comp:composite>
|
Clement Escoffier | cdb4b17 | 2008-04-29 22:25:39 +0000 | [diff] [blame] | 32 |
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 33 | <comp:composite name="composite.bar.5-refuse1" architecture="true">
|
Clement Escoffier | cdb4b17 | 2008-04-29 22:25:39 +0000 | [diff] [blame] | 34 | <subservice action="instantiate" specification="org.apache.felix.ipojo.test.composite.service.BarService">
|
| 35 | <property name="foo" value="bar"/>
|
| 36 | <property name="boolean" value="true"/>
|
| 37 | <property name="string" value="foo"/>
|
| 38 | <property name="strAprop" value="{foo, bar, baz}"/>
|
| 39 | <property name="int" value="5"/>
|
| 40 | </subservice>
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 41 | </comp:composite>
|
Clement Escoffier | cdb4b17 | 2008-04-29 22:25:39 +0000 | [diff] [blame] | 42 |
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 43 | <comp:composite name="composite.bar.5-refuse2" architecture="true">
|
Clement Escoffier | cdb4b17 | 2008-04-29 22:25:39 +0000 | [diff] [blame] | 44 | <subservice action="instantiate" specification="org.apache.felix.ipojo.test.composite.service.BarService">
|
| 45 | <property name="string" value="foo"/>
|
| 46 | <property name="strAprop" value="{foo, bar, baz}"/>
|
| 47 | </subservice>
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 48 | </comp:composite>
|
Clement Escoffier | cdb4b17 | 2008-04-29 22:25:39 +0000 | [diff] [blame] | 49 |
|
| 50 | <!-- Instance of a specified component -->
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 51 | <comp:composite name="composite.inst.1" architecture="true">
|
Clement Escoffier | cdb4b17 | 2008-04-29 22:25:39 +0000 | [diff] [blame] | 52 | <instance component="COMPO-FooProviderType-1" /> <!-- name="FooProv" -->
|
| 53 | <instance component="COMPO-FooProviderType-Dyn2">
|
| 54 | <property name="boolean" value="true"/>
|
| 55 | <property name="string" value="foo"/>
|
| 56 | <property name="strAProp" value="{a,b,c}"/>
|
| 57 | </instance>
|
Clement Escoffier | 3269efa | 2008-09-09 14:21:15 +0000 | [diff] [blame] | 58 | </comp:composite>
|
Clement Escoffier | 8350751 | 2008-10-13 07:33:03 +0000 | [diff] [blame] | 59 |
|
| 60 | <!-- Scope test -->
|
| 61 | <component name="SCOPE-provider" classname="org.apache.felix.ipojo.test.instance.ServiceProvider">
|
| 62 | <provides/>
|
| 63 | </component>
|
| 64 | <component name="SCOPE-cons" classname="org.apache.felix.ipojo.test.instance.ServiceConsumer">
|
| 65 | <provides/>
|
| 66 | <requires field="service"/>
|
| 67 | </component>
|
| 68 | <comp:composite name="SCOPE-scope">
|
| 69 | <instance component="SCOPE-provider"/>
|
| 70 | <instance component="SCOPE-cons"/>
|
| 71 | </comp:composite>
|
| 72 | <comp:composite name="SCOPE-badscope">
|
| 73 | <instance component="SCOPE-cons"/>
|
| 74 | </comp:composite>
|
Clement Escoffier | cdb4b17 | 2008-04-29 22:25:39 +0000 | [diff] [blame] | 75 | </ipojo>
|