package Ġnet . pe chor ina . k ai ros . core . vert icles . core Ċ Ċ import Ġio . vertx . core . Vert x Ċ import Ġmu . Kotlin Logging Ċ import Ġnet . pe chor ina . k ai ros . core . Stage Definition Ċ import Ġnet . pe chor ina . k ai ros . core . code cs . K Event Message Codec Ċ import Ġnet . pe chor ina . k ai ros . core . code cs . Stage Definition Message Codec Ċ import Ġnet . pe chor ina . k ai ros . core . events . K Event Ċ import Ġnet . pe chor ina . k ai ros . core . utils . Json Mapper Ċ import Ġnet . pe chor ina . k ai ros . core . vert icles . Main Vert icle Ċ Ċ fun Ġregister Message Code cs ( vertx : ĠVert x ) Ġ{ ĊĠĠĠ ĠMain Vert icle . log . info Ġ{ Ġ" Register Ġmessage Ġcodecs " Ġ} ĊĠĠĠ Ġval Ġevent Bus Ġ= Ġvert x . event Bus () ĊĊĠĠĠ Ġevent Bus . unregister Default Codec ( K Event :: class . java ) ĊĠĠĠ Ġevent Bus . register Default Codec ( K Event :: class . java , ĊĠĠĠĠĠĠĠĠĠĠĠ ĠK Event Message Codec (" K Event Codec ") ĊĠĠĠ Ġ) ĊĠĠĠ ĠMain Vert icle . log . info Ġ{ Ġ" ĠK Event Ġcodec Ġregistered " Ġ} ĊĊĠĠĠ Ġevent Bus . unregister Default Codec ( Stage Definition :: class . java ) ĊĠĠĠ Ġevent Bus . register Default Codec ( Stage Definition :: class . java , ĊĠĠĠĠĠĠĠĠĠĠĠ ĠStage Definition Message Codec (" Stage Definition Message Codec ", ĠJson Mapper . json ObjectMapper )) ĊĊĠĠĠ ĠMain Vert icle . log . info Ġ{ Ġ" ĠStage Definition Ġcodec Ġregistered " Ġ} ĊĠĠĠ ĠMain Vert icle . log . info Ġ{ Ġ" Codec Ġregistration Ġcompleted " Ġ} Ċ } Ċ Ċ val Ġlog Ġ= ĠKotlin Logging . logger Ġ{}