<ipojo | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="org.apache.felix.ipojo http://people.apache.org/~clement/ipojo/schemas/core.xsd | |
org.apache.felix.composite http://people.apache.org/~clement/ipojo/schemas/composite.xsd" | |
xmlns="org.apache.felix.ipojo" | |
xmlns:comp="org.apache.felix.ipojo.composite"> | |
<comp:composite name="composite.test.3" architecture="true"> | |
<subservice action="instantiate" | |
specification="org.apache.felix.ipojo.test.composite.service.BazService" | |
aggregate="true" filter="(factory.name=BazProviderType)" /> | |
<comp:provides action="export" | |
specification="org.apache.felix.ipojo.test.composite.service.BazService" /> | |
</comp:composite> | |
<comp:composite name="composite.test.2" architecture="true"> | |
<subservice action="instantiate" | |
specification="org.apache.felix.ipojo.test.composite.service.CheckService" | |
filter="(factory.name=Baz2CheckProvider)" /> | |
<comp:provides action="export" | |
specification="org.apache.felix.ipojo.test.composite.service.CheckService" /> | |
<subservice action="import" | |
specification="org.apache.felix.ipojo.test.composite.service.BazService" | |
scope="composite" /> | |
</comp:composite> | |
<comp:composite name="composite.test.1" architecture="true"> | |
<subservice action="instantiate" | |
specification="org.apache.felix.ipojo.test.composite.service.BazService" | |
filter="(factory.name=composite.test.3)" /> | |
<subservice action="instantiate" | |
specification="org.apache.felix.ipojo.test.composite.service.CheckService" | |
filter="(factory.name=composite.test.2)" /> | |
<comp:provides action="export" | |
specification="org.apache.felix.ipojo.test.composite.service.CheckService" /> | |
</comp:composite> | |
<comp:composite name="composite.instantiator" architecture="true"> | |
<subservice action="instantiate" | |
specification="org.apache.felix.ipojo.test.composite.service.BazService" | |
filter="(factory.name=composite.test.3)" /> | |
<subservice action="instantiate" | |
specification="org.apache.felix.ipojo.test.composite.service.FooService" /> | |
<comp:provides action="export" | |
specification="org.apache.felix.ipojo.test.composite.service.BazService" /> | |
<comp:provides action="export" | |
specification="org.apache.felix.ipojo.test.composite.service.FooService" /> | |
</comp:composite> | |
<!-- Test composition provides --> | |
<comp:composite name="comp-0" architecture="true"> | |
<subservice action="instantiate" | |
specification="org.apache.felix.ipojo.test.composite.service.Tata" /> | |
<subservice action="import" | |
specification="org.apache.felix.ipojo.test.composite.service.Toto" /> | |
<comp:provides action="implement" | |
specification="org.apache.felix.ipojo.test.composite.service.Tota" /> | |
</comp:composite> | |
<comp:composite name="comp-1" architecture="true"> | |
<subservice action="instantiate" | |
specification="org.apache.felix.ipojo.test.composite.service.Tata" /> | |
<subservice action="import" | |
specification="org.apache.felix.ipojo.test.composite.service.Toto" /> | |
<comp:provides action="implement" | |
specification="org.apache.felix.ipojo.test.composite.service.Tota"> | |
<delegation method="tataInt" policy="One" /> | |
<delegation method="toto1" policy="All" /> | |
</comp:provides> | |
</comp:composite> | |
<comp:composite name="comp-2" architecture="true"> | |
<subservice action="instantiate" | |
specification="org.apache.felix.ipojo.test.composite.service.Tata" | |
aggregate="true" /> | |
<subservice action="import" | |
specification="org.apache.felix.ipojo.test.composite.service.Toto" | |
aggregate="true" /> | |
<comp:provides action="implement" | |
specification="org.apache.felix.ipojo.test.composite.service.Tota"> | |
<delegation method="tataInt" policy="One" /> | |
<delegation method="toto1" policy="All" /> | |
</comp:provides> | |
</comp:composite> | |
<comp:composite name="comp-3" architecture="true"> | |
<subservice action="instantiate" | |
specification="org.apache.felix.ipojo.test.composite.service.Tata" /> | |
<subservice action="import" | |
specification="org.apache.felix.ipojo.test.composite.service.Toto" | |
optional="true" /> | |
<comp:provides action="implement" | |
specification="org.apache.felix.ipojo.test.composite.service.Tota"> | |
</comp:provides> | |
</comp:composite> | |
<comp:composite name="comp-4" architecture="true"> | |
<subservice action="instantiate" | |
specification="org.apache.felix.ipojo.test.composite.service.Tata" /> | |
<subservice action="import" | |
specification="org.apache.felix.ipojo.test.composite.service.Toto" | |
optional="true" /> | |
<comp:provides action="implement" | |
specification="org.apache.felix.ipojo.test.composite.service.Tota"> | |
<delegation method="tataInt" policy="One" /> | |
<delegation method="toto1" policy="All" /> | |
</comp:provides> | |
</comp:composite> | |
<comp:composite name="comp-5" architecture="true"> | |
<subservice action="instantiate" | |
specification="org.apache.felix.ipojo.test.composite.service.Tata" | |
aggregate="true" /> | |
<!-- <subservice action="import" specification="org.apache.felix.ipojo.test.comp:composite.service.Toto" aggregate ="true" optional="true"/> --> | |
<comp:provides action="implement" | |
specification="org.apache.felix.ipojo.test.composite.service.Tota"> | |
<delegation method="tataInt" policy="One" /> | |
<delegation method="toto1" policy="All" /> | |
</comp:provides> | |
</comp:composite> | |
<comp:composite name="comp-6" architecture="true"> | |
<subservice action="instantiate" | |
specification="org.apache.felix.ipojo.test.composite.service.Tata" | |
aggregate="true" /> | |
<subservice action="import" | |
specification="org.apache.felix.ipojo.test.composite.service.Toto" | |
aggregate="true" optional="true" /> | |
<comp:provides action="implement" | |
specification="org.apache.felix.ipojo.test.composite.service.Toto"> | |
<delegation method="toto1" policy="All" /> | |
</comp:provides> | |
<comp:provides action="implement" | |
specification="org.apache.felix.ipojo.test.composite.service.Tata"> | |
<delegation method="tataInt" policy="One" /> | |
</comp:provides> | |
</comp:composite> | |
<comp:composite name="comp-7" architecture="true"> | |
<instance component="tata" /> | |
<subservice action="import" | |
specification="org.apache.felix.ipojo.test.composite.service.Toto" /> | |
<comp:provides action="implement" | |
specification="org.apache.felix.ipojo.test.composite.service.Tota" /> | |
</comp:composite> | |
<comp:composite name="comp-8" architecture="true"> | |
<instance component="tata" /> | |
<instance component="totoglue" /> | |
<subservice action="import" | |
specification="org.apache.felix.ipojo.test.composite.service.Toto" /> | |
<comp:provides action="implement" | |
specification="org.apache.felix.ipojo.test.composite.service.Tota" /> | |
</comp:composite> | |
</ipojo> |