bf4bcc9557f58435ed4c424acc571ef475ff5afc
[transportpce.git] / common / src / main / resources / OSGI-INF / blueprint / common-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="mountPointService" interface="org.opendaylight.controller.md.sal.binding.api.MountPointService" />
15     <reference id="dataBroker" interface="org.opendaylight.controller.md.sal.binding.api.DataBroker" odl:type="default" />
16
17     <bean id="deviceTransactionManager" class="org.opendaylight.transportpce.common.device.DeviceTransactionManagerImpl"
18           destroy-method="preDestroy" >
19         <argument ref="mountPointService" />
20         <argument value="15000" />
21     </bean>
22
23     <bean id="openRoadmInterfaces" class="org.opendaylight.transportpce.common.openroadminterfaces.OpenRoadmInterfacesImpl" >
24         <argument ref="deviceTransactionManager" />
25     </bean>
26
27     <bean id="portMapping" class="org.opendaylight.transportpce.common.mapping.PortMappingImpl" >
28         <argument ref="dataBroker" />
29         <argument ref="deviceTransactionManager" />
30         <argument ref="openRoadmInterfaces" />
31     </bean>
32
33     <bean id="crossConnect" class="org.opendaylight.transportpce.common.crossconnect.CrossConnectImpl" >
34         <argument ref="deviceTransactionManager" />
35     </bean>
36
37     <service ref="deviceTransactionManager" interface="org.opendaylight.transportpce.common.device.DeviceTransactionManager" />
38
39     <service ref="openRoadmInterfaces" interface="org.opendaylight.transportpce.common.openroadminterfaces.OpenRoadmInterfaces" />
40
41     <service ref="portMapping" interface="org.opendaylight.transportpce.common.mapping.PortMapping" />
42
43     <service ref="crossConnect" interface="org.opendaylight.transportpce.common.crossconnect.CrossConnect" />
44
45 </blueprint>