package Ġorg . free kode . crypt obot . prices ervice . infrastructure . alert Ċ Ċ import Ġorg . free kode . crypt obot . prices ervice . domain . alert . Alert Ċ import Ġorg . free kode . crypt obot . prices ervice . domain . alert . checker . Alert Checker Factory Ċ import Ġorg . springframework . stereotype . Service ĊĊ Ċ @ Service Ċ class ĠAlert Factory ( private Ġval Ġalert Checker Factory : ĠAlert Checker Factory ) Ġ{ ĊĠĠĠ Ġfun Ġto Alert ( alert An em ia : ĠAlert An em ia ): ĠAlert Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġchecker Ġ= Ġalert Checker Factory . get Checker ByType ( alert An em ia . type ) ĊĠĠĠĠĠĠĠ Ġreturn ĠAlert ( alert An em ia . id , Ġalert An em ia . indicator Name , Ġalert An em ia . pair , Ġalert An em ia . type , Ġalert An em ia . value , Ġchecker ) ĊĠĠĠ Ġ} Ċ } Ċ