fix Databroker deprecated warnings
[transportpce.git] / olm / src / main / resources / OSGI-INF / blueprint / olm-blueprint.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4 Copyright © 2016 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 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
11       xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
12       odl:use-default-for-reference-types="true">
13
14   <reference id="dataBroker"
15         interface="org.opendaylight.mdsal.binding.api.DataBroker"
16         odl:type="default" />
17   <reference id="rpcProviderService"
18         interface="org.opendaylight.mdsal.binding.api.RpcProviderService" />
19   <reference id="openRoadmInterfaces"
20         interface="org.opendaylight.transportpce.common.openroadminterfaces.OpenRoadmInterfaces" />
21   <reference id="crossConnect"
22         interface="org.opendaylight.transportpce.common.crossconnect.CrossConnect" />
23   <reference id="deviceTransactionManager"
24         interface="org.opendaylight.transportpce.common.device.DeviceTransactionManager" />
25   <reference id="portMapping"
26         interface="org.opendaylight.transportpce.common.mapping.PortMapping" />
27   <reference id="mappingUtils" interface="org.opendaylight.transportpce.common.mapping.MappingUtils" />
28
29   <bean id="olmPowerServiceImpl"
30         class="org.opendaylight.transportpce.olm.service.OlmPowerServiceImpl"
31         init-method="init" destroy-method="close">
32     <argument ref="dataBroker" />
33     <argument ref="powerMgmt" />
34     <argument ref="deviceTransactionManager" />
35     <argument ref="portMapping" />
36     <argument ref="mappingUtils" />
37     <argument ref="openRoadmInterfaces" />
38   </bean>
39
40   <bean id="powerMgmt" class="org.opendaylight.transportpce.olm.power.PowerMgmtImpl" >
41     <argument ref="dataBroker" />
42     <argument ref="openRoadmInterfaces" />
43     <argument ref="crossConnect" />
44     <argument ref="deviceTransactionManager" />
45   </bean>
46
47   <bean id="provider"
48         class="org.opendaylight.transportpce.olm.OlmProvider"
49         init-method="init" destroy-method="close">
50     <argument ref="rpcProviderService" />
51     <argument ref="olmPowerServiceImpl" />
52   </bean>
53
54   <service ref="olmPowerServiceImpl"
55         interface="org.opendaylight.transportpce.olm.service.OlmPowerService"/>
56
57 </blueprint>