Turn PortMappingImpl into a component
[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
12     <reference id="deviceTransactionManager" interface="org.opendaylight.transportpce.common.device.DeviceTransactionManager" />
13     <reference id="mappingUtils" interface="org.opendaylight.transportpce.common.mapping.MappingUtils" />
14     <reference id="portMapping" interface="org.opendaylight.transportpce.common.mapping.PortMapping" />
15
16     <bean id="openRoadmInterfaces121" class="org.opendaylight.transportpce.common.openroadminterfaces.OpenRoadmInterfacesImpl121" >
17         <argument ref="deviceTransactionManager" />
18     </bean>
19
20     <bean id="openRoadmInterfaces221" class="org.opendaylight.transportpce.common.openroadminterfaces.OpenRoadmInterfacesImpl221" >
21         <argument ref="deviceTransactionManager" />
22         <argument ref="portMapping" />
23     </bean>
24
25     <bean id="openRoadmInterfaces710" class="org.opendaylight.transportpce.common.openroadminterfaces.OpenRoadmInterfacesImpl710" >
26         <argument ref="deviceTransactionManager" />
27         <argument ref="portMapping" />
28     </bean>
29
30     <bean id="openRoadmInterfaces" class="org.opendaylight.transportpce.common.openroadminterfaces.OpenRoadmInterfacesImpl" >
31         <argument ref="deviceTransactionManager" />
32         <argument ref="mappingUtils" />
33         <argument ref="openRoadmInterfaces121" />
34         <argument ref="openRoadmInterfaces221" />
35         <argument ref="openRoadmInterfaces710" />
36     </bean>
37
38     <service ref="openRoadmInterfaces" interface="org.opendaylight.transportpce.common.openroadminterfaces.OpenRoadmInterfaces" />
39
40 </blueprint>