/*
 * Created on 15-Jul-2008
 *
 * TODO 
 */
package uk.ac.roe.wfau;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * @author mar
 *
 */
public class Properties_SSA {
    private static Properties_SSA singletonObject;
    public static String SSSCGIURL="DEFAULT";
	/** A private Constructor prevents any other class from instantiating. */
	private Properties_SSA() {
	    System.out.println("INIT...");

		//	 Optional Code
	    try {
	    InputStream inProp = getClass().getClassLoader().getResourceAsStream("SSA.properties");
	    Properties props = new Properties();
	
	    
           props.load(inProp);
	       SSSCGIURL=props.getProperty("SSSCGIURL");
        } catch (Exception e) {
            // TODO Auto-generated catch block
            //e.printStackTrace();
        }
	    
	}
	public static synchronized  Properties_SSA getSingletonObject() {
		if (singletonObject == null) {
			singletonObject = new Properties_SSA();
		}
		return singletonObject;
	}
	public Object clone() throws CloneNotSupportedException {
		throw new CloneNotSupportedException();
	}
}







