X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=main%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fpolicy%2Fpap%2Fmain%2Fnotification%2FPolicyNotifier.java;h=641546c118059eb5b7989dbefda781fc290f1802;hb=176de86fcec998b378510b9f2a48e7be67023dad;hp=24e3ced6729378475e5e07aad555a7944c50671f;hpb=4861d87bfd949eae259f069c762e2ea24d058eb6;p=policy%2Fpap.git diff --git a/main/src/main/java/org/onap/policy/pap/main/notification/PolicyNotifier.java b/main/src/main/java/org/onap/policy/pap/main/notification/PolicyNotifier.java index 24e3ced6..641546c1 100644 --- a/main/src/main/java/org/onap/policy/pap/main/notification/PolicyNotifier.java +++ b/main/src/main/java/org/onap/policy/pap/main/notification/PolicyNotifier.java @@ -22,6 +22,7 @@ package org.onap.policy.pap.main.notification; import java.util.Set; +import lombok.AllArgsConstructor; import org.onap.policy.models.base.PfModelException; import org.onap.policy.models.pap.concepts.PolicyNotification; import org.onap.policy.models.provider.PolicyModelsProvider; @@ -35,6 +36,7 @@ import org.slf4j.LoggerFactory; /** * Notifier for completion of policy updates. */ +@AllArgsConstructor public class PolicyNotifier { private static final Logger logger = LoggerFactory.getLogger(PolicyNotifier.class); @@ -45,19 +47,6 @@ public class PolicyNotifier { private final PolicyModelsProviderFactoryWrapper daoFactory; - - /** - * Constructs the object. Loads all deployed policies into the internal cache. - * - * @param publisher notification publisher - * @param daoFactory factory used to load policy deployment data from the DB - */ - public PolicyNotifier(Publisher publisher, PolicyModelsProviderFactoryWrapper daoFactory) { - - this.publisher = publisher; - this.daoFactory = daoFactory; - } - /** * Processes a response from a PDP. *