views:

16

answers:

0

Was just struck by a thought after looking through the ValueListHandler JEE pattern on the corej2eepatterns site:

Why does the valuelisthandler require a reference to a data access object?
Based on what is said, the ValueListHandler's job is to pretty much do the non-functional stuff (cache, sort, search traverse) with a list containing data.

You might just as well create a PlainListHandler (with traversal capabilities) and create decorations (like Cachable, Searchable) to be added if you require that functionality.

Anyway, these patterns are usually subjective, but would be glad to hear comments on the need to couple the ValueListHandler with a DAO.