1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
4 Copyright © 2016 Orange and others. All rights reserved.
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
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">
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" />
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" />
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" />
47 class="org.opendaylight.transportpce.olm.OlmProvider"
48 init-method="init" destroy-method="close">
49 <argument ref="rpcProviderService" />
50 <argument ref="olmPowerServiceImpl" />
53 <service ref="olmPowerServiceImpl"
54 interface="org.opendaylight.transportpce.olm.service.OlmPowerService"/>