It is guaranteed that when this bean @PostConstruct , all its @Resource fields will be entered. If any of these injections is beans themselves with their @Resource and @PostConstruct , then they will already be called. In other words, by the time any given @PostConstruct , it is guaranteed that all its dependencies are fully initialized.
It is possible and actually likely that BeanA will be constructed and initialized via @PostConstruct before BeanB even created if BeanB does not have a pronounced dependence on BeanA .
skaffman
source share