| <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| <!-- |
| 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. |
| --> |
| <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" |
| xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0" |
| xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0" |
| xmlns:one="http://ns.handler.one" |
| xmlns:two="http://ns.handler.two" |
| xmlns:three="http://ns.handler.three" |
| default-availability="optional"> |
| |
| <!-- Default test.. no other ns interaction. --> |
| <bean id="TestBeanA" class="org.apache.aries.blueprint.testbundleb.TestBean" scope="singleton"> |
| <property name="red" value="RED"/> |
| <property name="green" value="GREEN"/> |
| <property name="blue" value="BLUE"/> |
| </bean> |
| |
| <!-- NShandler one test, custom element, component injection, metadata modification, passthrumetadata --> |
| <one:nshandlerone one:attribone="ONE" one:attribtwo="ONE_VALUE"/> |
| <bean id="TestBeanB" class="org.apache.aries.blueprint.testbundleb.TestBean" scope="singleton" one:attribone="red" one:attribtwo="ONE" > |
| <property name="green" value="GREEN"/> |
| <property name="blue" value="BLUE"/> |
| </bean> |
| |
| <!-- Nshandler two test, interceptors --> |
| <bean id="TestBeanC" class="org.apache.aries.blueprint.testbundleb.TestBean" scope="singleton" two:attribone="dummy"> |
| <property name="red" value="RED"/> |
| <property name="green" value="GREEN"/> |
| <property name="blue" value="BLUE"/> |
| </bean> |
| |
| <!-- drives a method on intercepted TestBeanC expects true as response --> |
| <bean id="OtherBeanA" class="org.apache.aries.blueprint.testbundleb.OtherBean" init-method="init"> |
| <property name="testBean" ref="TestBeanC" /> |
| <property name="testValue" value="RED"/> |
| </bean> |
| |
| <!-- drives a method on intercepted TestBeanC expects false as response --> |
| <bean id="OtherBeanB" class="org.apache.aries.blueprint.testbundleb.OtherBean" init-method="init"> |
| <property name="testBean" ref="TestBeanC" /> |
| <property name="testValue" value="BLUE"/> |
| </bean> |
| |
| <!-- causes injection of a bean processor, which understands this sort of bean.. --> |
| <bean id="ProcessedBean" class="org.apache.aries.blueprint.testbundleb.BeanForBeanProcessorTest" three:attribone="true"/> |
| |
| <reference activation="eager" |
| availability="optional" |
| interface="org.apache.aries.blueprint.testbundlea.InterfaceWithDependency" /> |
| </blueprint> |
| |