diff options
Diffstat (limited to 'openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main')
-rw-r--r-- | openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main/java/org/openecomp/sdc/healing/healers/ForwarderCapabilityHealer.java | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main/java/org/openecomp/sdc/healing/healers/ForwarderCapabilityHealer.java b/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main/java/org/openecomp/sdc/healing/healers/ForwarderCapabilityHealer.java index 038a0d889a..c2d7c2c5e4 100644 --- a/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main/java/org/openecomp/sdc/healing/healers/ForwarderCapabilityHealer.java +++ b/openecomp-be/lib/openecomp-healing-lib/openecomp-sdc-healing-impl/src/main/java/org/openecomp/sdc/healing/healers/ForwarderCapabilityHealer.java @@ -28,12 +28,23 @@ public class ForwarderCapabilityHealer implements Healer { private MdcDataDebugMessage mdcDataDebugMessage = new MdcDataDebugMessage(); - private final ServiceModelDao<ToscaServiceModel, ServiceElement> serviceModelDao = - ServiceModelDaoFactory.getInstance().createInterface(); + private final ServiceModelDao<ToscaServiceModel, ServiceElement> serviceModelDao; private static ToscaAnalyzerService toscaAnalyzerService = new ToscaAnalyzerServiceImpl(); private static final String FORWARDER_CAPABILITY_ID = "Forwarder"; private static final String UNDERSCORE = "_"; + public ForwarderCapabilityHealer() { + this.serviceModelDao = + ServiceModelDaoFactory.getInstance().createInterface(); + } + + public ForwarderCapabilityHealer(ServiceModelDao<ToscaServiceModel, ServiceElement> + serviceModelDao, + ToscaAnalyzerService toscaAnalyzerService){ + this.serviceModelDao = serviceModelDao; + this.toscaAnalyzerService = toscaAnalyzerService; + } + @Override public Object heal(Map<String, Object> healingParams) throws Exception { String vspId = (String) healingParams.get(SdcCommon.VSP_ID); |