Convert PowerMgmtImpl of olm into a Component
[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   <reference id="dataBroker" interface="org.opendaylight.mdsal.binding.api.DataBroker"/>
12   <reference id="rpcProviderService" interface="org.opendaylight.mdsal.binding.api.RpcProviderService" />
13   <reference id="openRoadmInterfaces" interface="org.opendaylight.transportpce.common.openroadminterfaces.OpenRoadmInterfaces" />
14   <reference id="deviceTransactionManager" interface="org.opendaylight.transportpce.common.device.DeviceTransactionManager" />
15   <reference id="portMapping" interface="org.opendaylight.transportpce.common.mapping.PortMapping" />
16   <reference id="mappingUtils" interface="org.opendaylight.transportpce.common.mapping.MappingUtils" />
17   <reference id="powerMgmt" interface="org.opendaylight.transportpce.olm.power.PowerMgmt" />
18
19   <bean id="olmPowerServiceImpl" class="org.opendaylight.transportpce.olm.service.OlmPowerServiceImpl">
20     <argument ref="dataBroker" />
21     <argument ref="powerMgmt" />
22     <argument ref="deviceTransactionManager" />
23     <argument ref="portMapping" />
24     <argument ref="mappingUtils" />
25     <argument ref="openRoadmInterfaces" />
26   </bean>
27
28   <bean id="olmPowerServiceRpcImpl" class="org.opendaylight.transportpce.olm.OlmPowerServiceRpcImpl">
29     <argument ref="olmPowerServiceImpl" />
30   </bean>
31
32   <bean id="provider" class="org.opendaylight.transportpce.olm.OlmProvider"
33         init-method="init" destroy-method="close">
34     <argument ref="rpcProviderService" />
35     <argument ref="olmPowerServiceRpcImpl" />
36   </bean>
37
38   <service ref="olmPowerServiceRpcImpl"
39            interface="org.opendaylight.yang.gen.v1.http.org.opendaylight.transportpce.olm.rev210618.TransportpceOlmService"/>
40   </blueprint>