package config;

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

public class ConfigExtractor {
    private final String configFile = "../conf.properties";
    private static Properties configProp;
    private static ConfigExtractor configInstance = null;

    private ConfigExtractor() {
        InputStream in = getClass().getResourceAsStream(configFile);
        configProp = new Properties();

        try {
            configProp.load(in);
        } catch (IOException e) {
            e.printStackTrace();
        }

    }

    public static String getProperty(String property) {
        if (configInstance == null) {
            configInstance = new ConfigExtractor();
        }

        return configProp.getProperty(property);
    }
}

@@ -87,20 +87,116 @@
 til.
-Properties;%0A
+Enumeration;%0Aimport java.util.Properties;%0A%0A/**%0A * Extract configuration/properties  from conf.properties%0A */
 %0Apub
@@ -653,24 +653,179 @@
   %7D%0A%0A    %7D%0A%0A
+    /**%0A     * Read a property value from the config file%0A     *%0A     * @param property we want to find value for%0A     * @return value of property%0A     */%0A
     public s
@@ -1024,10 +1024,334 @@
 ;%0A    %7D%0A
+%0A%0A    /**%0A     * Retrieve a enumeration with all properties.%0A     * @return properties%0A     */%0A    public static Enumeration%3CString%3E getPropertyList() %7B%0A        if (configInstance == null) %7B%0A            configInstance = new ConfigExtractor();%0A        %7D%0A%0A        return (Enumeration%3CString%3E)configProp.propertyNames();%0A    %7D%0A
 %7D%0A

Add comments, add method to get all property names.