private void readPropertiesFile ( final String custConfFileName ) { final Properties p = new Properties ( ) ; LOGGER . log ( READ_CONF_FILE , custConfFileName ) ; try ( InputStream is = ClasspathUtility . loadInputStream ( custConfFileName ) ) { // Read the properties file p . load ( is ) ; for ( final Map . Entry < Object , Object > entry : p . entrySet ( ) ) { if ( this . propertiesParametersMap . containsKey ( entry . getKey ( ) ) ) { LOGGER . log ( UPDATE_PARAMETER , entry . getKey ( ) , entry . getValue ( ) ) ; } else { LOGGER . log ( STORE_PARAMETER , entry . getKey ( ) , entry . getValue ( ) ) ; } storePropertiesParameter ( entry ) ; } } catch ( final IOException e ) { LOGGER . error ( CONF_READING_ERROR , custConfFileName ) ; } }
Read a customized configuration file to load parameters values .