org.hibernate.search.hcore.impl
Class HibernateSearchSessionFactoryObserver

java.lang.Object
  extended by org.hibernate.search.hcore.impl.HibernateSearchSessionFactoryObserver
All Implemented Interfaces:
Serializable, org.hibernate.SessionFactoryObserver

public class HibernateSearchSessionFactoryObserver
extends Object
implements org.hibernate.SessionFactoryObserver

A SessionFactoryObserver registered with Hibernate ORM during the integration phase. This observer will create the Search factory once the SessionFactory is built.

Author:
Hardy Ferentschik
See Also:
HibernateSearchIntegrator, Serialized Form

Field Summary
static String SESSION_FACTORY_PROPERTY_KEY
           
 
Constructor Summary
HibernateSearchSessionFactoryObserver(org.hibernate.cfg.Configuration configuration, FullTextIndexEventListener listener)
           
 
Method Summary
 void sessionFactoryClosed(org.hibernate.SessionFactory factory)
           
 void sessionFactoryCreated(org.hibernate.SessionFactory factory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SESSION_FACTORY_PROPERTY_KEY

public static final String SESSION_FACTORY_PROPERTY_KEY
See Also:
Constant Field Values
Constructor Detail

HibernateSearchSessionFactoryObserver

public HibernateSearchSessionFactoryObserver(org.hibernate.cfg.Configuration configuration,
                                             FullTextIndexEventListener listener)
Method Detail

sessionFactoryCreated

public void sessionFactoryCreated(org.hibernate.SessionFactory factory)
Specified by:
sessionFactoryCreated in interface org.hibernate.SessionFactoryObserver

sessionFactoryClosed

public void sessionFactoryClosed(org.hibernate.SessionFactory factory)
Specified by:
sessionFactoryClosed in interface org.hibernate.SessionFactoryObserver


Copyright © 2006–2013 Hibernate. All rights reserved.