Refactor buildcontroller tox profile
[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   <reference id="rpcProviderService"
17         interface="org.opendaylight.mdsal.binding.api.RpcProviderService" />
18   <reference id="openRoadmInterfaces"
19         interface="org.opendaylight.transportpce.common.openroadminterfaces.OpenRoadmInterfaces" />
20   <reference id="crossConnect"
21         interface="org.opendaylight.transportpce.common.crossconnect.CrossConnect" />
22   <reference id="deviceTransactionManager"
23         interface="org.opendaylight.transportpce.common.device.DeviceTransactionManager" />
24   <reference id="portMapping"
25         interface="org.opendaylight.transportpce.common.mapping.PortMapping" />
26   <reference id="mappingUtils" interface="org.opendaylight.transportpce.common.mapping.MappingUtils" />
27
28   <bean id="olmPowerServiceImpl"
29         class="org.opendaylight.transportpce.olm.service.OlmPowerServiceImpl"
30         init-method="init" destroy-method="close">
31     <argument ref="dataBroker" />
32     <argument ref="powerMgmt" />
33     <argument ref="deviceTransactionManager" />
34     <argument ref="portMapping" />
35     <argument ref="mappingUtils" />
36     <argument ref="openRoadmInterfaces" />
37   </bean>
38
39   <bean id="powerMgmt" class="org.opendaylight.transportpce.olm.power.PowerMgmtImpl" >
40     <argument ref="dataBroker" />
41     <argument ref="openRoadmInterfaces" />
42     <argument ref="crossConnect" />
43     <argument ref="deviceTransactionManager" />
44   </bean>
45
46   <bean id="provider"
47         class="org.opendaylight.transportpce.olm.OlmProvider"
48         init-method="init" destroy-method="close">
49     <argument ref="rpcProviderService" />
50     <argument ref="olmPowerServiceImpl" />
51   </bean>
52
53   <service ref="olmPowerServiceImpl"
54         interface="org.opendaylight.transportpce.olm.service.OlmPowerService"/>
55
56 </blueprint>