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.