aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java
diff options
context:
space:
mode:
authorliamfallon <liam.fallon@est.tech>2023-02-02 14:46:18 +0000
committerliamfallon <liam.fallon@est.tech>2023-02-02 17:32:43 +0000
commit5a9b9d9513a021c00415f9bee0698ea9c497c238 (patch)
tree2bbe69e15c3fd5b37a7306b7f8918de78752973e /main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java
parent6763c4b787593fa0a11668971ba2cb5cc87ad4c5 (diff)
Replace Eclipselink with Hibernate
Issue-ID: POLICY-4533 Change-Id: I8ba51dce05f537778a92547bceff6eb6d6099144 Signed-off-by: liamfallon <liam.fallon@est.tech>
Diffstat (limited to 'main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java')
-rw-r--r--main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java b/main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java
index 19b3c672..825208a4 100644
--- a/main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java
+++ b/main/src/main/java/org/onap/policy/pap/main/startstop/PapActivator.java
@@ -1,6 +1,6 @@
/*-
* ============LICENSE_START=======================================================
- * Copyright (C) 2019, 2022 Nordix Foundation.
+ * Copyright (C) 2019, 2022-2023 Nordix Foundation.
* Modifications Copyright (C) 2019-2021 AT&T Intellectual Property.
* Modifications Copyright (C) 2021-2022 Bell Canada. All rights reserved.
* ================================================================================
@@ -137,6 +137,9 @@ public class PapActivator extends ServiceManagerContainer {
// @formatter:off
+ // Note: This class is not Thread Safe. If more than one PAP component is started, the code below overwrites
+ // the parameter service and registry entries.
+
addAction("Meter Registry",
() -> Registry.register(PapConstants.REG_METER_REGISTRY, meterRegistry),
() -> Registry.unregister(PapConstants.REG_METER_REGISTRY));