blob: ff00ef15846be65360ab555376b141d676c117c6 [file] [log] [blame]
Clement Escoffier3269efa2008-09-09 14:21:15 +00001<ipojo
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="org.apache.felix.ipojo http://people.apache.org/~clement/ipojo/schemas/core.xsd
4 org.apache.felix.composite http://people.apache.org/~clement/ipojo/schemas/composite.xsd"
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 Escoffiercdb4b172008-04-29 22:25:39 +00009 <subservice action="instantiate" specification="org.apache.felix.ipojo.test.composite.service.BarService"/>
Clement Escoffier3269efa2008-09-09 14:21:15 +000010 </comp:composite>
Clement Escoffiercdb4b172008-04-29 22:25:39 +000011
Clement Escoffier3269efa2008-09-09 14:21:15 +000012 <comp:composite name="composite.bar.2" architecture="true">
Clement Escoffiercdb4b172008-04-29 22:25:39 +000013 <subservice action="instantiate" specification="org.apache.felix.ipojo.test.composite.service.BarService" aggregate="true"/>
Clement Escoffier3269efa2008-09-09 14:21:15 +000014 </comp:composite>
Clement Escoffiercdb4b172008-04-29 22:25:39 +000015
Clement Escoffier3269efa2008-09-09 14:21:15 +000016 <comp:composite name="composite.bar.3" architecture="true">
Clement Escoffiercdb4b172008-04-29 22:25:39 +000017 <subservice action="instantiate" specification="org.apache.felix.ipojo.test.composite.service.BarService" optional="true"/>
Clement Escoffier3269efa2008-09-09 14:21:15 +000018 </comp:composite>
Clement Escoffiercdb4b172008-04-29 22:25:39 +000019
Clement Escoffier3269efa2008-09-09 14:21:15 +000020 <comp:composite name="composite.bar.4" architecture="true">
Clement Escoffiercdb4b172008-04-29 22:25:39 +000021 <subservice action="instantiate" specification="org.apache.felix.ipojo.test.composite.service.FooService" aggregate="true" optional="true"/>
Clement Escoffier3269efa2008-09-09 14:21:15 +000022 </comp:composite>
Clement Escoffiercdb4b172008-04-29 22:25:39 +000023
Clement Escoffier3269efa2008-09-09 14:21:15 +000024 <comp:composite name="composite.bar.5-accept" architecture="true">
Clement Escoffiercdb4b172008-04-29 22:25:39 +000025 <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 Escoffier3269efa2008-09-09 14:21:15 +000031 </comp:composite>
Clement Escoffiercdb4b172008-04-29 22:25:39 +000032
Clement Escoffier3269efa2008-09-09 14:21:15 +000033 <comp:composite name="composite.bar.5-refuse1" architecture="true">
Clement Escoffiercdb4b172008-04-29 22:25:39 +000034 <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 Escoffier3269efa2008-09-09 14:21:15 +000041 </comp:composite>
Clement Escoffiercdb4b172008-04-29 22:25:39 +000042
Clement Escoffier3269efa2008-09-09 14:21:15 +000043 <comp:composite name="composite.bar.5-refuse2" architecture="true">
Clement Escoffiercdb4b172008-04-29 22:25:39 +000044 <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 Escoffier3269efa2008-09-09 14:21:15 +000048 </comp:composite>
Clement Escoffiercdb4b172008-04-29 22:25:39 +000049
50 <!-- Instance of a specified component -->
Clement Escoffier3269efa2008-09-09 14:21:15 +000051 <comp:composite name="composite.inst.1" architecture="true">
Clement Escoffiercdb4b172008-04-29 22:25:39 +000052 <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 Escoffier3269efa2008-09-09 14:21:15 +000058 </comp:composite>
Clement Escoffiercdb4b172008-04-29 22:25:39 +000059
60</ipojo>