Spring FactoryBean used before it is configured? -


i have 2 factorybeans creating proxies existing beans in application context.

factorybeana.getobject() invoked part of singleton pre-instantiation, , attempts autowire returned instance.

this autowiring needs bean defined factorybeanb, has not yet been configured (had properties injected).

can controlled in such way, sure both factorybeans configured (properties injected) before beans attempted instantiated?

edit: autowiring factorybeana objects have worked fine until changed factorybeanb require property injected. after change, see autowiring a-bean try invoke factorybeanb.getobject(), fails properties has not yet been injected.

problem caused own mistake. factorybeanb not configured thought.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

java - How to create Table using Apache PDFBox -

mpi - Why is MPI_Bsend not returning error even when the buffer is insufficient to accommodate all the messages -