package Ġfund . cyber . pump . common Ċ Ċ import Ġfund . cyber . pump . common . pool . Pool Pump Ċ import Ġfund . cyber . search . configuration . WITH _ ME MP O OL Ċ import Ġfund . cyber . search . configuration . env Ċ import Ġorg . slf 4 j . LoggerFactory Ċ import Ġorg . springframework . beans . factory . NoSuch Bean Definition Exception Ċ import Ġorg . springframework . boot . Spring Application Ċ Ċ private Ġval Ġlog Ġ= ĠLoggerFactory . getLogger ( Spring Application :: class . java ) !! Ċ Ċ fun ĠSpring Application . run Pump ( args : ĠArray < String >) Ġ{ ĊĠĠĠ Ġthis . set Register Shutdown Hook ( false ) ĊĠĠĠ Ġval Ġapplication Context Ġ= Ġthis . run (* args ) ĊĊĠĠĠ Ġif Ġ( env ( WITH _ ME MP O OL , Ġfalse )) Ġ{ ĊĠĠĠĠĠĠĠ Ġtry Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġpool Pump Ġ= Ġapplication Context . getBean ( Pool Pump :: class . java ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġpool Pump . start Pump () ĊĠĠĠĠĠĠĠ Ġ} Ġcatch Ġ( e : ĠNoSuch Bean Definition Exception ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġlog . error (" No Ġpump Ġfor Ġpool Ġfound !") ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġval Ġpump Ġ= Ġapplication Context . getBean ( Chain Pump :: class . java ) ĊĠĠĠ Ġpump . start Pump () Ċ } Ċ