You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.
To get a full picture of the beans that are going to be contributed at runtime we should invoke postProcessBeanDefinitionRegistry on the context at build time to feed the BeanFactory with whatever BeanDefinitionRegistryPostProcessor beans would contribute.
This may fix the Spring Integration support as it currently contributes beans only at runtime and those beans require some additional reflection metadata.
The text was updated successfully, but these errors were encountered:
This turned out to bring a lot of subtle difference in the way bean definitions are registered. I've made a lot of progress with the help of @jhoeller but there are still a few cases that aren't working anymore. Investigating.
snicoll
added a commit
to snicoll/spring-native
that referenced
this issue
Nov 17, 2021
Previously, BuildTimeBeanDefinitionsRegistrar was adding configuration
class parsing manually and triggered it to build the list of bean
definitions. Only certain framework callbacks were invoked.
This commit harmonizes its processing so that it is as close as possible
to what the regular runtime context would do. As a result, additional
callbacks are invoked at build time which had a subtle impact on how
bean definition types were discovered. To alleviate with that,
BeanClassBeanDefinitionPostProcessor makes sure to resolve the bean
class early if necessary.
Closesspring-atticgh-1213
To get a full picture of the beans that are going to be contributed at runtime we should invoke
postProcessBeanDefinitionRegistry
on the context at build time to feed theBeanFactory
with whateverBeanDefinitionRegistryPostProcessor
beans would contribute.This may fix the Spring Integration support as it currently contributes beans only at runtime and those beans require some additional reflection metadata.
The text was updated successfully, but these errors were encountered: