Dariusz Kuc
07/10/2020, 9:47 PMFactoryBean
I’m hitting some weird (at least to me) behavior - when I create the underlying object I need to configure it with some beans retrieved from application context (factory is application context aware). Weird part is the different behavior between retrieving bean by name (works - loads necessary autoconfigs) and the type (fails -> dependent config is not loaded).
// works - dependent auto config is loaded
val targetBean = applicationContext.getBean("targetBeanName")
// blows up with no bean
val targetBean = applicationContext.getBean(TargetBean::class.java)
Any ideas?Dariusz Kuc
07/10/2020, 9:47 PMDariusz Kuc
07/10/2020, 10:01 PM@AutoConfigureAfter(
name = "org.springframework.cloud.autoconfigure.RefreshAutoConfiguration")
on the troublesome autoconfigDariusz Kuc
07/10/2020, 10:02 PM