KickJava   Java API By Example, From Geeks To Geeks.

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


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

4 package net.sourceforge.tracelog.config;
5
6 public class ConfigFileFactory {
7
8     private static ConfigFileFactory configFileFactory;
9
10     private ConfigFileFactory() {
11     }
12
13     public static ConfigFileFactory getInstance() {
14         if (configFileFactory == null) {
15             configFileFactory = new ConfigFileFactory();
16         }
17
18         return configFileFactory;
19     }
20
21     public ConfigFile getConfigFile() {
22         return new XMLConfigFile();
23         // NewConfigFile newConfigFile = new NewConfigFile();
24
// return newConfigFile;
25
}
26 }
27
Popular Tags