| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| 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. |
| --> |
| <components xmlns:scr="http://www.osgi.org/xmlns/scr/v1.5.0"> |
| |
| <!-- |
| Components used in this test use the any service reference |
| --> |
| |
| <!-- valid bind target --> |
| <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.5.0" |
| name="any.service.bind" |
| immediate="true" |
| enabled="false"> |
| <implementation class="org.apache.felix.scr.integration.components.AnyServiceComponent"/> |
| <service> |
| <provide interface='org.apache.felix.scr.integration.components.AnyServiceComponent' /> |
| </service> |
| <reference |
| name="bind.ref" |
| target="(test.any.service=bind)" |
| interface="org.osgi.service.component.AnyService" |
| bind="setAnyService" |
| unbind="unsetAnyService" |
| /> |
| </scr:component> |
| |
| <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.5.0" |
| name="any.service.bind.map" |
| immediate="true" |
| enabled="false"> |
| <implementation class="org.apache.felix.scr.integration.components.AnyServiceComponent"/> |
| <service> |
| <provide interface='org.apache.felix.scr.integration.components.AnyServiceComponent' /> |
| </service> |
| <reference |
| name="bind.ref" |
| target="(test.any.service=bind)" |
| interface="org.osgi.service.component.AnyService" |
| bind="setAnyServiceMap" |
| unbind="unsetAnyServiceMap" |
| /> |
| </scr:component> |
| |
| <!-- invalid bind target --> |
| <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.5.0" |
| name="any.service.bind.invalid" |
| immediate="true" |
| enabled="false"> |
| <implementation class="org.apache.felix.scr.integration.components.AnyServiceComponent"/> |
| <service> |
| <provide interface='org.apache.felix.scr.integration.components.AnyServiceComponent' /> |
| </service> |
| <reference |
| name="bind.ref" |
| target="(test.any.service=bind)" |
| interface="org.osgi.service.component.AnyService" |
| bind="setAnyServiceInvalid" |
| unbind="unsetAnyServiceInvalid" |
| /> |
| </scr:component> |
| |
| <!-- constructor target object --> |
| <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.5.0" |
| name="any.service.constructor.object" |
| immediate="true" |
| enabled="false" |
| init="1"> |
| <implementation class="org.apache.felix.scr.integration.components.AnyServiceComponent"/> |
| <service> |
| <provide interface='org.apache.felix.scr.integration.components.AnyServiceComponent' /> |
| </service> |
| <reference |
| name="constructor.ref" |
| target="(test.any.service=constructor)" |
| interface="org.osgi.service.component.AnyService" |
| parameter="0" |
| /> |
| </scr:component> |
| |
| <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.5.0" |
| name="any.service.constructor.map" |
| immediate="true" |
| enabled="false" |
| init="1"> |
| <implementation class="org.apache.felix.scr.integration.components.AnyServiceComponentMap"/> |
| <service> |
| <provide interface='org.apache.felix.scr.integration.components.AnyServiceComponent' /> |
| </service> |
| <reference |
| name="constructor.ref" |
| target="(test.any.service=constructor)" |
| interface="org.osgi.service.component.AnyService" |
| parameter="0" |
| /> |
| </scr:component> |
| |
| <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.5.0" |
| name="any.service.constructor.list" |
| immediate="true" |
| enabled="false" |
| init="1"> |
| <implementation class="org.apache.felix.scr.integration.components.AnyServiceComponentList"/> |
| <service> |
| <provide interface='org.apache.felix.scr.integration.components.AnyServiceComponent' /> |
| </service> |
| <reference |
| name="constructor.ref" |
| target="(test.any.service=constructor)" |
| interface="org.osgi.service.component.AnyService" |
| parameter="0" |
| cardinality="1..n" |
| /> |
| </scr:component> |
| |
| <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.5.0" |
| name="any.service.constructor.invalid" |
| immediate="true" |
| enabled="false" |
| init="1"> |
| <implementation class="org.apache.felix.scr.integration.components.AnyServiceComponentInvalid"/> |
| <service> |
| <provide interface='org.apache.felix.scr.integration.components.AnyServiceComponent' /> |
| </service> |
| <reference |
| name="constructor.ref" |
| target="(test.any.service=constructor)" |
| interface="org.osgi.service.component.AnyService" |
| parameter="0" |
| /> |
| </scr:component> |
| |
| <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.5.0" |
| name="any.service.field" |
| immediate="true" |
| enabled="false"> |
| <implementation class="org.apache.felix.scr.integration.components.AnyServiceComponent"/> |
| <service> |
| <provide interface='org.apache.felix.scr.integration.components.AnyServiceComponent' /> |
| </service> |
| <reference |
| name="field.ref" |
| target="(test.any.service=field)" |
| interface="org.osgi.service.component.AnyService" |
| field="fieldInject" |
| /> |
| </scr:component> |
| |
| <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.5.0" |
| name="any.service.field.map" |
| immediate="true" |
| enabled="false"> |
| <implementation class="org.apache.felix.scr.integration.components.AnyServiceComponent"/> |
| <service> |
| <provide interface='org.apache.felix.scr.integration.components.AnyServiceComponent' /> |
| </service> |
| <reference |
| name="field.ref" |
| target="(test.any.service=field)" |
| interface="org.osgi.service.component.AnyService" |
| field="fieldInjectMap" |
| /> |
| </scr:component> |
| <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.5.0" |
| name="any.service.field.list" |
| immediate="true" |
| enabled="false"> |
| <implementation class="org.apache.felix.scr.integration.components.AnyServiceComponent"/> |
| <service> |
| <provide interface='org.apache.felix.scr.integration.components.AnyServiceComponent' /> |
| </service> |
| <reference |
| name="field.ref" |
| target="(test.any.service=field)" |
| interface="org.osgi.service.component.AnyService" |
| field="fieldInjectList" |
| cardinality="1..n" |
| /> |
| </scr:component> |
| <scr:component xmlns:scr="http://www.osgi.org/xmlns/scr/v1.5.0" |
| name="any.service.field.invalid" |
| immediate="true" |
| enabled="false"> |
| <implementation class="org.apache.felix.scr.integration.components.AnyServiceComponent"/> |
| <service> |
| <provide interface='org.apache.felix.scr.integration.components.AnyServiceComponent' /> |
| </service> |
| <reference |
| name="field.ref" |
| target="(test.any.service=field)" |
| interface="org.osgi.service.component.AnyService" |
| field="fieldInjectInvalid" |
| /> |
| </scr:component> |
| </components> |