From 7bf40c2ceac4154e1b3b08d91e9707c5cc1830f1 Mon Sep 17 00:00:00 2001 From: jhh Date: Thu, 6 Feb 2020 14:10:52 -0600 Subject: Store DomainMaker in PolicyEngine. Since this is going to be used in drools-applications, better to have it globally, reusing underlying "schema resources" rather than maintaining one or more instances in drools-applications. Issue-ID: POLICY-2345 Signed-off-by: jhh Change-Id: I0e339e77ea6281308be00381c7eda2cc9f4d6ac1 --- .../src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'feature-lifecycle') 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 b37d0149..e2c212cd 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 @@ -49,6 +49,7 @@ import org.onap.policy.common.utils.network.NetworkUtil; import org.onap.policy.drools.persistence.SystemPersistenceConstants; import org.onap.policy.drools.policies.DomainMaker; import org.onap.policy.drools.system.PolicyController; +import org.onap.policy.drools.system.PolicyEngineConstants; import org.onap.policy.models.pdp.concepts.PdpResponseDetails; import org.onap.policy.models.pdp.concepts.PdpStateChange; import org.onap.policy.models.pdp.concepts.PdpStatus; @@ -85,7 +86,7 @@ public class LifecycleFsm implements Startable { protected final Properties properties; @Getter(AccessLevel.PACKAGE) - protected final DomainMaker domainMaker = new DomainMaker(); + protected final DomainMaker domainMaker = PolicyEngineConstants.getManager().getDomainMaker(); protected TopicSource source; protected TopicSinkClient client; -- cgit 1.2.3-korg