Initial OR-TAPI mapping: Services
[transportpce.git] / tapi / src / main / resources / OSGI-INF / blueprint / tapi-blueprint.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4 Copyright © 2018 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: Gilles Thouenon <gilles.thouenon@orange.com>
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.mdsal.binding.api.DataBroker"/>
18
19     <reference id="rpcProviderService"
20           interface="org.opendaylight.mdsal.binding.api.RpcProviderService"/>
21
22     <reference id="serviceHandlerService"
23           interface="org.opendaylight.yang.gen.v1.http.org.openroadm.service.rev190531.OrgOpenroadmServiceService" />
24
25     <reference id="networkTransactionImpl"
26           interface="org.opendaylight.transportpce.common.network.NetworkTransactionService" />
27
28     <reference id="serviceDatastoreOperation"
29                interface="org.opendaylight.transportpce.servicehandler.service.ServiceDataStoreOperations" />
30
31     <bean id="tapiListener"
32           class="org.opendaylight.transportpce.tapi.utils.TapiListener">
33     </bean>
34
35     <bean id="tapiProvider"
36           class="org.opendaylight.transportpce.tapi.impl.TapiProvider"
37           init-method="init" destroy-method="close">
38         <argument ref="dataBroker" />
39         <argument ref="rpcProviderService" />
40         <argument ref="serviceHandlerService" />
41         <argument ref="serviceDatastoreOperation" />
42         <argument ref="tapiListener" />
43         <argument ref="networkTransactionImpl" />
44     </bean>
45
46 </blueprint>