Clement Escoffier | ed4ca02 | 2013-03-13 15:27:20 +0000 | [diff] [blame] | 1 | <!--
|
| 2 | ~ Licensed to the Apache Software Foundation (ASF) under one
|
| 3 | ~ or more contributor license agreements. See the NOTICE file
|
| 4 | ~ distributed with this work for additional information
|
| 5 | ~ regarding copyright ownership. The ASF licenses this file
|
| 6 | ~ to you under the Apache License, Version 2.0 (the
|
| 7 | ~ "License"); you may not use this file except in compliance
|
| 8 | ~ with the License. You may obtain a copy of the License at
|
| 9 | ~
|
| 10 | ~ http://www.apache.org/licenses/LICENSE-2.0
|
| 11 | ~
|
| 12 | ~ Unless required by applicable law or agreed to in writing,
|
| 13 | ~ software distributed under the License is distributed on an
|
| 14 | ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
| 15 | ~ KIND, either express or implied. See the License for the
|
| 16 | ~ specific language governing permissions and limitations
|
| 17 | ~ under the License.
|
| 18 | -->
|
| 19 |
|
Clement Escoffier | 33c0383 | 2013-02-26 13:02:34 +0000 | [diff] [blame] | 20 | <ipojo
|
| 21 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
| 22 | xsi:schemaLocation="org.apache.felix.ipojo http://felix.apache.org/ipojo/schemas/SNAPSHOT/core.xsd
|
| 23 | org.apache.felix.composite http://felix.apache.org/ipojo/schemas/SNAPSHOT/composite.xsd"
|
| 24 | xmlns="org.apache.felix.ipojo"
|
| 25 | xmlns:comp="org.apache.felix.ipojo.composite">
|
| 26 | <!-- Used component type -->
|
| 27 | <component
|
| 28 | classname="org.apache.felix.ipojo.runtime.core.components.FooProviderType1"
|
| 29 | name="COMPO-FooProviderType-1" architecture="true">
|
| 30 | <provides />
|
| 31 | </component>
|
| 32 | <component
|
| 33 | classname="org.apache.felix.ipojo.runtime.core.components.FooProviderType1"
|
| 34 | name="COMPO-FooProviderType-2" architecture="true">
|
| 35 | <provides>
|
| 36 | <property name="int" type="int" value="2" />
|
| 37 | <property name="long" type="long" value="40" />
|
| 38 | <property name="string" type="java.lang.String" value="foo" />
|
| 39 | <property name="strAProp" type="java.lang.String[]"
|
| 40 | value="{foo, bar}" />
|
| 41 | <property name="intAProp" type="int[]" value="{1,2,3}" />
|
| 42 | </provides>
|
| 43 | </component>
|
| 44 | <component
|
| 45 | classname="org.apache.felix.ipojo.runtime.core.components.FooProviderTypeDyn"
|
| 46 | name="COMPO-FooProviderType-Dyn" architecture="true">
|
| 47 | <provides>
|
| 48 | <property name="int" field="intProp" value="2" />
|
| 49 | <property name="boolean" field="boolProp" value="false" />
|
| 50 | <property name="string" field="strProp" value="foo" />
|
| 51 | <property name="strAProp" field="strAProp"
|
| 52 | value="{foo, bar}" />
|
| 53 | <property name="intAProp" field="intAProp" value="{ 1,2,3}" />
|
| 54 | </provides>
|
| 55 | </component>
|
| 56 | <component
|
| 57 | classname="org.apache.felix.ipojo.runtime.core.components.FooProviderTypeDyn2"
|
| 58 | name="COMPO-FooProviderType-Dyn2" architecture="true">
|
| 59 | <provides>
|
| 60 | <property name="int" field="intProp" value="4" />
|
| 61 | <property name="boolean" field="boolProp" />
|
| 62 | <property name="string" field="strProp" />
|
| 63 | <property name="strAProp" field="strAProp" />
|
| 64 | <property name="intAProp" field="intAProp"
|
| 65 | value="{1, 2,3 }" />
|
| 66 | </provides>
|
| 67 | </component>
|
| 68 | <component
|
| 69 | classname="org.apache.felix.ipojo.runtime.core.components.CheckServiceProvider"
|
| 70 | name="COMPO-SimpleCheckServiceProvider" architecture="true">
|
| 71 | <requires field="fs" />
|
| 72 | <provides />
|
| 73 | </component>
|
| 74 | <component
|
| 75 | classname="org.apache.felix.ipojo.runtime.core.components.FooBarProviderType1"
|
| 76 | name="COMPO-FooBarProviderType-1" architecture="true">
|
| 77 | <provides />
|
| 78 | </component>
|
| 79 | <component
|
| 80 | classname="org.apache.felix.ipojo.runtime.core.components.FooBarProviderType1"
|
| 81 | name="COMPO-FooBarProviderType-2" architecture="true">
|
| 82 | <provides
|
| 83 | specifications="{org.apache.felix.ipojo.runtime.core.services.FooService, org.apache.felix.ipojo.runtime.core.services.BarService }" />
|
| 84 | </component>
|
| 85 | <component
|
| 86 | classname="org.apache.felix.ipojo.runtime.core.components.FooBarProviderType1"
|
| 87 | name="COMPO-FooBarProviderType-3" architecture="true">
|
| 88 | <provides
|
| 89 | specifications="{org.apache.felix.ipojo.runtime.core.services.FooService}">
|
| 90 | <property name="baz" type="java.lang.String" value="foo" />
|
| 91 | </provides>
|
| 92 | <provides
|
| 93 | specifications="{org.apache.felix.ipojo.runtime.core.services.BarService}">
|
| 94 | <property name="baz" type="java.lang.String" value="bar" />
|
| 95 | </provides>
|
| 96 | </component>
|
| 97 |
|
| 98 | <component
|
| 99 | classname="org.apache.felix.ipojo.runtime.core.components.BazProviderType1"
|
| 100 | name="BazProviderType">
|
| 101 | <provides />
|
| 102 | </component>
|
| 103 |
|
| 104 | <component
|
| 105 | classname="org.apache.felix.ipojo.runtime.core.components.TataProvider"
|
| 106 | name="tata">
|
| 107 | <provides />
|
| 108 | </component>
|
| 109 |
|
| 110 | <component
|
| 111 | classname="org.apache.felix.ipojo.runtime.core.components.TotoProvider"
|
| 112 | name="toto" architecture="true">
|
| 113 | <provides />
|
| 114 | </component>
|
| 115 |
|
| 116 | <component
|
| 117 | classname="org.apache.felix.ipojo.runtime.core.components.TotoProviderGlue"
|
| 118 | name="totoglue">
|
| 119 | <requires field="m_toto" scope="composite" />
|
| 120 | </component>
|
| 121 |
|
| 122 | <!-- Composite -->
|
| 123 | <comp:composite name="composite.empty" architecture="true">
|
| 124 | </comp:composite>
|
| 125 |
|
| 126 | <component classname="org.apache.felix.ipojo.runtime.core.components.Baz2CheckProvider" name="Baz2CheckProvider" architecture="true">
|
| 127 | <requires field="fs" scope="composite"/>
|
| 128 | <provides/>
|
| 129 | </component>
|
| 130 |
|
| 131 | </ipojo>
|