bike part reward : setting bean ID property automatically

Tom Zeller tzeller at dragonacea.biz
Tue Feb 11 16:14:20 EST 2014


> we should systematically be using
> BeanNameAware, InitializingBean and DisposableBean, but I'm more than happy
> to be argued out of that position.

I think we want to stay as loosely coupled to Spring as possible. The
Spring docs say

 "It is recommended that you do not use the InitializingBean interface
because it unnecessarily couples the code to Spring."

Instead, as the docs suggest, we use default-init-method and
default-destroy-method.

However, we do implement *Aware in Spring specific code, like
SpringReloadableService, which seems reasonable to me.


More information about the dev mailing list