blob: 0f1f66ffbc87dc6647eca6877d312770a1cbe4a5 [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"
xsi:schemaLocation="org.apache.felix.ipojo http://felix.apache.org/ipojo/schemas/SNAPSHOT/core.xsd"
xmlns="org.apache.felix.ipojo"
xmlns:cs="org.apache.felix.ipojo.test.handler.checkservice">
<handler
classname="org.apache.felix.ipojo.runtime.externalhandlers.components.CheckServiceHandler"
name="check"
namespace="org.apache.felix.ipojo.test.handler.checkservice"
architecture="false">
<controller field="isValid" />
</handler>
<!-- a handler with a field interceptor -->
<handler
classname="org.apache.felix.ipojo.runtime.externalhandlers.components.CheckServiceAndFieldInterceptorHandler"
name="checkAndSet"
namespace="org.apache.felix.ipojo.test.handler.checkservice"
architecture="false">
<controller field="isValid" />
</handler>
<component
classname="org.apache.felix.ipojo.runtime.externalhandlers.components.FooProviderType1"
name="HANDLER-HandlerTester" architecture="true">
<cs:check />
</component>
<component
classname="org.apache.felix.ipojo.runtime.externalhandlers.components.FooProviderType1"
name="HANDLER-HandlerWithFieldInterceptorTester" architecture="true">
<cs:checkAndSet />
<provides/>
</component>
<instance name="HandlerTest-2" component="HANDLER-HandlerTester">
<property name="csh.simple" value="Simple" />
<property name="csh.map">
<property name="a" value="a" />
<property name="b" value="b" />
<property name="c" value="c" />
</property>
</instance>
<instance name="HandlerTest-2-empty" component="HANDLER-HandlerTester">
<property name="csh.simple" value="Simple" />
<property name="csh.map">
<!-- Empty dictionary -->
</property>
</instance>
<!-- The handler will be added using the auto handler property -->
<component
classname="org.apache.felix.ipojo.runtime.externalhandlers.components.FooProviderType1"
name="HANDLER-HandlerTesterWO" architecture="true">
</component>
</ipojo>