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 Form| Constructor and Description |
|---|
HibernateSearchSessionFactoryObserver(Metadata metadata,
ConfigurationService configurationService,
FullTextIndexEventListener listener,
ClassLoaderService classLoaderService) |
| Modifier and Type | Method and Description |
|---|---|
void |
sessionFactoryClosed(SessionFactory factory)
Callback to indicate that the given factory has been closed.
|
void |
sessionFactoryCreated(SessionFactory factory)
Callback to indicate that the given factory has been created and is now ready for use.
|
public HibernateSearchSessionFactoryObserver(Metadata metadata, ConfigurationService configurationService, FullTextIndexEventListener listener, ClassLoaderService classLoaderService)
public void sessionFactoryCreated(SessionFactory factory)
SessionFactoryObserversessionFactoryCreated in interface SessionFactoryObserverfactory - The factory initialized.public void sessionFactoryClosed(SessionFactory factory)
SessionFactoryObserversessionFactoryClosed in interface SessionFactoryObserverfactory - The factory closed.Copyright © 2018 JBoss by Red Hat. All rights reserved.