01: package net.sourceforge.tracelog.config;
02:
03: public class ConfigFileFactory {
04:
05: private static ConfigFileFactory configFileFactory;
06:
07: public static ConfigFileFactory getInstance() {
08: if (configFileFactory == null) {
09: configFileFactory = new ConfigFileFactory();
10: }
11:
12: return configFileFactory;
13: }
14:
15: private ConfigFileFactory() {
16: }
17:
18: public ConfigFile getConfigFile() {
19: return new XMLConfigFile();
20: }
21: }
|