and is available at http://www.eclipse.org/legal/epl-v10.html
-->
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
- xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
- odl:use-default-for-reference-types="true">
+ xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
+ odl:use-default-for-reference-types="true">
<reference id="dataBroker"
- interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"
- odl:type="default" />
- <reference id="mountPointService"
- interface="org.opendaylight.controller.md.sal.binding.api.MountPointService" />
+ interface="org.opendaylight.controller.md.sal.binding.api.DataBroker"
+ odl:type="default" />
<reference id="rpcProviderRegistry"
- interface="org.opendaylight.controller.sal.binding.api.RpcProviderRegistry" />
- <bean id="provider"
- class="org.opendaylight.transportpce.olm.OlmProvider"
- init-method="init" destroy-method="close">
+ interface="org.opendaylight.controller.sal.binding.api.RpcProviderRegistry" />
+ <reference id="openRoadmInterfaces"
+ interface="org.opendaylight.transportpce.common.openroadminterfaces.OpenRoadmInterfaces" />
+ <reference id="crossConnect"
+ interface="org.opendaylight.transportpce.common.crossconnect.CrossConnect" />
+ <reference id="deviceTransactionManager"
+ interface="org.opendaylight.transportpce.common.device.DeviceTransactionManager" />
+ <reference id="portMapping"
+ interface="org.opendaylight.transportpce.common.mapping.PortMapping" />
+
+ <bean id="olmPowerServiceImpl"
+ class="org.opendaylight.transportpce.olm.service.OlmPowerServiceImpl"
+ init-method="init" destroy-method="close">
+ <argument ref="dataBroker" />
+ <argument ref="powerMgmt" />
+ <argument ref="deviceTransactionManager" />
+ <argument ref="portMapping" />
+ </bean>
+
+ <bean id="powerMgmt" class="org.opendaylight.transportpce.olm.power.PowerMgmt" >
<argument ref="dataBroker" />
- <argument ref="mountPointService" />
+ <argument ref="openRoadmInterfaces" />
+ <argument ref="crossConnect" />
+ <argument ref="deviceTransactionManager" />
+ </bean>
+
+ <bean id="provider"
+ class="org.opendaylight.transportpce.olm.OlmProvider"
+ init-method="init" destroy-method="close">
<argument ref="rpcProviderRegistry" />
+ <argument ref="olmPowerServiceImpl" />
</bean>
+ <service ref="olmPowerServiceImpl"
+ interface="org.opendaylight.transportpce.olm.service.OlmPowerService"/>
+
</blueprint>