public static void initialize ( ) { if ( isInitialized ) { return ; } isInitialized = true ; printLogo ( ) ; try { logger . info ( "--- Para.initialize() [{}] ---" , Config . ENVIRONMENT ) ; for ( InitializeListener initListener : INIT_LISTENERS ) { if ( initListener != null ) { initListener . onInitialize ( ) ; logger . debug ( "Executed {}.onInitialize()." , initListener . getClass ( ) . getName ( ) ) ; } } logger . info ( "Instance #{} initialized." , Config . WORKER_ID ) ; } catch ( Exception e ) { logger . error ( "Failed to initialize Para." , e ) ; } }
Executes all initialize listeners and prints logo . Call this method first .