package Ġcom . lock wood . replic ant . base Ċ Ċ import Ġandroid . app . Service Ċ import Ġandroid . content . Intent Ċ import Ġandroid . os . IB inder Ċ import Ġandroidx . annotation . MainThread Ċ import Ġcom . lock wood . replic ant . feature . Feature Ċ import Ġcom . lock wood . replic ant . feature . Re le as able Feature Ċ import Ġcom . lock wood . replic ant . feature . ext . get Feature Ċ import Ġcom . lock wood . replic ant . feature . ext . release Feature Ċ Ċ abstract Ġclass ĠRep lic ant Service Ġ: ĠService () Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġon Bind ( intent : ĠIntent ?): ĠI Binder ? Ġ= Ġnull ĊĊĠĠĠ Ġ@ MainThread ĊĠĠĠ Ġprotected Ġinline Ġfun Ġ< re ified ĠT Ġ: ĠFeature > Ġget Feature (): ĠT Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġapplication . get Feature () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ MainThread ĊĠĠĠ Ġprotected Ġinline Ġfun Ġ< re ified ĠT Ġ: ĠRe le as able Feature > Ġrelease Feature () Ġ{ ĊĠĠĠĠĠĠĠ Ġapplication . release Feature < T >() ĊĠĠĠ Ġ} Ċ } Ċ