package Ġcom . github . w tf jo ke . k af kap lay ground . messaging . publisher Ċ Ċ import Ġcom . github . w tf jo ke . k af kap lay ground . data . Show Ċ import Ġcom . github . w tf jo ke . k af kap lay ground . messaging . config . Topic Configuration Ċ import Ġorg . springframework . kafka . core . Kafka Template Ċ import Ġorg . springframework . stereotype . Component Ċ Ċ @ Component Ċ class ĠShow Publisher ( ĊĠĠĠ Ġprivate Ġval Ġshow Publisher : ĠKafka Template < String , ĠShow >, ĊĠĠĠ Ġprivate Ġval Ġtopics : ĠTopic Configuration Ċ ) Ġ{ ĊĊĠĠĠ Ġfun Ġpublish Show ( show To Publish : ĠShow ) Ġ{ ĊĠĠĠĠĠĠĠ Ġshow Publisher . send ( topics . show , Ġshow To Publish . title , Ġshow To Publish ) ĊĠĠĠĠĠĠĠ Ġprintln (" Published Ġ${ show To Publish . title } Ġto Ġ${ topics . show }") ĊĠĠĠ Ġ} Ċ }