Update MRI projects for Aluminium
[bgpcep.git] / bmp / bmp-impl / src / main / resources / OSGI-INF / 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.mdsal.binding.api.DataBroker" odl:type="default"/>
29   <reference id="domDataBroker" interface="org.opendaylight.mdsal.dom.api.DOMDataBroker" odl:type="default"/>
30   <reference id="globalBgpExtensions" interface="org.opendaylight.protocol.bgp.rib.spi.RIBExtensionConsumerContext"/>
31   <reference id="codecTree" interface="org.opendaylight.mdsal.binding.dom.codec.api.BindingCodecTree"/>
32   <reference id="clusterSingletonServiceProvider" interface="org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider"/>
33
34   <bean id="bmpDeployerDependecies" class="org.opendaylight.protocol.bmp.impl.config.BmpDeployerDependencies">
35     <argument ref="dataBroker"/>
36     <argument ref="domDataBroker"/>
37     <argument ref="globalBgpExtensions"/>
38     <argument ref="codecTree"/>
39     <argument ref="clusterSingletonServiceProvider"/>
40   </bean>
41
42   <bean id="bmpDeployer" class="org.opendaylight.protocol.bmp.impl.config.BmpDeployerImpl"
43         init-method="init" destroy-method="close">
44     <argument ref="bmpDispatcher"/>
45     <argument ref="bmpDeployerDependecies"/>
46   </bean>
47 </blueprint>