Lazy-init or "null" data source?
Tom Zeller
tzeller at dragonacea.biz
Wed May 28 16:26:59 EDT 2014
> On May 28, 2014, at 2:54 PM, "Cantor, Scott" <cantor.2 at osu.edu> wrote:
>
> I have a case or two where we want to define beans that rely on a
> DataSource but we won't have one by default.
>
> Right now I handled it by marking the bean lazy-init so as long as nothing
> references it, it never notices the data source isn't set.
>
> Is that ok, or should we define an actual Null data source as a backstop?
Quick response : I dislike null in general IMHO.
More information about the dev
mailing list