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
{{ message }}
Repository navigation
BeanPostProcessor callbacks don't work as expected for @PostConstruct annotated methods [SPR-6066] #10734
Creating this issue per Juergen's request:
because support for @PostConstruct is implemented using a BeanPostProcessor, the BPP.postProcessBeforeInitialization method is invoked after the actual initialization method that has the annotation. This has always been the case since support for JSR-250 was added I think, but no issue was ever created to make sure to track this deficiency.
Added a simple test case that shows the described behavior,
I've finally addressed this through re-ordering our post-processors: Internal ones simply kick in after regular ones now. That seems to work fine in all common cases.
Activity
spring-projects-issues commentedon Nov 11, 2009
Juergen Hoeller commented
I've finally addressed this through re-ordering our post-processors: Internal ones simply kick in after regular ones now. That seems to work fine in all common cases.
Juergen