summaryrefslogtreecommitdiffstats
path: root/reception/src/main
diff options
context:
space:
mode:
authorramverma <ram.krishna.verma@est.tech>2019-08-06 14:14:01 +0000
committerramverma <ram.krishna.verma@est.tech>2019-08-06 14:14:01 +0000
commitc04dd4a6984734869ef6888f95d304d3d53c1923 (patch)
treebb98d757a5890b1783959dcd9c2ff52a6341dc01 /reception/src/main
parent039cd619bc102865d664bbf6b003cd33b243eaf1 (diff)
Changing parameters to use ParameterGroupImpl
1. Changing all the decoders & handlers parameters to use ParameterGroupImpl. 2. Fixed all the test cases. Issue-ID: POLICY-1890 Change-Id: I4a124c0acc650020977ac8e2cee143c72003973a Signed-off-by: ramverma <ram.krishna.verma@est.tech>
Diffstat (limited to 'reception/src/main')
-rw-r--r--reception/src/main/java/org/onap/policy/distribution/reception/parameters/PolicyDecoderConfigurationParameterGroup.java17
-rw-r--r--reception/src/main/java/org/onap/policy/distribution/reception/parameters/ReceptionHandlerConfigurationParameterGroup.java20
2 files changed, 11 insertions, 26 deletions
diff --git a/reception/src/main/java/org/onap/policy/distribution/reception/parameters/PolicyDecoderConfigurationParameterGroup.java b/reception/src/main/java/org/onap/policy/distribution/reception/parameters/PolicyDecoderConfigurationParameterGroup.java
index 00ae0a3a..1a3551a8 100644
--- a/reception/src/main/java/org/onap/policy/distribution/reception/parameters/PolicyDecoderConfigurationParameterGroup.java
+++ b/reception/src/main/java/org/onap/policy/distribution/reception/parameters/PolicyDecoderConfigurationParameterGroup.java
@@ -1,6 +1,7 @@
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2018 Ericsson. All rights reserved.
+ * Modifications Copyright (C) 2019 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,6 +22,7 @@
package org.onap.policy.distribution.reception.parameters;
import org.onap.policy.common.parameters.ParameterGroup;
+import org.onap.policy.common.parameters.ParameterGroupImpl;
import org.onap.policy.distribution.reception.decoding.PolicyDecoder;
/**
@@ -28,18 +30,9 @@ import org.onap.policy.distribution.reception.decoding.PolicyDecoder;
*
* @author Ram Krishna Verma (ram.krishna.verma@ericsson.com)
*/
-public abstract class PolicyDecoderConfigurationParameterGroup implements ParameterGroup {
+public abstract class PolicyDecoderConfigurationParameterGroup extends ParameterGroupImpl {
- private String name;
-
- @Override
- public String getName() {
- return name;
- }
-
- @Override
- public void setName(final String name) {
- this.name = name;
+ public PolicyDecoderConfigurationParameterGroup(final String name) {
+ super(name);
}
-
}
diff --git a/reception/src/main/java/org/onap/policy/distribution/reception/parameters/ReceptionHandlerConfigurationParameterGroup.java b/reception/src/main/java/org/onap/policy/distribution/reception/parameters/ReceptionHandlerConfigurationParameterGroup.java
index 3fa877db..d43f0856 100644
--- a/reception/src/main/java/org/onap/policy/distribution/reception/parameters/ReceptionHandlerConfigurationParameterGroup.java
+++ b/reception/src/main/java/org/onap/policy/distribution/reception/parameters/ReceptionHandlerConfigurationParameterGroup.java
@@ -1,6 +1,7 @@
/*-
* ============LICENSE_START=======================================================
* Copyright (C) 2018 Ericsson. All rights reserved.
+ * Modifications Copyright (C) 2019 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -21,24 +22,15 @@
package org.onap.policy.distribution.reception.parameters;
import org.onap.policy.common.parameters.ParameterGroup;
+import org.onap.policy.common.parameters.ParameterGroupImpl;
import org.onap.policy.distribution.reception.handling.ReceptionHandler;
/**
- * Base class of all {@link ParameterGroup} classes for configuration parameters for
- * {@link ReceptionHandler} classes.
+ * Base class of all {@link ParameterGroup} classes for configuration parameters for {@link ReceptionHandler} classes.
*/
-public abstract class ReceptionHandlerConfigurationParameterGroup implements ParameterGroup {
+public abstract class ReceptionHandlerConfigurationParameterGroup extends ParameterGroupImpl {
- private String name;
-
- @Override
- public String getName() {
- return name;
- }
-
- @Override
- public void setName(final String name) {
- this.name = name;
+ public ReceptionHandlerConfigurationParameterGroup(final String name) {
+ super(name);
}
-
}