From b16ce237d780314ea8bbaf17cdb432bc694ee7e7 Mon Sep 17 00:00:00 2001 From: Patrick Brady Date: Tue, 29 Oct 2019 15:35:20 -0700 Subject: Fix dg-common bundle error Fix a dg-common blueprint error that was caused by the changes with the new appc-service-communicator. Added an interface for the EventSender, and created a blueprint file to publish the interface as a service. Change-Id: I37248fcbfa7cfa75e62965dad811b648c336b5e2 Signed-off-by: Patrick Brady Issue-ID: APPC-1744 --- .../java/org/onap/appc/dg/common/impl/DCAEReporterPluginImpl.java | 6 +++--- .../src/main/resources/OSGI-INF/blueprint/blueprint.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'appc-dg') diff --git a/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/impl/DCAEReporterPluginImpl.java b/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/impl/DCAEReporterPluginImpl.java index c69d1fe52..2b3c67882 100644 --- a/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/impl/DCAEReporterPluginImpl.java +++ b/appc-dg/appc-dg-shared/appc-dg-common/src/main/java/org/onap/appc/dg/common/impl/DCAEReporterPluginImpl.java @@ -25,7 +25,7 @@ package org.onap.appc.dg.common.impl; import java.util.Map; import org.apache.commons.lang3.StringUtils; -import org.onap.appc.srvcomm.messaging.event.EventSender; +import org.onap.appc.srvcomm.messaging.event.EventSenderInterface; import org.onap.appc.srvcomm.messaging.MessageDestination; import org.onap.appc.srvcomm.messaging.event.EventHeader; import org.onap.appc.srvcomm.messaging.event.EventMessage; @@ -39,7 +39,7 @@ public class DCAEReporterPluginImpl implements DCAEReporterPlugin { private static final String ATTR_API_VERSION = "input.common-header.api-ver"; private static final String ATTR_REQUEST_ID = "input.common-header.request-id"; private static final String PARAM_EVENT_TOPIC_NAME = "event-topic-name"; - private EventSender eventSender; + private EventSenderInterface eventSender; public DCAEReporterPluginImpl() { // do nothing @@ -50,7 +50,7 @@ public class DCAEReporterPluginImpl implements DCAEReporterPlugin { * * @param eventSender to be set */ - public void setEventSender(EventSender eventSender) { + public void setEventSender(EventSenderInterface eventSender) { this.eventSender = eventSender; } diff --git a/appc-dg/appc-dg-shared/appc-dg-common/src/main/resources/OSGI-INF/blueprint/blueprint.xml b/appc-dg/appc-dg-shared/appc-dg-common/src/main/resources/OSGI-INF/blueprint/blueprint.xml index a90f463b9..27062d736 100644 --- a/appc-dg/appc-dg-shared/appc-dg-common/src/main/resources/OSGI-INF/blueprint/blueprint.xml +++ b/appc-dg/appc-dg-shared/appc-dg-common/src/main/resources/OSGI-INF/blueprint/blueprint.xml @@ -33,7 +33,7 @@ + interface="org.onap.appc.srvcomm.messaging.event.EventSenderInterface"/> -- cgit 1.2.3-korg