Use OSGi DS for MessageIntelligenceAgencyImpl 13/111813/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 21 May 2024 17:13:51 +0000 (19:13 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 22 May 2024 10:04:47 +0000 (12:04 +0200)
commitd790db9ffe8f747103edefc00eab8028fa794642
tree70ef922ee624fd30ed93ef0fb3bfd3dd649929a5
parent266179414301025e23687449cd44c07c8a968372
Use OSGi DS for MessageIntelligenceAgencyImpl

Rather than using static field in OpenFlowPluginProviderImpl, make
MessageIntelligenceAgencyImpl a proper singleton component and inject it
where neeeded.

JIRA: OPNFLWPLUG-1130
Change-Id: I1265c558fdbd4093283b356e2b469a0ed6723e68
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 6570baacbe3c2faee09b89d3939f6bb1441e35bb)
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/OpenFlowPluginProviderImpl.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/karaf/ClearStatsCommandProvider.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/karaf/ShowStatsCommandProvider.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/ofpspecific/MessageIntelligenceAgencyImpl.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/statistics/ofpspecific/MessageIntelligenceAgencyMXBean.java
openflowplugin-impl/src/main/resources/OSGI-INF/blueprint/openflowplugin-impl.xml
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/OpenFlowPluginProviderImplTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/karaf/ClearStatsCommandProviderTest.java
openflowplugin-impl/src/test/java/org/opendaylight/openflowplugin/impl/karaf/ShowStatsCommandProviderTest.java