package Ġht nk 1 2 8 . kotlin . ddd . sample . address . adapter . gateway . messaging Ċ Ċ import Ġht nk 1 2 8 . kotlin . ddd . sample . address . domain . model . address . Address Event Ċ import Ġht nk 1 2 8 . kotlin . ddd . sample . ddd core . domain . Domain Event Subscriber Ċ import Ġorg . springframework . context . event . EventListener Ċ import Ġorg . springframework . stereotype . Component Ċ Ċ @ Component Ċ class ĠAddress Event Spring Subscriber Ġ: ĠDomain Event Subscriber < Address Event <* >> Ġ{ ĊĊĠĠĠ Ġ@ EventListener ĊĠĠĠ Ġoverride Ġfun Ġhandle Event ( domain Event : ĠAddress Event <* >) Ġ{ ĊĠĠĠĠĠĠĠ Ġprintln (" type =${ domain Event . type }, Ġaddress =${ domain Event . address }, Ġoccurred On =${ domain Event . occ urred On }") ĊĠĠĠĠĠĠĠ Ġ// Ġ ä½ķ ãĤĤ ãģĹãģªãģĦ ãĢĤ ãĥ¡ ãĥ¼ãĥ« ãĤĴ éĢģ ãĤĭ ãĢģ REST ĠAPI ãĤĴ åı © ãģı ãĢģ ãģ© ãģ£ ãģĭ ãģ« éĢļçŁ¥ ãĤĴ éĢģ ãĤĭ ãģªãģ© ãģĮ èĢĥ ãģĪ ãĤī ãĤĮãĤĭ ĊĠĠĠ Ġ} Ċ } Ċ