Package org.hibernate.integrator.spi
Interface Integrator
-
- All Known Subinterfaces:
ServiceContributingIntegrator
- All Known Implementing Classes:
BeanValidationIntegrator,JaccIntegrator
public interface IntegratorContract for stuff that integrates with Hibernate. IMPL NOTE: called during session factory initialization (constructor), so not all parts of the passed session factory will be available.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddisintegrate(SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry)Tongue-in-cheek name for a shutdown callback.voidintegrate(Metadata metadata, SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry)Perform integration.
-
-
-
Method Detail
-
integrate
void integrate(Metadata metadata, SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry)
Perform integration.- Parameters:
metadata- The "compiled" representation of the mapping informationsessionFactory- The session factory being createdserviceRegistry- The session factory's service registry
-
disintegrate
void disintegrate(SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry)
Tongue-in-cheek name for a shutdown callback.- Parameters:
sessionFactory- The session factory being closed.serviceRegistry- That session factory's service registry
-
-