Renderer and OLM update
[transportpce.git] / olm / src / main / resources / org / opendaylight / 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.controller.md.sal.binding.api.DataBroker"
16         odl:type="default" />
17   <reference id="rpcProviderRegistry"
18         interface="org.opendaylight.controller.sal.binding.api.RpcProviderRegistry" />
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
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   </bean>
36
37   <bean id="powerMgmt" class="org.opendaylight.transportpce.olm.power.PowerMgmt" >
38     <argument ref="dataBroker" />
39     <argument ref="openRoadmInterfaces" />
40     <argument ref="crossConnect" />
41     <argument ref="deviceTransactionManager" />
42   </bean>
43
44   <bean id="provider"
45         class="org.opendaylight.transportpce.olm.OlmProvider"
46         init-method="init" destroy-method="close">
47     <argument ref="rpcProviderRegistry" />
48     <argument ref="olmPowerServiceImpl" />
49   </bean>
50
51   <service ref="olmPowerServiceImpl"
52         interface="org.opendaylight.transportpce.olm.service.OlmPowerService"/>
53
54 </blueprint>