Something in Spring like 'init-method' but called after dependencies are injected?

With Spring 2.5 and above, if an object requires invocation of a callback method upon initialization, that method can be annotated with the PostConstruct annotation.

With Spring 2.5 and above, if an object requires invocation of a callback method upon initialization, that method can be annotated with the @PostConstruct annotation. For example: public class MyClass{ @PostConstruct public void myMethod() { ... } ... } This is less intrusive than the BeanPostProcessor approach.

– Kevin Pauli Aug 12 '10 at 15:17 Nevermind, I see that @PostConstruct is in the javax. Annotation package. Thanks!

– Kevin Pauli Aug 12 '10 at 15:35.

You need to implement InitializingBean interface and override the afterPropertiesSet method.

– Kevin Pauli Aug 12 '10 at 15:18 +1 This was exactly what I was looking for. – stacker Oct 21 '10 at 14:37.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions