Switch to MD-SAL APIs
[openflowplugin.git] / openflowplugin-impl / src / main / resources / OSGI-INF / blueprint / openflowplugin-impl.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
3            xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
4            xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
5            xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
6            odl:use-default-for-reference-types="true">
7
8   <bean id="configurationServiceFactory" class="org.opendaylight.openflowplugin.impl.configuration.ConfigurationServiceFactoryOsgiImpl">
9     <argument ref="blueprintBundleContext"/>
10   </bean>
11   <service ref="configurationServiceFactory" interface="org.opendaylight.openflowplugin.api.openflow.configuration.ConfigurationServiceFactory"/>
12
13   <odl:clustered-app-config id="openflowProviderConfig"
14                           binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.provider.config.rev160510.OpenflowProviderConfig"/>
15   <bean id="configurationService"
16         factory-ref="configurationServiceFactory"
17         factory-method="newInstance"
18         destroy-method="close">
19       <argument ref="openflowProviderConfig" />
20       <cm:managed-properties persistent-id="org.opendaylight.openflowplugin"
21                              update-strategy="component-managed"
22                              update-method="update"/>
23   </bean>
24   <service ref="configurationService" interface="org.opendaylight.openflowplugin.api.openflow.configuration.ConfigurationService"/>
25
26   <reference id="ppDB" interface="org.opendaylight.mdsal.binding.api.DataBroker" odl:type="pingpong"/>
27   <bean id="pingPongDataBroker" class="org.opendaylight.openflowplugin.impl.ForwardingPingPongDataBroker">
28     <argument ref="ppDB"/>
29   </bean>
30
31   <reference id="switchConnectionProviderList" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProviderList" ext:proxy-method="classes"/>
32
33   <odl:action-provider interface="org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService"/>
34 </blueprint>