diff options
author | liamfallon <liam.fallon@ericsson.com> | 2018-09-20 21:13:19 +0100 |
---|---|---|
committer | liamfallon <liam.fallon@ericsson.com> | 2018-09-20 23:22:35 +0100 |
commit | a02548ec2e98a8a13cd76ecc83379b13cd26030b (patch) | |
tree | 1159028f8ac452b61fa4dc0e4a510ba7100ace26 /plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/main | |
parent | aece3940d349329efe6d220961f6f2a487f90565 (diff) |
Fix bug with POJO events in APex
When an envet should be decoded entirely into a POJO
and is too complex for Avro, apex decoding breaks.
This reviuew fixes thsi issue.
Issue-ID: POLICY-1034
Change-Id: Iccd739c4bb5c1645a2a7165f5bbfdfd4b964d79e
Signed-off-by: liamfallon <liam.fallon@ericsson.com>
Diffstat (limited to 'plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/main')
-rw-r--r-- | plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/main/java/org/onap/policy/apex/plugins/event/protocol/yaml/YamlEventProtocolParameters.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/main/java/org/onap/policy/apex/plugins/event/protocol/yaml/YamlEventProtocolParameters.java b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/main/java/org/onap/policy/apex/plugins/event/protocol/yaml/YamlEventProtocolParameters.java index 09a7f54aa..3c0011c24 100644 --- a/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/main/java/org/onap/policy/apex/plugins/event/protocol/yaml/YamlEventProtocolParameters.java +++ b/plugins/plugins-event/plugins-event-protocol/plugins-event-protocol-yaml/src/main/java/org/onap/policy/apex/plugins/event/protocol/yaml/YamlEventProtocolParameters.java @@ -69,18 +69,17 @@ public class YamlEventProtocolParameters extends EventProtocolTextTokenDelimited * the parameter service. */ public YamlEventProtocolParameters() { - this(YamlEventProtocolParameters.class.getCanonicalName(), YAML_EVENT_PROTOCOL_LABEL); + this(YAML_EVENT_PROTOCOL_LABEL); } /** * Constructor to create an event protocol parameters instance with the name of a sub class of * this class. * - * @param parameterClassName the class name of a sub class of this class * @param eventProtocolLabel the name of the event protocol for this plugin */ - public YamlEventProtocolParameters(final String parameterClassName, final String eventProtocolLabel) { - super(parameterClassName); + public YamlEventProtocolParameters(final String eventProtocolLabel) { + super(); // Set the event protocol properties for the YAML event protocol this.setLabel(eventProtocolLabel); |