Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Method Summary
`T` | `getDelegate(AddLuceneWork addLuceneWork)`
`T` | `getDelegate(DeleteLuceneWork deleteLuceneWork)`
`T` | `getDelegate(OptimizeLuceneWork optimizeLuceneWork)`
`T` | `getDelegate(PurgeAllLuceneWork purgeAllLuceneWork)`

Method Detail

### getDelegate

    T getDelegate(AddLuceneWork addLuceneWork)

### getDelegate

    T getDelegate(DeleteLuceneWork deleteLuceneWork)

### getDelegate

    T getDelegate(OptimizeLuceneWork optimizeLuceneWork)

### getDelegate

    T getDelegate(PurgeAllLuceneWork purgeAllLuceneWork)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2006-2010 Hibernate. All Rights Reserved.