Clement Escoffier | e50ede5 | 2008-03-28 15:33:36 +0000 | [diff] [blame] | 1 | <ipojo xmlns:cs="org.apache.felix.ipojo.test.composite.handler.CheckServiceHandler">
|
Clement Escoffier | 832ab7a | 2008-04-25 16:49:43 +0000 | [diff] [blame] | 2 | <!-- Used component type -->
|
| 3 | <component
|
| 4 | className="org.apache.felix.ipojo.test.composite.component.FooProviderType1"
|
| 5 | factory="COMPO-FooProviderType-1" architecture="true">
|
| 6 | <provides />
|
| 7 | </component>
|
| 8 | <component
|
| 9 | className="org.apache.felix.ipojo.test.composite.component.FooProviderType1"
|
| 10 | name="COMPO-FooProviderType-2" architecture="true">
|
| 11 | <provides>
|
| 12 | <property name="int" type="int" value="2" />
|
| 13 | <property name="long" type="long" value="40" />
|
| 14 | <property name="string" type="java.lang.String" value="foo" />
|
| 15 | <property name="strAProp" type="java.lang.String[]"
|
| 16 | value="{foo, bar}" />
|
| 17 | <property name="intAProp" type="int[]" value="{1,2,3}" />
|
| 18 | </provides>
|
| 19 | </component>
|
| 20 | <component
|
| 21 | className="org.apache.felix.ipojo.test.composite.component.FooProviderTypeDyn"
|
| 22 | name="COMPO-FooProviderType-Dyn" architecture="true">
|
| 23 | <provides>
|
| 24 | <property name="int" field="intProp" value="2" />
|
| 25 | <property name="boolean" field="boolProp" value="false" />
|
| 26 | <property name="string" field="strProp" value="foo" />
|
| 27 | <property name="strAProp" field="strAProp"
|
| 28 | value="{foo, bar}" />
|
| 29 | <property name="intAProp" field="intAProp" value="{ 1,2,3}" />
|
| 30 | </provides>
|
| 31 | </component>
|
| 32 | <component
|
| 33 | className="org.apache.felix.ipojo.test.composite.component.FooProviderTypeDyn2"
|
| 34 | name="COMPO-FooProviderType-Dyn2" factory="true" architecture="true">
|
| 35 | <provides>
|
| 36 | <property name="int" field="intProp" value="4" />
|
| 37 | <property name="boolean" field="boolProp" />
|
| 38 | <property name="string" field="strProp" />
|
| 39 | <property name="strAProp" field="strAProp" />
|
| 40 | <property name="intAProp" field="intAProp"
|
| 41 | value="{1, 2,3 }" />
|
| 42 | </provides>
|
| 43 | </component>
|
| 44 | <component
|
| 45 | className="org.apache.felix.ipojo.test.composite.component.CheckServiceProvider"
|
| 46 | factory="COMPO-SimpleCheckServiceProvider" architecture="true">
|
| 47 | <requires field="fs" />
|
| 48 | <provides />
|
| 49 | </component>
|
| 50 | <component
|
| 51 | className="org.apache.felix.ipojo.test.composite.component.FooBarProviderType1"
|
| 52 | factory="COMPO-FooBarProviderType-1" architecture="true">
|
| 53 | <provides />
|
| 54 | </component>
|
| 55 | <component
|
| 56 | className="org.apache.felix.ipojo.test.composite.component.FooBarProviderType1"
|
| 57 | factory="COMPO-FooBarProviderType-2" architecture="true">
|
| 58 | <provides
|
| 59 | interface="{org.apache.felix.ipojo.test.composite.service.FooService, org.apache.felix.ipojo.test.composite.service.BarService }" />
|
| 60 | </component>
|
| 61 | <component
|
| 62 | className="org.apache.felix.ipojo.test.composite.component.FooBarProviderType1"
|
| 63 | factory="COMPO-FooBarProviderType-3" architecture="true">
|
| 64 | <provides
|
| 65 | interface="{org.apache.felix.ipojo.test.composite.service.FooService}">
|
| 66 | <property name="baz" type="java.lang.String" value="foo" />
|
| 67 | </provides>
|
| 68 | <provides
|
| 69 | interface="{org.apache.felix.ipojo.test.composite.service.BarService}">
|
| 70 | <property name="baz" type="java.lang.String" value="bar" />
|
| 71 | </provides>
|
| 72 | </component>
|
| 73 |
|
Clement Escoffier | cdb4b17 | 2008-04-29 22:25:39 +0000 | [diff] [blame] | 74 | <component
|
| 75 | className="org.apache.felix.ipojo.test.composite.component.BazProviderType1"
|
| 76 | factory="BazProviderType" scope="composite">
|
| 77 | <provides />
|
Clement Escoffier | e50ede5 | 2008-03-28 15:33:36 +0000 | [diff] [blame] | 78 | </component>
|
| 79 |
|
Clement Escoffier | cdb4b17 | 2008-04-29 22:25:39 +0000 | [diff] [blame] | 80 | <component
|
| 81 | classname="org.apache.felix.ipojo.test.composite.component.TataProvider"
|
| 82 | factory="tata">
|
| 83 | <provides />
|
| 84 | </component>
|
| 85 |
|
| 86 | <component
|
| 87 | classname="org.apache.felix.ipojo.test.composite.component.TotoProvider"
|
| 88 | factory="toto" architecture="true">
|
| 89 | <provides />
|
| 90 | </component>
|
| 91 |
|
| 92 | <component
|
| 93 | classname="org.apache.felix.ipojo.test.composite.component.TotoProviderGlue"
|
| 94 | factory="totoglue">
|
| 95 | <requires field="m_toto" scope="composite" />
|
| 96 | </component>
|
Clement Escoffier | e50ede5 | 2008-03-28 15:33:36 +0000 | [diff] [blame] | 97 |
|
Clement Escoffier | cdb4b17 | 2008-04-29 22:25:39 +0000 | [diff] [blame] | 98 | <!-- Composite -->
|
| 99 | <composite name="composite.empty" factory="true" architecture="true">
|
Clement Escoffier | e50ede5 | 2008-03-28 15:33:36 +0000 | [diff] [blame] | 100 | </composite>
|
| 101 |
|
| 102 | <component className="org.apache.felix.ipojo.test.composite.component.Baz2CheckProvider" factory="Baz2CheckProvider" architecture="true">
|
| 103 | <requires field="fs" scope="composite"/>
|
| 104 | <provides/>
|
| 105 | </component>
|
Clement Escoffier | e50ede5 | 2008-03-28 15:33:36 +0000 | [diff] [blame] | 106 |
|
| 107 | </ipojo>
|