org.hibernate.search.event
Class FullTextIndexEventListener

java.lang.Object
  extended by org.hibernate.search.event.FullTextIndexEventListener
All Implemented Interfaces:
Serializable, org.hibernate.event.Initializable, org.hibernate.event.PostDeleteEventListener, org.hibernate.event.PostInsertEventListener, org.hibernate.event.PostUpdateEventListener

public class FullTextIndexEventListener
extends Object
implements org.hibernate.event.PostDeleteEventListener, org.hibernate.event.PostInsertEventListener, org.hibernate.event.PostUpdateEventListener, org.hibernate.event.Initializable

This listener supports setting a parent directory for all generated index files. It also supports setting the analyzer class to be used.

Author:
Gavin King, Emmanuel Bernard, Mattias Arbin
See Also:
Serialized Form

Field Summary
protected  WeakIdentityHashMap queuePerTransaction
           
protected  ReflectionManager reflectionManager
           
 
Constructor Summary
FullTextIndexEventListener()
           
 
Method Summary
 Map<Class,DocumentBuilder<Object>> getDocumentBuilders()
          Deprecated. 
 Map<DirectoryProvider,java.util.concurrent.locks.ReentrantLock> getLockableDirectoryProviders()
           
 void initialize(org.hibernate.cfg.Configuration cfg)
           
 void onPostDelete(org.hibernate.event.PostDeleteEvent event)
           
 void onPostInsert(org.hibernate.event.PostInsertEvent event)
           
 void onPostUpdate(org.hibernate.event.PostUpdateEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reflectionManager

protected ReflectionManager reflectionManager

queuePerTransaction

protected WeakIdentityHashMap queuePerTransaction
Constructor Detail

FullTextIndexEventListener

public FullTextIndexEventListener()
Method Detail

getDocumentBuilders

@Deprecated
public Map<Class,DocumentBuilder<Object>> getDocumentBuilders()
Deprecated. 


initialize

public void initialize(org.hibernate.cfg.Configuration cfg)
Specified by:
initialize in interface org.hibernate.event.Initializable

onPostDelete

public void onPostDelete(org.hibernate.event.PostDeleteEvent event)
Specified by:
onPostDelete in interface org.hibernate.event.PostDeleteEventListener

onPostInsert

public void onPostInsert(org.hibernate.event.PostInsertEvent event)
Specified by:
onPostInsert in interface org.hibernate.event.PostInsertEventListener

onPostUpdate

public void onPostUpdate(org.hibernate.event.PostUpdateEvent event)
Specified by:
onPostUpdate in interface org.hibernate.event.PostUpdateEventListener

getLockableDirectoryProviders

public Map<DirectoryProvider,java.util.concurrent.locks.ReentrantLock> getLockableDirectoryProviders()