1 4 package net.sourceforge.tracelog.config; 5 6 import java.io.File ; 7 import java.util.List ; 8 9 import net.sourceforge.tracelog.utils.ProjectProperties; 10 11 public abstract class ConfigFile { 12 protected File 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 28 public abstract List <LogBean> getConfig(); 29 30 34 public abstract void saveConfig(List <LogBean> logBeanList); 35 36 public abstract UserConfig getUserConfig(); 37 38 public abstract void saveUserConfig(UserConfig userConfig); 39 40 } 41 | Popular Tags |