summaryrefslogtreecommitdiffstats
path: root/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/Config.java
diff options
context:
space:
mode:
Diffstat (limited to 'deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/Config.java')
-rw-r--r--deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/Config.java54
1 files changed, 0 insertions, 54 deletions
diff --git a/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/Config.java b/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/Config.java
deleted file mode 100644
index 74d80e04..00000000
--- a/deprecated-workflow-designer/sdc-workflow-designer-server/src/main/java/org/onap/sdc/workflowdesigner/config/Config.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/**
- * Copyright (c) 2017 ZTE Corporation.
- * All rights reserved. This program and the accompanying materials
- * are made available under the Apache License, Version 2.0
- * and the Eclipse Public License v1.0 which both accompany this distribution,
- * and are available at http://www.eclipse.org/legal/epl-v10.html
- * and http://www.apache.org/licenses/LICENSE-2.0
- *
- * Contributors:
- * ZTE - initial API and implementation and/or initial documentation
- */
-package org.onap.sdc.workflowdesigner.config;
-
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.io.InputStream;
-import java.util.Properties;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public class Config {
- private static Logger log = LoggerFactory.getLogger(Config.class);
- private static String configFilePath = "bpmn.config.properties";
- public final static String HANDLER_ClASS = "handlerClass";
- public final static String TEMPLATE_PATH = "templatePath";
-
- public final static Properties PROPERTIES = load();
-
- public static Properties load() {
- Properties properties = new Properties();
- InputStream in = null;
- try {
- in = Config.class.getClassLoader().getResourceAsStream(configFilePath);
- properties.load(in);
- } catch (FileNotFoundException e) {
- log.error(configFilePath, e);
- } catch (IOException e) {
- log.error(configFilePath, e);
- } catch (Exception e) {
- log.error(configFilePath, e);
- } finally {
- if (in != null) {
- try {
- in.close();
- } catch (IOException e) {
- log.error(configFilePath, e);
- }
- }
- }
-
- return properties;
- }
-}