/** * Limited scope constructor to prevent instantiation. */ /* * private SeleniumPropertyManager() * { * * properties = new Properties.Settings(); * try * { * ClassLoader loader = ClassLoader.getSystemClassLoader(); * * if (loader != null) * { * URL url = loader.getResource(CONFIG_LOCATION); * if (url == null) * { * url = loader.getResource(File.separator + CONFIG_LOCATION); * } * FileStream inputStream = url.openStream(); * if (inputStream == null) * { * throw new FileNotFoundException("Property file '" + CONFIG_LOCATION + "' not found in the classpath!"); * } * properties.load(inputStream); * } * } * catch (FileNotFoundException e) * { * error = e.StackTrace; * } * catch (IOException e) * { * error = e.StackTrace; * } * * } **/ /* * Gets an instance of EPPropertyManager. * * @return an instance of EPPropertyManager */ public static void getInstance(ref SeleniumPropertyManager sessioninstance) { instance = sessioninstance; if (instance == null) { // instance = new SeleniumPropertyManager(); } }
/** * Limited scope constructor to prevent instantiation. */ /* private SeleniumPropertyManager() { properties = new Properties.Settings(); try { ClassLoader loader = ClassLoader.getSystemClassLoader(); if (loader != null) { URL url = loader.getResource(CONFIG_LOCATION); if (url == null) { url = loader.getResource(File.separator + CONFIG_LOCATION); } FileStream inputStream = url.openStream(); if (inputStream == null) { throw new FileNotFoundException("Property file '" + CONFIG_LOCATION + "' not found in the classpath!"); } properties.load(inputStream); } } catch (FileNotFoundException e) { error = e.StackTrace; } catch (IOException e) { error = e.StackTrace; } * } **/ /* * Gets an instance of EPPropertyManager. * * @return an instance of EPPropertyManager */ public static void getInstance(ref SeleniumPropertyManager sessioninstance) { instance = sessioninstance; if (instance == null) { // instance = new SeleniumPropertyManager(); } }