src/main/java/org/s2n/ddt/bean/UtlProps.java
public  final  void initialize(File filePath ) {
	
		InputStream is = null;
		if(filePath == null){
			logger.warn("No file path to url props. Will not load/ re load");
			return;
		}
		try {
			is = new BufferedInputStream(new FileInputStream(filePath));
			Properties p = new Properties();
			p.load(is);
			mainProps.clear();//for re init, only discard current if new set was loaded successfully.
			mainProps.putAll(p);
		} catch (Exception e) {
			logger.warn("UtlConf Init " + e, e);
		} finally {
			if(is != null) {
				try {
					is.close();
				} catch (Exception e2) {
					logger.warn("UtlConf Init close is :" + e2, e2);
				}
			}
		}
		
	}
/**
	 * Method to initialize the properties and the data source by using the
	 * database properties configured in user defined file
	 */
Method to initialize the properties and the data source by using the
database properties configured in user defined file
Method to initialize the properties and the data source by using the database properties configured in user defined file
public  final  void initialize(File filePath ) {
		InputStream is = null;
		if(filePath == null){
			logger.warn("No file path to url props. Will not load/ re load");
			return;
		}
		try {
			is = new BufferedInputStream(new FileInputStream(filePath));
			Properties p = new Properties();
			p.load(is);
			mainProps.clear();
			mainProps.putAll(p);
		} catch (Exception e) {
			logger.warn("UtlConf Init " + e, e);
		} finally {
			if(is != null) {
				try {
					is.close();
				} catch (Exception e2) {
					logger.warn("UtlConf Init close is :" + e2, e2);
				}
			}
		}
	}
public final void initialize ( File filePath ) { InputStream is = null ; if ( filePath == null ) { logger . warn ( "No file path to url props. Will not load/ re load" ) ; return ; } try { is = new BufferedInputStream ( new FileInputStream ( filePath ) ) ; Properties p = new Properties ( ) ; p . load ( is ) ; mainProps . clear ( ) ; mainProps . putAll ( p ) ; } catch ( Exception e ) { logger . warn ( "UtlConf Init " + e , e ) ; } finally { if ( is != null ) { try { is . close ( ) ; } catch ( Exception e2 ) { logger . warn ( "UtlConf Init close is :" + e2 , e2 ) ; } } } }
Method to initialize the properties and the data source by using the
 database properties configured in user defined file
Method to initialize the properties and the data source by using the database properties configured in user defined file
//for re init, only discard current if new set was loaded successfully.