org.hibernate.search.backend
Interface WorkVisitor<T>
- Type Parameters:
T
- used to force a return type of choice.
- All Known Implementing Classes:
- DpSelectionVisitor, LuceneWorkVisitor
public interface WorkVisitor<T>
A visitor delegate to manipulate a LuceneWork
needs to implement this interface.
This pattern enables any implementation to virtually add delegate
methods to the base LuceneWork without having to change them.
This contract however breaks if more subclasses of LuceneWork
are created, as a visitor must support all existing types.
- Author:
- Sanne Grinovero
getDelegate
T getDelegate(AddLuceneWork addLuceneWork)
getDelegate
T getDelegate(DeleteLuceneWork deleteLuceneWork)
getDelegate
T getDelegate(OptimizeLuceneWork optimizeLuceneWork)
getDelegate
T getDelegate(PurgeAllLuceneWork purgeAllLuceneWork)
Copyright © 2006-2010 Hibernate. All Rights Reserved.