java - Is there a way I can get my spring beans wired together without having them be initialized? -


ideally, i'd have spring instantiate beans context config, wire them specified, never call init() on of them. possible?

something else might suit needs: if there's hook runs after wiring before init() called on of beans.

you can implement initializingbean use afterpropertiesset or use @postconstruct after construction doesn't guarantee it's before wiring doesnt sound answer looking for.

there no guarantee order spring initialise beans has work out best order initialise deal things circular references etc.

really way guarantee happens before wired in bean in constructor. why use constructor rather propert/setter injection.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -