summaryrefslogtreecommitdiffstats
path: root/model/basic-model/src/main/java
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@ericsson.com>2018-07-24 14:23:37 +0100
committerliamfallon <liam.fallon@ericsson.com>2018-07-24 14:24:12 +0100
commit79ae3f7f229db52b8ab18c405c5109f8d18db1b6 (patch)
tree28b428ca68bfb677ac02faeffb3b6c69a252f66a /model/basic-model/src/main/java
parent41ecf036b7f1b3bdd56311a0bc706407b242faca (diff)
Fix bug in APEX parameter service
The parameter calss name was not initialized in the constructor of the parameter service The web socket connections() method is depricated and replaced by getConnections() Fixed order of build in main pom to put packages module last fixed some comments that were incorrect Change-Id: I6340655100655e181e2d97fe39def4874873dff5 Issue-ID: POLICY-954 Signed-off-by: liamfallon <liam.fallon@ericsson.com>
Diffstat (limited to 'model/basic-model/src/main/java')
-rw-r--r--model/basic-model/src/main/java/org/onap/policy/apex/model/basicmodel/service/AbstractParameters.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/model/basic-model/src/main/java/org/onap/policy/apex/model/basicmodel/service/AbstractParameters.java b/model/basic-model/src/main/java/org/onap/policy/apex/model/basicmodel/service/AbstractParameters.java
index c7ec2d662..cc7c7b06f 100644
--- a/model/basic-model/src/main/java/org/onap/policy/apex/model/basicmodel/service/AbstractParameters.java
+++ b/model/basic-model/src/main/java/org/onap/policy/apex/model/basicmodel/service/AbstractParameters.java
@@ -32,7 +32,7 @@ import org.onap.policy.apex.model.utilities.Assertions;
*/
public abstract class AbstractParameters {
// The name of the parameter subclass
- private String parameterClassName = this.getClass().getCanonicalName();
+ private final String parameterClassName;
/**
* Constructor, creates a parameter class that must be a subclass of {@link AbstractParameters}.
@@ -47,6 +47,8 @@ public abstract class AbstractParameters {
throw new ApexRuntimeException(
"class \"" + parameterClassName + "\" not found or not an instance of \"" + this.getClass().getCanonicalName() + "\"", e);
}
+
+ this.parameterClassName = parameterClassName;
}
/**