Class HibernateSearchIntegrator
java.lang.Object
org.hibernate.search.mapper.orm.bootstrap.impl.HibernateSearchIntegrator
- All Implemented Interfaces:
Integrator
Integrates Hibernate Search into Hibernate Core by registering its needed listeners
- Author:
- Emmanuel Bernard, Hardy Ferentschik, Steve Ebersole
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisintegrate(SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry) Tongue-in-cheek name for a shutdown callback.voidintegrate(Metadata metadata, BootstrapContext bootstrapContext, SessionFactoryImplementor sessionFactory) Perform integration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.integrator.spi.Integrator
integrate
-
Constructor Details
-
HibernateSearchIntegrator
public HibernateSearchIntegrator()
-
-
Method Details
-
integrate
public void integrate(Metadata metadata, BootstrapContext bootstrapContext, SessionFactoryImplementor sessionFactory) Description copied from interface:IntegratorPerform integration.- Specified by:
integratein interfaceIntegrator- Parameters:
metadata- The fully initialized boot-time mapping modelbootstrapContext- The context for bootstrapping of the SessionFactorysessionFactory- The SessionFactory being created
-
disintegrate
public void disintegrate(SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry) Description copied from interface:IntegratorTongue-in-cheek name for a shutdown callback.- Specified by:
disintegratein interfaceIntegrator- Parameters:
sessionFactory- The session factory being closed.serviceRegistry- That session factory's service registry
-