public class HibernateSearchSessionFactoryObserver extends Object implements SessionFactoryObserver
SessionFactoryObserver
registered with Hibernate ORM during the integration phase. This observer will
create the Search factory once the SessionFactory
is built.HibernateSearchIntegrator
,
Serialized FormModifier and Type | Field and Description |
---|---|
static String |
SESSION_FACTORY_PROPERTY_KEY |
Constructor and Description |
---|
HibernateSearchSessionFactoryObserver(Configuration configuration,
FullTextIndexEventListener listener,
ClassLoaderService classLoaderService) |
Modifier and Type | Method and Description |
---|---|
void |
sessionFactoryClosed(SessionFactory factory) |
void |
sessionFactoryCreated(SessionFactory factory) |
public static final String SESSION_FACTORY_PROPERTY_KEY
public HibernateSearchSessionFactoryObserver(Configuration configuration, FullTextIndexEventListener listener, ClassLoaderService classLoaderService)
public void sessionFactoryCreated(SessionFactory factory)
sessionFactoryCreated
in interface SessionFactoryObserver
public void sessionFactoryClosed(SessionFactory factory)
sessionFactoryClosed
in interface SessionFactoryObserver
Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved