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 FormConstructor 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)
SessionFactoryObserver
sessionFactoryCreated
in interface SessionFactoryObserver
factory
- The factory initialized.public void sessionFactoryClosed(SessionFactory factory)
SessionFactoryObserver
sessionFactoryClosed
in interface SessionFactoryObserver
factory
- The factory closed.Copyright © 2017 JBoss by Red Hat. All rights reserved.