4f85558d7cf229e7184b78e6485890904779f453
[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="networkTransactionImpl" interface="org.opendaylight.transportpce.common.network.NetworkTransactionService" />
17
18   <reference id="bindingDOMCodecServices" interface="org.opendaylight.mdsal.binding.dom.codec.spi.BindingDOMCodecServices" />
19
20
21   <reference id="dataBroker"
22         interface="org.opendaylight.mdsal.binding.api.DataBroker"/>
23
24   <reference id="rpcService"
25         interface="org.opendaylight.mdsal.binding.api.RpcProviderService"/>
26
27   <reference id="notificationPublishService"
28         interface="org.opendaylight.mdsal.binding.api.NotificationPublishService"/>
29
30   <bean id="pceServiceImpl"
31         class="org.opendaylight.transportpce.pce.service.PathComputationServiceImpl"
32         init-method="init" destroy-method="close">
33     <argument ref="networkTransactionImpl"/>
34     <argument ref="notificationPublishService" />
35     <argument ref="bindingDOMCodecServices" />
36   </bean>
37
38   <bean id="provider"
39         class="org.opendaylight.transportpce.pce.impl.PceProvider"
40         init-method="init" destroy-method="close">
41     <argument ref="rpcService" />
42     <argument ref="pceServiceImpl" />
43   </bean>
44
45   <service ref="pceServiceImpl"
46         interface="org.opendaylight.transportpce.pce.service.PathComputationService"/>
47
48 </blueprint>