package Ġsample . application Ċ Ċ import Ġcom . fasterxml . jackson . databind . ObjectMapper Ċ import Ġcom . fasterxml . jackson . module . kotlin . Kotlin Module Ċ import Ġcom . google . inject . Abstract Module Ċ import Ġcom . google . inject . Scopes Ċ import Ġrat pack . server . Server Config Ċ import Ġsample . controller . Sample Service Controller Ċ import Ġsample . domain . service . Sample Book Service Ċ import Ġsample . http . NotFound Chain Ċ import Ġsample . http . Sample Service Chain Ċ Ċ class ĠApplication Module Ġconstructor ( val Ġserver Config : ĠServer Config ) Ġ: ĠAbstract Module () Ġ{ ĊĠĠĠ Ġoverride Ġfun Ġconfigure () Ġ{ ĊĠĠĠĠĠĠĠ Ġbind ( Sample Book Service :: class . java ). ` in `( Scopes . SINGLE TON ) ĊĊĠĠĠĠĠĠĠ Ġbind ( Sample Service Controller :: class . java ). ` in `( Scopes . SINGLE TON ) ĊĊĠĠĠĠĠĠĠ Ġbind ( Sample Service Chain :: class . java ). ` in `( Scopes . SINGLE TON ) ĊĠĠĠĠĠĠĠ Ġbind ( NotFound Chain :: class . java ). ` in `( Scopes . SINGLE TON ) ĊĊ Ċ // ĠĠĠĠĠĠĠ Ġbind ( ObjectMapper :: class . java ). to Instance ( ObjectMapper (). register Module ( Kotlin Module ())) ĊĠĠĠ Ġ} Ċ } Ċ