org.hibernate.search.backend.impl
Interface WorkVisitor<T>
- Type Parameters:
T
- used to force a return type of choice.
- All Known Implementing Classes:
- LuceneWorkVisitor, StreamingSelectionVisitor, TransactionalSelectionVisitor
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)
getDelegate
T getDelegate(UpdateLuceneWork updateLuceneWork)
getDelegate
T getDelegate(FlushLuceneWork flushLuceneWork)
Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved