package util;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

/**
 * Record Variables
 * @author dhuang
 *
 */
public class Variables {
	private Variables() {
		try {
			properties.load(new FileInputStream("META-INF/conf.properties"));
//			properties.load(Variables.class.getClassLoader().
//					getResource("conf.properties").openStream());
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	private static Variables INSTANCE = null;
	public static Variables getInstance() {
		if ( INSTANCE == null ) INSTANCE = new Variables();
		return INSTANCE;
	}
	
	public static void main(String[] args) {
		Variables.getInstance();
		System.out.println(Variables.getInstance().getProperties().getProperty("port"));
	}
	
	private Properties properties = new Properties();
	
	public Properties getProperties() {
		return properties;
	}
}

@@ -102,56 +102,8 @@
 s;%0A%0A
-/**%0A * Record Variables%0A * @author dhuang%0A *%0A */
 %0Apub

Delete Useless.