Menu

[r678]: / javaontracks / src / net / jot / web / JOTFlowManager.java  Maximize  Restore  History

Download this file

33 lines (27 with data), 853 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/*
------------------------------------
JavaOnTracks Thibaut Colar
tcolar-jot AT colar DOT net
Artistic Licence 2.0
http://www.javaontracks.net
------------------------------------
*/
package net.jot.web;
import java.io.File;
import net.jot.logger.JOTLogger;
/**
* High level manager that handles loading and parsing flow.conf.
* @author thibautc
*/
public class JOTFlowManager
{
public static final String confFileName = "flow.conf";
public static JOTFlowConfig init(String confFolder)
{
File flowFile = new File(confFolder, confFileName);
JOTLogger.log(JOTLogger.CAT_FLOW, JOTLogger.INFO_LEVEL, JOTFlowManager.class, "Will start parsing flow file: " + flowFile.getAbsolutePath());
// parse & cache the flow.conf file.
JOTFlowConfig config = JOTFlowConfigParser.parseFlowFile(flowFile);
return config;
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.