clean test environment
[transportpce.git] / pce / src / main / resources / OSGI-INF / blueprint / pce-blueprint.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4 Copyright © 2017 Orange and others. All rights reserved.
5
6 This program and the accompanying materials are made available under the
7 terms of the Eclipse Public License v1.0 which accompanies this distribution,
8 and is available at http://www.eclipse.org/legal/epl-v10.html
9
10 Author: Martial Coulibaly <martial.coulibaly@gfi.com> on behalf of Orange
11 -->
12 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
13   xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
14   odl:use-default-for-reference-types="true">
15
16   <reference id="dataBroker"
17         interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"
18         odl:type="default"/>
19
20   <reference id="rpcRegistry"
21         interface="org.opendaylight.controller.sal.binding.api.RpcProviderRegistry"/>
22
23   <reference id="notificationPublishService"
24         interface="org.opendaylight.controller.md.sal.binding.api.NotificationPublishService"
25         odl:type="default" />
26
27   <bean id="pceServiceImpl"
28         class="org.opendaylight.transportpce.pce.service.PathComputationServiceImpl"
29         init-method="init" destroy-method="close">
30     <argument ref="dataBroker"/>
31     <argument ref="notificationPublishService" />
32   </bean>
33
34   <bean id="provider"
35         class="org.opendaylight.transportpce.pce.impl.PceProvider"
36         init-method="init" destroy-method="close">
37     <argument ref="rpcRegistry" />
38     <argument ref="pceServiceImpl" />
39   </bean>
40
41   <service ref="pceServiceImpl"
42         interface="org.opendaylight.transportpce.pce.service.PathComputationService"/>
43
44 </blueprint>