package Ġcom . rar ible . protocol . currency . api . client . autoconfigure Ċ Ċ import Ġcom . rar ible . core . application . Application Environment Info Ċ import Ġcom . rar ible . protocol . currency . api . client . Composite Web Client Customizer Ċ import Ġcom . rar ible . protocol . currency . api . client . Currency ApiClient Factory Ċ import Ġcom . rar ible . protocol . currency . api . client . Currency ApiService Uri Provider Ċ import Ġcom . rar ible . protocol . currency . api . client . Default Currency Web Client Customizer Ċ import Ġcom . rar ible . protocol . currency . api . client . K 8 s Currency ApiService Uri Provider Ċ import Ġcom . rar ible . protocol . currency . api . client . No op Web Client Customizer Ċ import Ġcom . rar ible . protocol . currency . api . client . Sw arm Currency ApiService Uri Provider Ċ import Ġorg . springframework . beans . factory . annotation . Autowired Ċ import Ġorg . springframework . beans . factory . annotation . Qualifier Ċ import Ġorg . springframework . beans . factory . annotation . Value Ċ import Ġorg . springframework . boot . autoconfigure . condition . Conditional On Missing Bean Ċ import Ġorg . springframework . boot . web . reactive . function . client . Web Client Customizer Ċ import Ġorg . springframework . context . annotation . Bean Ċ Ċ const Ġval ĠCUR RE NCY _ WEB _ CLIENT _ CUSTOM IZER Ġ= Ġ" CUR RE NCY _ WEB _ CLIENT _ CUSTOM IZER " Ċ Ċ class ĠCurrency ApiClient Auto Configuration ( ĊĠĠĠ Ġprivate Ġval Ġapplication Environment Info : ĠApplication Environment Info Ċ ) Ġ{ ĊĊĠĠĠ Ġ@ Autowired ( required Ġ= Ġfalse ) ĊĠĠĠ Ġ@ Qualifier ( CUR RE NCY _ WEB _ CLIENT _ CUSTOM IZER ) ĊĠĠĠ Ġprivate Ġvar Ġweb Client Customizer : ĠWeb Client Customizer Ġ= ĠNo op Web Client Customizer () ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġ@ Conditional On Missing Bean ( Currency ApiService Uri Provider :: class ) ĊĠĠĠ Ġfun Ġcurrency ApiService Uri Provider ( ĊĠĠĠĠĠĠĠ Ġ@ Value ("\ ${ rar ible . core . client . k 8 s : false }") Ġk 8 s : ĠBoolean ĊĠĠĠ Ġ): ĠCurrency ApiService Uri Provider Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġif Ġ( k 8 s ) ĊĠĠĠĠĠĠĠĠĠĠĠ ĠK 8 s Currency ApiService Uri Provider ( application Environment Info . name ) ĊĠĠĠĠĠĠĠ Ġelse ĊĠĠĠĠĠĠĠĠĠĠĠ ĠSw arm Currency ApiService Uri Provider ( application Environment Info . name ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġ@ Conditional On Missing Bean ( Currency ApiClient Factory :: class ) ĊĠĠĠ Ġfun Ġcurrency ApiClient Factory ( currency ApiService Uri Provider : ĠCurrency ApiService Uri Provider ): ĠCurrency ApiClient Factory Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġcomposite Web Client Customizer Ġ= ĠComposite Web Client Customizer ( listOf ( Default Currency Web Client Customizer (), Ġweb Client Customizer )) ĊĠĠĠĠĠĠĠ Ġreturn ĠCurrency ApiClient Factory ( currency ApiService Uri Provider , Ġcomposite Web Client Customizer ) ĊĠĠĠ Ġ} Ċ } Ċ