Java DI, , (, spring) beans API, , , , , (- , ), , . ?
, spring lazy-init = "true" (spring ), init-method/destroy-, @PostConstruct, InitializingBean - afterPropertiesSet() spring getInstance()?
The choice is a compromise between testability over reusability outside the spring container.
source
share