package Ġcom . example . mult il ived ata . ui Ċ Ċ import Ġcom . example . mult il ived ata . ui . news . News Component Ċ import Ġcom . example . mult il ived ata . ui . weather . Weather Component Ċ import Ġjavax . inject . Inject Ċ Ċ @ Activity Scope Ċ class ĠMain Injector Ġ@ Inject Ġconstructor ( private Ġval Ġcomponent : ĠMain Component ) Ġ{ ĊĠĠĠ Ġprivate Ġvar Ġweather Component : ĠWeather Component ? Ġ= Ġnull ĊĠĠĠ Ġprivate Ġvar Ġnews Component : ĠNews Component ? Ġ= Ġnull ĊĊĠĠĠ Ġfun Ġplus Weather Component () ĊĠĠĠĠĠĠĠ Ġ= Ġweather Component Ġ?: Ġcomponent . plus Weather Component (). also Ġ{ Ġweather Component Ġ= Ġit Ġ} ĊĊĠĠĠ Ġfun Ġclear Weather Component () Ġ{ Ġweather Component Ġ= Ġnull Ġ} ĊĊĠĠĠ Ġfun Ġplus News Component () ĊĠĠĠĠĠĠĠ Ġ= Ġnews Component Ġ?: Ġcomponent . plus News Component (). also Ġ{ Ġnews Component Ġ= Ġit Ġ} ĊĊĠĠĠ Ġfun Ġclear News Component () Ġ{ Ġnews Component Ġ= Ġnull Ġ} Ċ }