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 mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/patterns-discussion
