Merge "Bug 8223: Fixed incorrect enable-flow-removed-notification check."
[openflowplugin.git] / openflowplugin-blueprint-config / src / main / resources / org / opendaylight / blueprint / openflowplugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
3            xmlns:odl="http://opendaylight.org/xmlns/blueprint/v1.0.0"
4            xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
5            odl:use-default-for-reference-types="true">
6
7     <reference id="dataBroker" interface="org.opendaylight.controller.md.sal.binding.api.DataBroker" odl:type="pingpong"/>
8     <reference id="rpcRegistry" interface="org.opendaylight.controller.sal.binding.api.RpcProviderRegistry"/>
9     <reference id="notificationService" interface="org.opendaylight.controller.md.sal.binding.api.NotificationService"/>
10     <reference id="notificationPublishService" interface="org.opendaylight.controller.md.sal.binding.api.NotificationPublishService"/>
11     <reference id="entityOwnershipService" interface="org.opendaylight.controller.md.sal.common.api.clustering.EntityOwnershipService"/>
12     <reference id="clusterSingletonServiceProvider" interface="org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceProvider"/>
13
14     <reference id="defaultSwitchConnProvider" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProvider"
15                odl:type="openflow-switch-connection-provider-default-impl"/>
16
17     <reference id="legacySwitchConnProvider" interface="org.opendaylight.openflowjava.protocol.spi.connection.SwitchConnectionProvider"
18                odl:type="openflow-switch-connection-provider-legacy-impl"/>
19
20     <odl:clustered-app-config id="openflowProviderConfig"
21                               binding-class="org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.provider.config.rev160510.OpenflowProviderConfig"/>
22
23     <reference id="openflowPluginProviderFactory"
24                interface="org.opendaylight.openflowplugin.api.openflow.OpenFlowPluginProviderFactory"/>
25
26     <bean id="openflowPluginProvider" factory-ref="openflowPluginProviderFactory" factory-method="newInstance">
27         <argument ref="openflowProviderConfig"/>
28         <argument ref="dataBroker"/>
29         <argument ref="rpcRegistry"/>
30         <argument ref="notificationService"/>
31         <argument ref="notificationPublishService"/>
32         <argument ref="entityOwnershipService"/>
33         <argument>
34             <list>
35                 <ref component-id="defaultSwitchConnProvider"/>
36                 <ref component-id="legacySwitchConnProvider"/>
37             </list>
38         </argument>
39         <argument ref="clusterSingletonServiceProvider"/>
40         <argument ref="blueprintBundleContext" />
41         <cm:managed-properties persistent-id="org.opendaylight.openflowplugin"
42                                update-strategy="component-managed"
43                                update-method="update"/>
44     </bean>
45
46     <service ref="openflowPluginProvider" odl:type="openflow-plugin-provider-impl">
47         <interfaces>
48             <value>org.opendaylight.openflowplugin.api.openflow.OpenFlowPluginProvider</value>
49             <value>org.opendaylight.openflowplugin.extension.api.OpenFlowPluginExtensionRegistratorProvider</value>
50         </interfaces>
51     </service>
52
53 </blueprint>