Path Computation Server
[bgpcep.git] / pcep / topology / topology-provider / src / main / resources / OSGI-INF / blueprint / pcep-topology.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   Copyright (c) 2017 AT&T Intellectual Property. 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"
10            xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0">
11
12     <bean id="Stateful07TopologySessionListenerFactory"
13           class="org.opendaylight.bgpcep.pcep.topology.provider.Stateful07TopologySessionListenerFactory"/>
14     <service ref="Stateful07TopologySessionListenerFactory"
15              interface="org.opendaylight.bgpcep.pcep.topology.provider.TopologySessionListenerFactory"/>
16
17     <reference id="dataBroker" interface="org.opendaylight.mdsal.binding.api.DataBroker"
18                odl:type="default"/>
19     <reference id="rpcProviderService" interface="org.opendaylight.mdsal.binding.api.RpcProviderService"/>
20     <reference id="pcepDispatcher" interface="org.opendaylight.protocol.pcep.PCEPDispatcher"/>
21     <reference id="clusterSingletonServiceProvider"
22                interface="org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider"/>
23     <reference id="intructionFactory" interface="org.opendaylight.bgpcep.programming.spi.InstructionSchedulerFactory"/>
24     <reference id="topologySessionStatsRegistry"
25                interface="org.opendaylight.bgpcep.pcep.topology.spi.stats.TopologySessionStatsRegistry"/>
26     <reference id="pceServerProvider" interface="org.opendaylight.bgpcep.pcep.server.PceServerProvider"/>
27
28     <bean id="pcepTopologyDeployer"
29           class="org.opendaylight.bgpcep.pcep.topology.provider.config.PCEPTopologyDeployerImpl"
30           init-method="init"
31           destroy-method="close">
32         <argument ref="blueprintContainer"/>
33         <argument ref="dataBroker"/>
34         <argument ref="intructionFactory"/>
35     </bean>
36
37     <bean id="PCEPTopologyProviderBean"
38           class="org.opendaylight.bgpcep.pcep.topology.provider.config.PCEPTopologyProviderBean"
39           scope="prototype">
40         <argument ref="clusterSingletonServiceProvider"/>
41         <argument ref="blueprintBundleContext"/>
42         <argument ref="dataBroker"/>
43         <argument ref="pcepDispatcher"/>
44         <argument ref="rpcProviderService"/>
45         <argument ref="Stateful07TopologySessionListenerFactory"/>
46         <argument ref="topologySessionStatsRegistry"/>
47         <argument ref="pceServerProvider"/>
48     </bean>
49 </blueprint>