KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > sourceforge > tracelog > config > ConfigFile


1 /*
2  * ConfigFile.java May 8, 2007
3  */

4 package net.sourceforge.tracelog.config;
5
6 import java.io.File JavaDoc;
7 import java.util.List JavaDoc;
8
9 import net.sourceforge.tracelog.utils.ProjectProperties;
10
11 public abstract class ConfigFile {
12     protected File JavaDoc configFile;
13     protected ProjectProperties projectProperties;
14
15     protected ConfigFile() {
16         this.projectProperties = ProjectProperties.getInstance();
17         this.configFile = null;
18     }
19
20     public final boolean isConfigFileExists() {
21         return configFile != null && configFile.exists();
22     }
23
24     /**
25      * @param logBeanList
26      * @deprecated
27      */

28     public abstract List JavaDoc<LogBean> getConfig();
29
30     /**
31      * @param logBeanList
32      * @deprecated
33      */

34     public abstract void saveConfig(List JavaDoc<LogBean> logBeanList);
35
36     public abstract UserConfig getUserConfig();
37
38     public abstract void saveUserConfig(UserConfig userConfig);
39
40 }
41
Popular Tags