package Ġcom . low es . aud itor . app . app . service Ċ Ċ import Ġcom . low es . aud itor . app . entities . interfaces . infrastructure . event . Event Subscriber Ċ import Ġorg . springframework . boot . context . event . Application Ready Event Ċ import Ġorg . springframework . context . Application Listener Ċ import Ġorg . springframework . stereotype . Service Ċ Ċ /** Ċ Ġ* ĠSubscribe Ġto ĠKafka Ġreceiver Ġon ĠApplication Ġstart Ġup Ġusing Ġ[ Application Listener ] Ġon ĠApplication Ready Event Ċ Ġ* Ġ@ property Ġevent Subscriber Ġinstance Ġof Ġ[ Event Subscriber ] Ċ Ġ* Ġ@ see ĠApplication Listener Ċ Ġ*/ Ċ @ Service Ċ class ĠConsumer Service ( ĊĠĠĠ Ġprivate Ġval Ġevent Subscriber : ĠEvent Subscriber Ċ ) Ġ: ĠApplication Listener < Application Ready Event > Ġ{ ĊĊĠĠĠ Ġ/** ĊĠĠĠĠ Ġ* ĠOn Ġapplication Ġevent ĊĠĠĠĠ Ġ* Ġ@ param Ġevent ĊĠĠĠĠ Ġ* Ġ@ see ĠApplication Listener . on Application Event ĊĠĠĠĠ Ġ*/ ĊĠĠĠ Ġoverride Ġfun Ġon Application Event ( event : ĠApplication Ready Event ) Ġ{ ĊĠĠĠĠĠĠĠ Ġevent Subscriber . consume Events (). subscribe () ĊĠĠĠ Ġ} Ċ } Ċ