From 4cc7ec656d541c9d0c929e64c5e05b2b85da072f Mon Sep 17 00:00:00 2001 From: jhh Date: Sun, 16 Feb 2020 19:23:31 -0600 Subject: Native policies support in docker Depends on https://gerrit.onap.org/r/#/c/policy/docker/+/101758/ for package cleanup. The work is needed to run the PDP-D with no applications, native policies may exercise this set up. This work provides a functional image with a precooked installation. This work will allow fixing and cleaning up of CSITs specific to this repo which maintenance is problematic. Issue-ID: POLICY-2181 Signed-off-by: jhh Change-Id: I62a1b9b556bd2f6c0c243062cb864dfed80e2bea --- .../java/org/onap/policy/drools/lifecycle/LifecycleFsm.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'feature-lifecycle/src/main') diff --git a/feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java b/feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java index e2c212cd..119ae7aa 100644 --- a/feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java +++ b/feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java @@ -20,6 +20,7 @@ package org.onap.policy.drools.lifecycle; +import com.fasterxml.jackson.annotation.JsonIgnore; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -30,7 +31,6 @@ import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ScheduledFuture; import java.util.concurrent.ScheduledThreadPoolExecutor; import java.util.concurrent.TimeUnit; -import lombok.AccessLevel; import lombok.Getter; import lombok.NonNull; import lombok.Setter; @@ -85,9 +85,6 @@ public class LifecycleFsm implements Startable { protected final Properties properties; - @Getter(AccessLevel.PACKAGE) - protected final DomainMaker domainMaker = PolicyEngineConstants.getManager().getDomainMaker(); - protected TopicSource source; protected TopicSinkClient client; @@ -141,6 +138,12 @@ public class LifecycleFsm implements Startable { new PolicyTypeRulesController(this, POLICY_TYPE_DROOLS_NATIVE_RULES)); } + @JsonIgnore + @GsonJsonIgnore + public DomainMaker getDomainMaker() { + return PolicyEngineConstants.getManager().getDomainMaker(); + } + @Override public boolean isAlive() { return client != null && client.getSink().isAlive(); -- cgit 1.2.3-korg