Lazy-init or "null" data source?

Cantor, Scott cantor.2 at osu.edu
Wed May 28 15:54:15 EDT 2014


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?

-- Scott




More information about the dev mailing list