org.qi4j.api.util
Interface Visitor<T,ThrowableType extends Throwable>

All Known Subinterfaces:
Databases.ResultSetVisitor

public interface Visitor<T,ThrowableType extends Throwable>

Generic Visitor interface.


Method Summary
 boolean visit(T visited)
          Visit an instance of T
 

Method Detail

visit

boolean visit(T visited)
              throws ThrowableType extends Throwable
Visit an instance of T

Parameters:
visited - the visited instance
Returns:
true if the visitor pattern should continue, false if it should be aborted
Throws:
ThrowableType - if an exception occurred during processing. Any client call that initiated the visiting should get the exception in order to handle it properly.
ThrowableType extends Throwable