diff options
author | jhh <jorge.hernandez-herrero@att.com> | 2020-02-06 14:10:52 -0600 |
---|---|---|
committer | jhh <jorge.hernandez-herrero@att.com> | 2020-02-06 14:10:52 -0600 |
commit | 7bf40c2ceac4154e1b3b08d91e9707c5cc1830f1 (patch) | |
tree | 8bf454bc0bc74a0eb6375aaeb74f00165f3e1225 /feature-lifecycle | |
parent | 1a36afd3037837508cf23e4e476fddcf531dc918 (diff) |
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 <jorge.hernandez-herrero@att.com>
Change-Id: I0e339e77ea6281308be00381c7eda2cc9f4d6ac1
Diffstat (limited to 'feature-lifecycle')
-rw-r--r-- | feature-lifecycle/src/main/java/org/onap/policy/drools/lifecycle/LifecycleFsm.java | 3 |
1 files changed, 2 insertions, 1 deletions
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; |