Graph modelisation for Path Computation Algorithm
[bgpcep.git] / graph / graph-impl / src / main / resources / OSGI-INF / blueprint / graph-server.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   Copyright (c) 2019 Orange. 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     <reference id="dataBroker" interface="org.opendaylight.mdsal.binding.api.DataBroker" odl:type="default" />
13
14     <bean id="connectedGraphProvider"
15           class="org.opendaylight.graph.impl.ConnectedGraphServer"
16           destroy-method="close"
17           init-method="init">
18         <argument ref="dataBroker" />
19     </bean>
20
21     <service ref="connectedGraphProvider" interface="org.opendaylight.graph.ConnectedGraphProvider" />
22
23     <bean id="graphListener"
24           class="org.opendaylight.graph.impl.GraphListener"
25           destroy-method="close"
26           init-method="init">
27         <argument ref="dataBroker" />
28         <argument ref="connectedGraphProvider" />
29     </bean>
30
31 </blueprint>