patterns-discussion AT lists.siebelschool.illinois.edu
Subject: General talk about software patterns
List archive
- From: Philipp Bachmann <bachlipp AT gmail.com>
- To: Jevon Wright <j.m.wright AT massey.ac.nz>
- Cc: patterns-discussion AT cs.uiuc.edu
- Subject: Re: [patterns-discussion] Data Access pattern
- Date: Tue, 23 Nov 2010 17:51:19 +0100
- List-archive: <http://lists.cs.uiuc.edu/pipermail/patterns-discussion>
- List-id: General talk about software patterns <patterns-discussion.cs.uiuc.edu>
Hello Jevon,
> The Iterator must also be closable, so that it can clean up
> references, close database connections etc. Jena has a similar
> interface ClosableIterator.
I am not sure I really got what you mean here. But anyway: I ran into
situations where I decided to go for Visitors (GoF) instead of
Iterators precisely because once DataStructure (or, in your case,
DataSource< T >) issued an Iterator, it does not have much control
over it, whereas the "access()" method accepting a Visitor can control
traversal.
Cheers,
Philipp
- [patterns-discussion] Data Access pattern, Jevon Wright, 11/22/2010
- Re: [patterns-discussion] Data Access pattern, Ralph Johnson, 11/22/2010
- Re: [patterns-discussion] Data Access pattern, Philipp Bachmann, 11/23/2010
Archive powered by MHonArc 2.6.16.