Add getter for ControlLoopPolicy instance in ControlLoopProcessor 22/107822/1
authordc443y <dc443y@att.com>
Mon, 18 May 2020 21:34:02 +0000 (16:34 -0500)
committerdc443y <dc443y@att.com>
Mon, 18 May 2020 21:47:03 +0000 (16:47 -0500)
This is to allow other frameworks, such as M2, to obtain the
ControlLoopPolicy instance after the raw ToscaPolicy has
been adapted.

Issue-ID: POLICY-2574
Change-Id: I003e60991f6e4007bd30f0e9392f6fa8bf21733a
Signed-off-by: dc443y <dc443y@att.com>
controlloop/common/eventmanager/src/main/java/org/onap/policy/controlloop/processor/ControlLoopProcessor.java

index 104e28c..f1835d7 100644 (file)
@@ -54,6 +54,7 @@ public class ControlLoopProcessor implements Serializable {
     private static final long serialVersionUID = 1L;
     private static final Logger logger = LoggerFactory.getLogger(ControlLoopProcessor.class);
 
+    @Getter
     private final ControlLoopPolicy policy;
     private String currentNestedPolicyId;