Split out OSGiBGPStateConsumer 00/96700/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 28 Jun 2021 17:25:17 +0000 (19:25 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 28 Jun 2021 17:30:39 +0000 (19:30 +0200)
commitb0423004a8fa34d033a9f83a7f76f687a9456c0a
tree612ade50caa23d314cd414cfd5a25fc6dece0455
parent97c82c9de7e3dc8cc551a98dd8bd2c1025fdd546
Split out OSGiBGPStateConsumer

BGPStateCollectorImpl is a weird bit of code. We essentially have an
OSGi whiteboard pattern going on here, except we drive it through an
otherwise-unused BGPStateProducer interface.

Turn GPStateCollectorImpl into a @Singleton for things like Guice et al,
but it will need some more integration work to get it operation.

Add OSGiBGPStateConsumer which is a trivial OSGi DS whiteboard consumer
and thus eliminate a chunk of blueprint wiring.

JIRA: BGPCEP-958
Change-Id: I92fd2ecb0ef3f1ecb1069536c8b2a4d6261f23c4
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/state/AbstractBGPStateConsumer.java [new file with mode: 0644]
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/state/BGPStateCollectorImpl.java
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/state/OSGiBGPStateConsumer.java [new file with mode: 0644]
bgp/rib-impl/src/main/resources/OSGI-INF/blueprint/bgp-rib.xml