Move BP xml to OSGI-INF
[bgpcep.git] / bgp / benchmark-app / src / main / resources / OSGI-INF / blueprint / bgp-app-peer-benchmark.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
4   ~
5   ~ This program and the accompanying materials are made available under the
6   ~ terms of the Eclipse Public License v1.0 which accompanies this distribution,
7   ~ and is available at http://www.eclipse.org/legal/epl-v10.html
8   -->
9
10 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0">
11     <reference id="dataBroker" interface="org.opendaylight.mdsal.binding.api.DataBroker" odl:type="pingpong"/>
12     <reference id="rpcRegistry" interface="org.opendaylight.mdsal.binding.api.RpcProviderService"/>
13
14     <odl:clustered-app-config id="bgpBenchmarkConfig"
15         binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.odl.bgp.app.peer.benchmark.config.rev161129.Config"/>
16
17     <bean id="bgpBenchmark" class="org.opendaylight.protocol.bgp.benchmark.app.AppPeerBenchmark"
18           init-method="start" destroy-method="close">
19         <argument ref="dataBroker"/>
20         <argument ref="rpcRegistry"/>
21         <argument>
22             <bean factory-ref="bgpBenchmarkConfig" factory-method="getAppPeerId"/>
23         </argument>
24     </bean>
25 </blueprint>