diff options
author | Patrick Brady <patrick.brady@att.com> | 2019-10-29 15:35:20 -0700 |
---|---|---|
committer | Takamune Cho <takamune.cho@att.com> | 2019-11-08 17:20:07 +0000 |
commit | b16ce237d780314ea8bbaf17cdb432bc694ee7e7 (patch) | |
tree | 4deb7fc697d7b2e539fff5d8eb490a2b0cffbef0 /appc-dg/appc-dg-shared | |
parent | 790ddb83355800cc037ea1ea3ca8610bb78018d5 (diff) |
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 <patrick.brady@att.com>
Issue-ID: APPC-1744
Diffstat (limited to 'appc-dg/appc-dg-shared')
2 files changed, 4 insertions, 4 deletions
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 @@ <service id="JsonDgUtil" interface="org.onap.appc.dg.common.JsonDgUtil" ref="JsonDgUtilBean"/> <reference id="eventSenderReference" availability="mandatory" activation="eager" - interface="org.onap.appc.srvcomm.messaging.event.EventSender"/> + interface="org.onap.appc.srvcomm.messaging.event.EventSenderInterface"/> <bean id="DCAEReporterPluginBean" class="org.onap.appc.dg.common.impl.DCAEReporterPluginImpl" scope="singleton"> |