From 8e48a1a6276ca5befe4a240d133a5c565eb00c0c Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Fri, 11 Mar 2022 14:59:36 +0100 Subject: [PATCH] Do not use blueprint-maven-plugin in of-switch-config-pusher Inline the generated container and dist dependencies on annotations and the plugin. Change-Id: I574c2df5e46fa28e85f3d79b69d5d46f9e92ab29 Signed-off-by: Robert Varga --- applications/of-switch-config-pusher/pom.xml | 19 ------------------- .../ofswitch/config/DefaultConfigPusher.java | 5 ++--- .../resources/OSGI-INF/blueprint/autowire.xml | 10 ++++++++++ 3 files changed, 12 insertions(+), 22 deletions(-) create mode 100644 applications/of-switch-config-pusher/src/main/resources/OSGI-INF/blueprint/autowire.xml diff --git a/applications/of-switch-config-pusher/pom.xml b/applications/of-switch-config-pusher/pom.xml index 69050ba06d..4e2ca70e3f 100644 --- a/applications/of-switch-config-pusher/pom.xml +++ b/applications/of-switch-config-pusher/pom.xml @@ -52,24 +52,5 @@ javax.annotation-api true - - org.apache.aries.blueprint - blueprint-maven-plugin-annotation - true - - - - - - org.apache.aries.blueprint - blueprint-maven-plugin - - - org.opendaylight.openflowplugin.openflow.ofswitch.config - - - - - diff --git a/applications/of-switch-config-pusher/src/main/java/org/opendaylight/openflowplugin/openflow/ofswitch/config/DefaultConfigPusher.java b/applications/of-switch-config-pusher/src/main/java/org/opendaylight/openflowplugin/openflow/ofswitch/config/DefaultConfigPusher.java index fec549741e..4f89194844 100644 --- a/applications/of-switch-config-pusher/src/main/java/org/opendaylight/openflowplugin/openflow/ofswitch/config/DefaultConfigPusher.java +++ b/applications/of-switch-config-pusher/src/main/java/org/opendaylight/openflowplugin/openflow/ofswitch/config/DefaultConfigPusher.java @@ -14,7 +14,6 @@ import javax.annotation.PostConstruct; import javax.annotation.PreDestroy; import javax.inject.Inject; import javax.inject.Singleton; -import org.apache.aries.blueprint.annotation.service.Reference; import org.opendaylight.infrautils.utils.concurrent.LoggingFutures; import org.opendaylight.mdsal.binding.api.ClusteredDataTreeChangeListener; import org.opendaylight.mdsal.binding.api.DataBroker; @@ -48,8 +47,8 @@ public class DefaultConfigPusher implements AutoCloseable, ClusteredDataTreeChan private ListenerRegistration listenerRegistration; @Inject - public DefaultConfigPusher(final NodeConfigService nodeConfigService, @Reference final DataBroker dataBroker, - @Reference final DeviceOwnershipService deviceOwnershipService) { + public DefaultConfigPusher(final NodeConfigService nodeConfigService, final DataBroker dataBroker, + final DeviceOwnershipService deviceOwnershipService) { this.nodeConfigService = nodeConfigService; this.dataBroker = dataBroker; this.deviceOwnershipService = requireNonNull(deviceOwnershipService, "DeviceOwnershipService can not be null"); diff --git a/applications/of-switch-config-pusher/src/main/resources/OSGI-INF/blueprint/autowire.xml b/applications/of-switch-config-pusher/src/main/resources/OSGI-INF/blueprint/autowire.xml new file mode 100644 index 0000000000..3fbc55387d --- /dev/null +++ b/applications/of-switch-config-pusher/src/main/resources/OSGI-INF/blueprint/autowire.xml @@ -0,0 +1,10 @@ + + + + + + + + + + -- 2.36.6