Bump versions by x.y.(z+1)
[bgpcep.git] / bmp / bmp-impl / src / main / resources / org / opendaylight / blueprint / bgp-bmp.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   Copyright (c) 2016 Brocade Communications 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 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0">
10
11   <reference id="bmpExtensionContext" interface="org.opendaylight.protocol.bmp.spi.registry.BmpExtensionConsumerContext"/>
12   <reference id="globalBossGroup" interface="io.netty.channel.EventLoopGroup" odl:type="global-boss-group"/>
13   <reference id="globalWorkerGroup" interface="io.netty.channel.EventLoopGroup" odl:type="global-worker-group"/>
14
15   <bean id="bmpSessionFactory" class="org.opendaylight.protocol.bmp.impl.session.DefaultBmpSessionFactory"/>
16
17   <bean id="bmpDispatcher" class="org.opendaylight.protocol.bmp.impl.BmpDispatcherImpl">
18     <argument ref="globalBossGroup"/>
19     <argument ref="globalWorkerGroup"/>
20     <argument>
21       <bean factory-ref="bmpExtensionContext" factory-method="getBmpMessageRegistry"/>
22     </argument>
23     <argument ref="bmpSessionFactory"/>
24   </bean>
25
26   <service ref="bmpDispatcher" interface="org.opendaylight.protocol.bmp.api.BmpDispatcher"/>
27
28   <reference id="dataBroker" interface="org.opendaylight.controller.md.sal.binding.api.DataBroker" odl:type="default"/>
29   <reference id="domPingPongDataBroker" interface="org.opendaylight.controller.md.sal.dom.api.DOMDataBroker" odl:type="pingpong"/>
30   <reference id="globalBgpExtensions" interface="org.opendaylight.protocol.bgp.rib.spi.RIBExtensionConsumerContext"/>
31   <reference id="codecTreeFactory" interface="org.opendaylight.mdsal.binding.dom.codec.api.BindingCodecTreeFactory"/>
32   <odl:static-reference id="domSchemaService" interface="org.opendaylight.mdsal.dom.api.DOMSchemaService"/>
33   <reference id="clusterSingletonServiceProvider" interface="org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider"/>
34
35   <bean id="bmpDeployerDependecies" class="org.opendaylight.protocol.bmp.impl.config.BmpDeployerDependencies">
36     <argument ref="dataBroker"/>
37     <argument ref="domPingPongDataBroker"/>
38     <argument ref="globalBgpExtensions"/>
39     <argument ref="codecTreeFactory"/>
40     <argument>
41       <bean factory-ref="domSchemaService" factory-method="getGlobalContext"/>
42     </argument>
43     <argument ref="clusterSingletonServiceProvider"/>
44   </bean>
45
46   <bean id="bmpDeployer" class="org.opendaylight.protocol.bmp.impl.config.BmpDeployerImpl"
47         init-method="init" destroy-method="close">
48     <argument ref="bmpDispatcher"/>
49     <argument ref="bmpDeployerDependecies"/>
50   </bean>
51 </blueprint>