bike part reward : setting bean ID property automatically

Cantor, Scott cantor.2 at osu.edu
Tue Feb 11 16:54:39 EST 2014


On 2/11/14, 4:14 PM, "Tom Zeller" <tzeller at dragonacea.biz> wrote:

>> 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.

Rod and I were talking earlier, and he noted the issue with using that
approach while using the custom schemas. I suggested he look into whether
we can configure the default-init/destroy on the builders somehow, but
that does seem like a problem.

-- Scott




More information about the dev mailing list