org.hibernate.lucene.store
Interface DirectoryProvider<TDirectory extends org.apache.lucene.store.Directory>

All Known Implementing Classes:
FSDirectoryProvider, RAMDirectoryProvider

public interface DirectoryProvider<TDirectory extends org.apache.lucene.store.Directory>

Set up and provide a Lucene Directory equals() and hashCode() must guaranty equality between two providers pointing to the same underlying Lucene Store This class must be thread safe regarding getDirectory() calls

Author:
Emmanuel Bernard, Sylvain Vieujot

Method Summary
 TDirectory getDirectory()
          Returns an initialized Lucene Directory.
 void initialize(Class<?> entity, org.hibernate.cfg.Configuration cfg, Properties properties)
          get the information to initialize the directory and build its hashCode
 

Method Detail

initialize

void initialize(Class<?> entity,
                org.hibernate.cfg.Configuration cfg,
                Properties properties)
get the information to initialize the directory and build its hashCode


getDirectory

TDirectory getDirectory()
Returns an initialized Lucene Directory. This method call must be threadsafe