public static void init ( com . typesafe . config . Config conf ) { try { config = ConfigFactory . load ( ) . getConfig ( PARA ) ; if ( conf != null ) { config = conf . withFallback ( config ) ; } configMap = new HashMap <> ( ) ; for ( Map . Entry < String , ConfigValue > con : config . entrySet ( ) ) { if ( con . getValue ( ) . valueType ( ) != ConfigValueType . LIST ) { configMap . put ( con . getKey ( ) , config . getString ( con . getKey ( ) ) ) ; } } } catch ( Exception ex ) { logger . warn ( "Para configuration file 'application.(conf|json|properties)' is missing from classpath." ) ; config = com . typesafe . config . ConfigFactory . empty ( ) ; } }
Initializes the configuration class by loading the configuration file .