This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//> using lib "org.scalatest::scalatest:3.2.15" | |
//> using lib "com.softwaremill.sttp.client3::core:3.8.14" | |
//> using lib "com.softwaremill.sttp.client3::okhttp-backend:3.8.14" | |
//> using lib "com.softwaremill.sttp.client3::async-http-client-backend-zio1:3.8.14" | |
//> using lib "com.softwaremill.sttp.client3::async-http-client-backend-cats:3.8.14" | |
//> using lib "org.typelevel::cats-effect:3.4.8" | |
//> using lib "com.softwaremill.sttp.client3::async-http-client-backend-future:3.8.14" | |
//> using lib "com.github.tomakehurst:wiremock:2.27.2" | |
//> using jvm "17" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Inject | |
private SyncBeanManager manager; | |
public <T extends Composite> T getView(Class<T> type) { | |
T view = null; | |
IOCBeanDef<T> bean = manager.lookupBean(type); | |
if (bean != null) { | |
view = bean.getInstance(); | |
} | |
return view; |