<!-- | |
~ 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" | |
xsi:schemaLocation="org.apache.felix.ipojo http://felix.apache.org/ipojo/schemas/SNAPSHOT/core.xsd | |
org.apache.felix.composite http://felix.apache.org/ipojo/schemas/SNAPSHOT/composite.xsd" | |
xmlns="org.apache.felix.ipojo" | |
xmlns:comp="org.apache.felix.ipojo.composite" | |
xmlns:cs="org.apache.felix.ipojo.test.composite.handler.CheckServiceHandler"> | |
<comp:composite name="composite.requires.1" architecture="true"> | |
<subservice action="import" | |
specification="org.apache.felix.ipojo.runtime.core.services.FooService" | |
scope="composite" /> | |
</comp:composite> | |
<comp:composite name="composite.requires.2" architecture="true"> | |
<subservice action="import" | |
specification="org.apache.felix.ipojo.runtime.core.services.FooService" | |
aggregate="true" scope="composite" /> | |
</comp:composite> | |
<comp:composite name="composite.requires.3" architecture="true"> | |
<subservice action="import" | |
specification="org.apache.felix.ipojo.runtime.core.services.FooService" | |
optional="true" scope="composite" /> | |
</comp:composite> | |
<comp:composite name="composite.requires.4" architecture="true"> | |
<subservice action="import" | |
specification="org.apache.felix.ipojo.runtime.core.services.FooService" | |
optional="true" aggregate="true" scope="composite" /> | |
</comp:composite> | |
<comp:composite name="composite.requires.5" architecture="true"> | |
<subservice action="import" | |
specification="org.apache.felix.ipojo.runtime.core.services.FooService" | |
filter="(&(int=2)(long=40))" scope="composite" /> | |
</comp:composite> | |
<comp:composite name="composite.export.1" architecture="true"> | |
<subservice action="import" | |
specification="org.apache.felix.ipojo.runtime.core.services.BazService" | |
aggregate="true" optional="true" filter="(!(instance.name=export))" | |
scope="composite" /> | |
<comp:provides action="export" | |
specification="org.apache.felix.ipojo.runtime.core.services.BazService" /> | |
</comp:composite> | |
<comp:composite name="composite.export.2" architecture="true"> | |
<subservice action="import" | |
specification="org.apache.felix.ipojo.runtime.core.services.BazService" | |
scope="composite" aggregate="true" optional="true" | |
filter="(!(instance.name=export))" /> | |
<comp:provides action="export" | |
specification="org.apache.felix.ipojo.runtime.core.services.BazService" | |
optional="true" /> | |
</comp:composite> | |
<comp:composite name="composite.export.3" architecture="true"> | |
<subservice action="import" | |
specification="org.apache.felix.ipojo.runtime.core.services.BazService" | |
scope="composite" aggregate="true" optional="true" | |
filter="(!(instance.name=export))" /> | |
<comp:provides action="export" | |
specification="org.apache.felix.ipojo.runtime.core.services.BazService" | |
aggregate="true" /> | |
</comp:composite> | |
<comp:composite name="composite.export.4" architecture="true"> | |
<subservice action="import" | |
specification="org.apache.felix.ipojo.runtime.core.services.BazService" | |
aggregate="true" optional="true" filter="(!(instance.name=export))" | |
scope="composite" /> | |
<comp:provides action="export" | |
specification="org.apache.felix.ipojo.runtime.core.services.BazService" | |
aggregate="true" optional="true" /> | |
</comp:composite> | |
<comp:composite name="composite.export.5" architecture="true"> | |
<subservice action="import" | |
specification="org.apache.felix.ipojo.runtime.core.services.BazService" | |
aggregate="true" optional="true" filter="(!(instance.name=export))" | |
scope="composite" /> | |
<comp:provides action="export" | |
specification="org.apache.felix.ipojo.runtime.core.services.BazService" | |
filter="(instance.name=foo1)" /> | |
</comp:composite> | |
</ipojo> |