blob: 8c10d12d9a5759bd1d6161b553123ebbfb32a601 [file] [log] [blame]
<!--
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
-->
<ipojo
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="org.apache.felix.ipojo">
<component classname="org.apache.felix.ipojo.runtime.test.dependencies.timeout.components.CheckServiceProvider"
name="CheckServiceProviderTimeout">
<requires field="fs" optional="true" timeout="300"/>
<provides/>
</component>
<component classname="org.apache.felix.ipojo.runtime.test.dependencies.timeout.components.FooProvider"
name="FooProvider">
<provides/>
</component>
<!-- Dependencies using nullables (scalar dependency only) -->
<component classname="org.apache.felix.ipojo.runtime.test.dependencies.timeout.components.CheckServiceProvider"
name="NullableCheckServiceProvider">
<requires field="fs" optional="true"/>
<provides/>
</component>
<component classname="org.apache.felix.ipojo.runtime.test.dependencies.timeout.components.CheckServiceProvider"
name="NullableCheckServiceProviderTimeout">
<requires field="fs" optional="true" timeout="300"/>
<provides/>
</component>
<!-- Dependencies using default implementation (scalar dependency only)-->
<component classname="org.apache.felix.ipojo.runtime.test.dependencies.timeout.components.CheckServiceProvider"
name="DICheckServiceProvider">
<requires field="fs" optional="true"
default-implementation="org.apache.felix.ipojo.runtime.test.dependencies.timeout.components.NullableFooProvider"/>
<provides/>
</component>
<component classname="org.apache.felix.ipojo.runtime.test.dependencies.timeout.components.CheckServiceProvider"
name="DICheckServiceProviderTimeout">
<requires field="fs" optional="true" timeout="300"
default-implementation="org.apache.felix.ipojo.runtime.test.dependencies.timeout.components.NullableFooProvider"/>
<provides/>
</component>
<!-- Dependencies using null (nullable = false, scalar dependency only) -->
<component classname="org.apache.felix.ipojo.runtime.test.dependencies.timeout.components.CheckServiceProvider"
name="NullCheckServiceProvider">
<requires field="fs" optional="true" nullable="false"/>
<provides/>
</component>
<component classname="org.apache.felix.ipojo.runtime.test.dependencies.timeout.components.CheckServiceProvider"
name="NullCheckServiceProviderTimeout">
<requires field="fs" optional="true" timeout="300" nullable="false"/>
<provides/>
</component>
<!-- Dependencies using empty arrays or collections (aggregate dependency only), it's the default policy. -->
<component
classname="org.apache.felix.ipojo.runtime.test.dependencies.timeout.components.MultipleCheckServiceProvider"
name="EmptyMultipleCheckServiceProvider">
<requires field="fs" optional="true"/>
<provides/>
</component>
<component
classname="org.apache.felix.ipojo.runtime.test.dependencies.timeout.components.CollectionCheckServiceProvider"
name="EmptyColCheckServiceProvider">
<requires field="fs" optional="true"
specification="org.apache.felix.ipojo.runtime.test.dependencies.timeout.services.FooService"/>
<provides/>
</component>
<component
classname="org.apache.felix.ipojo.runtime.test.dependencies.timeout.components.MultipleCheckServiceProvider"
name="EmptyMultipleCheckServiceProviderTimeout">
<requires field="fs" optional="true" timeout="300"/>
<provides/>
</component>
<component
classname="org.apache.felix.ipojo.runtime.test.dependencies.timeout.components.CollectionCheckServiceProvider"
name="EmptyColCheckServiceProviderTimeout">
<requires field="fs" optional="true" timeout="300"
specification="org.apache.felix.ipojo.runtime.test.dependencies.timeout.services.FooService"/>
<provides/>
</component>
<!-- Dependencies using exceptions (aggregate and scalar) -->
<component classname="org.apache.felix.ipojo.runtime.test.dependencies.timeout.components.CheckServiceProvider"
name="ExceptionCheckServiceProvider">
<requires field="fs" optional="true" exception="java.lang.RuntimeException"/>
<provides/>
</component>
<component classname="org.apache.felix.ipojo.runtime.test.dependencies.timeout.components.CheckServiceProvider"
name="ExceptionCheckServiceProviderTimeout">
<requires field="fs" optional="true" timeout="300" exception="java.lang.RuntimeException"/>
<provides/>
</component>
<component
classname="org.apache.felix.ipojo.runtime.test.dependencies.timeout.components.CollectionCheckServiceProvider"
name="ExceptionColCheckServiceProvider">
<requires field="fs" optional="true"
exception="java.lang.RuntimeException"
specification="org.apache.felix.ipojo.runtime.test.dependencies.timeout.services.FooService"/>
<provides/>
</component>
<component
classname="org.apache.felix.ipojo.runtime.test.dependencies.timeout.components.CollectionCheckServiceProvider"
name="ExceptionColCheckServiceProviderTimeout">
<requires field="fs" optional="true"
exception="java.lang.RuntimeException"
timeout="300"
specification="org.apache.felix.ipojo.runtime.test.dependencies.timeout.services.FooService"/>
<provides/>
</component>
</ipojo>