|
I hope you don't mind me nitpicking at the name You do have a point there However, in terms of a FactoryBean, this does actually refer to initialization, since the FactoryBean fully initializes the object that it exposes - or, from a different perspective, asks the container to eagerly initialize the exposed object through obtaining it on startup. This is pretty similar to the notion of 'lazy init' for a standard bean definition - using the 'init' terminology there as well. Arguably, it's "preInstantiateSingletons" which should rather be named "preInitializeSingletons" or "preObtainSingletons" - or whatever. But that method is quite a historic artifact Juergen |
||||||||||||||||||||||||||||||||||||||
Andy, I've added an "isEagerInit()" method to the existing SmartFactoryBean interface, making "preInstantiateSingletons()" trigger a full getBean call and hence making post-processors apply to an exposed object eagerly.
This should be available in tonight's 2.1 M3 and 2.0.7 snapshots. Please give it a try...
Juergen