Exporting / Importing beans across ApplicationContexts [SPR-4034] #8713
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: declined
A suggestion or change that we don't feel we should currently apply
type: enhancement
A general enhancement
Eberhard Wolff opened SPR-4034 and commented
Spring JavaConfig allows to only export beans that are created by a public method. This allows for nice modularization of applications by using one JavaConfig class for each component and export the interface of the module only. Such a feature would be nice for XML based configuration as well.
I can imagine it as some special way of handling <import >. An alternative would be an enhacement for the SingletonBeanFactory locator that allows you to define the beans that should be exported in the Spring configuration that includes the BeanFactories that might be accessed. Maybe there are other good possibilities as well.
Issue Links:
@Bean
method visibility1 votes, 2 watchers
The text was updated successfully, but these errors were encountered: