* ============LICENSE_END=========================================================
*/
-package org.openecomp.sdc.generator.service;
-
-import static org.openecomp.sdc.generator.data.GeneratorConstants.ERROR_CATEGORY;
-import static org.openecomp.sdc.generator.data.GeneratorConstants.ERROR_CODE;
-import static org.openecomp.sdc.generator.data.GeneratorConstants.ERROR_DESCRIPTION;
-import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_ERROR_CODE;
-import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_ERROR_SERVICE_INSTANTIATION_FAILED;
-import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_PARTNER_NAME;
-import static org.openecomp.sdc.generator.data.GeneratorConstants.PARTNER_NAME;
+package org.onap.sdc.generator.service;
+import org.onap.sdc.generator.data.GenerationData;
+import org.onap.sdc.generator.data.GeneratorConstants;
import org.openecomp.sdc.logging.api.Logger;
import org.openecomp.sdc.logging.api.LoggerFactory;
-import org.openecomp.sdc.generator.data.Artifact;
-import org.openecomp.sdc.generator.data.GenerationData;
-import org.openecomp.sdc.generator.logging.CategoryLogLevel;
+import org.onap.sdc.generator.data.Artifact;
+import org.onap.sdc.generator.logging.CategoryLogLevel;
import org.slf4j.MDC;
-import java.io.PrintWriter;
-import java.io.StringWriter;
import java.util.List;
import java.util.Map;
Class.forName("org.openecomp.sdc.generator.impl.ArtifactGenerationServiceImpl")
.newInstance());
} catch (Exception exception) {
- MDC.put(PARTNER_NAME, GENERATOR_PARTNER_NAME);
- MDC.put(ERROR_CATEGORY, CategoryLogLevel.ERROR.name());
- MDC.put(ERROR_CODE, GENERATOR_ERROR_CODE);
- MDC.put(ERROR_DESCRIPTION, GENERATOR_ERROR_SERVICE_INSTANTIATION_FAILED);
- log.error(GENERATOR_ERROR_SERVICE_INSTANTIATION_FAILED, exception);
+ MDC.put(GeneratorConstants.PARTNER_NAME, GeneratorConstants.GENERATOR_PARTNER_NAME);
+ MDC.put(GeneratorConstants.ERROR_CATEGORY, CategoryLogLevel.ERROR.name());
+ MDC.put(GeneratorConstants.ERROR_CODE, GeneratorConstants.GENERATOR_ERROR_CODE);
+ MDC.put(
+ GeneratorConstants.ERROR_DESCRIPTION, GeneratorConstants.GENERATOR_ERROR_SERVICE_INSTANTIATION_FAILED);
+ log.error(GeneratorConstants.GENERATOR_ERROR_SERVICE_INSTANTIATION_FAILED, exception);
}
- log.debug(GENERATOR_ERROR_SERVICE_INSTANTIATION_FAILED);
+ log.debug(GeneratorConstants.GENERATOR_ERROR_SERVICE_INSTANTIATION_FAILED);
return null;
}