Wire OpenFlowPluginProviderImpl via OSGi DS 05/111805/6
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 21 May 2024 13:40:53 +0000 (15:40 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 22 May 2024 18:16:51 +0000 (20:16 +0200)
commit271bb499582603561140828ae2b044dba2f12a2a
tree1ed1911984edfec3ecb8ba9a8ef96a54d567ba72
parent4496c75dec71cde8cce8381e5bb666ff06d52dbc
Wire OpenFlowPluginProviderImpl via OSGi DS

OpenFlowPluginProviderImpl has interactions with injected
SwitchConnectionProviders which get interacted with during shutdown.

This is problematic if Blueprint fails to notice it is shutting down
and there is no point in listening for dependencies showing up in the
proxy interfaces.

While the SwitchConnectionProvider lifecycle needs a deep look, take
advantage of the fact that OPNFLWPLUG-1129 laid the SCR ground work
and move OpenFlowPluginProviderImpl to SCR as well.

This takes Blueprint out of the picture, with SCR guaranteeing we are
looking at a live SwitchConnectionProvider when shutting down.

Unfortunately we still have one more service in Blueprint, hence we need
to manually specify Provides manifest header. That part will be
addressed in a follow-up patch.

JIRA: OPNFLWPLUG-1132
Change-Id: I5329c3209342f52caf7b4403f5c0bcff65c9f669
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
openflowplugin-api/src/main/java/org/opendaylight/openflowplugin/api/openflow/OpenFlowPluginProvider.java [deleted file]
openflowplugin-impl/pom.xml
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/OpenFlowPluginProviderImpl.java
openflowplugin-impl/src/main/resources/OSGI-INF/blueprint/openflowplugin-impl.xml
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/OpenFlowPluginProviderImplTest.java