You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are three styles for controlling bean lifecycle behaviour: InitializingBean/DisposableBean, bean methods names, and (new in 2.1) @PostConstruct and @PreDestroy.
The reference manual should document what happens when you 'mix' these options, specifically any side-effects and the order of applicability.
A use-case for this would be concrete inheritance - take, for example, DaoSupport which implements InitializingBean. It may well be that, on a given project, Spring is configured to call an init() method by default. What happens when a subclass of DaoSupport is initialized? In what order are afterPropertiesSet() and init() called? Any side-effects, recommendations, or warnings?