Rewire SwitchConnectionProvider configuration 60/111760/4
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 20 May 2024 19:19:25 +0000 (21:19 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Mon, 20 May 2024 20:59:28 +0000 (22:59 +0200)
commit5b685a5be740d0bda47b4d08203e099c75105ccf
treed5d739849db8e9013b39fcff0905dbf423fc4baf
parent12e4f2ac6aa4697ec7b163dd82eb0781969be5c3
Rewire SwitchConnectionProvider configuration

Eliminate use of blueprint by replacing it with two components:

OSGiFactorySwitchConnectionConfiguration populates default configuration
into the datastore if not already present.

OSGiSwitchConnectionProviders listens on datastore configuration and
instantiates SwitchConnectionProviders based on observed configuration.

JIRA: OPNFLWPLUG-1129
Change-Id: I7d762b7b07f010d37ba0590515dd30cbcfe3b479
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/ConnectionConfigurationImpl.java [new file with mode: 0644]
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/SwitchConnectionProviderFactoryImpl.java
openflowjava/openflow-protocol-impl/src/main/java/org/opendaylight/openflowjava/protocol/impl/core/SwitchConnectionProviderImpl.java
openflowjava/openflowjava-blueprint-config/pom.xml
openflowjava/openflowjava-blueprint-config/src/main/java/org/opendaylight/openflowjava/mdsal/OSGiFactorySwitchConnectionConfiguration.java [new file with mode: 0644]
openflowjava/openflowjava-blueprint-config/src/main/java/org/opendaylight/openflowjava/mdsal/OSGiSwitchConnectionProviders.java [new file with mode: 0644]
openflowjava/openflowjava-blueprint-config/src/main/resources/OSGI-INF/blueprint/openflowjava.xml [deleted file]