01: package net.sourceforge.tracelog.config;
02:
03: import java.io.File;
04: import java.util.List;
05:
06: import net.sourceforge.tracelog.utils.ProjectProperties;
07:
08: public abstract class ConfigFile {
09: protected File configFile;
10: protected ProjectProperties projectProperties;
11:
12: protected ConfigFile() {
13: this .projectProperties = ProjectProperties.getInstance();
14: this .configFile = null;
15: }
16:
17: /**
18: * @param logBeanList
19: * @deprecated
20: */
21: public abstract List<LogBean> getConfig();
22:
23: public abstract UserConfig getUserConfig();
24:
25: public final boolean isConfigFileExists() {
26: return configFile != null && configFile.exists();
27: }
28:
29: /**
30: * @param logBeanList
31: * @deprecated
32: */
33: public abstract void saveConfig(List<LogBean> logBeanList);
34:
35: public abstract void saveUserConfig(UserConfig userConfig);
36:
37: }
|