See documentation on Spring Framework (Container) Background Initialization.
With a custom BeanFactoryPostProcessor, the algorithm could determine, based on the bean's "dependencies" whether the bean could be concurrently initialized on startup.
The custom BeanFactoryPostProcessor could create an index on startup, then use the index on re-starts to optimize the background initialization bean customization.
See documentation on Spring Framework (Container) Background Initialization.
With a custom
BeanFactoryPostProcessor, the algorithm could determine, based on the bean's "dependencies" whether the bean could be concurrently initialized on startup.The custom
BeanFactoryPostProcessorcould create an index on startup, then use the index on re-starts to optimize the background initialization bean customization.