private void readProperties ( ) { InputStream input = null ; try { input = getClass ( ) . getClassLoader ( ) . getResourceAsStream ( PROP_FILE_NAME ) ; if ( input == null ) { logger . info ( "Unnable to find " + PROP_FILE_NAME ) ; return ; } prop . load ( input ) ; } catch ( Exception e ) { logger . info ( "exception in PropertiesConfig readProperties" ) ; } finally { if ( input != null ) { try { input . close ( ) ; } catch ( Exception e ) { logger . info ( "exception in PropertiesConfig readProperties finally" ) ; } } } }
Method to read propeties file and store the data