HHH-5562 - Improve how event listeners are handled and introduce a service pattern for integrators to leverage

This commit is contained in:
Steve Ebersole 2011-03-27 10:43:38 -05:00
parent 7cba21dcd9
commit 478e10ae3a
1 changed files with 13 additions and 1 deletions

View File

@ -29,14 +29,26 @@ import org.hibernate.service.spi.SessionFactoryServiceRegistry;
/**
* Contract for stuff that integrates with Hibernate.
* <p/>
* IMPL NOTE: called during session factory initialization (constructor), so not all parts of the passed session factory
* will be available.
*
* @todo : obviously, come up with a better name :)
* @todo : the signature here *will* change, guaranteed
*
* @todo : better name ?
*
* @author Steve Ebersole
* @since 4.0
* @jira HHH-5562
*/
public interface Integrator {
/**
* Perform integration.
*
* @param configuration The configuration used to create the session factory
* @param sessionFactory The session factory being created
* @param serviceRegistry The session factory's service registry
*/
public void integrate(
Configuration configuration,
SessionFactoryImplementor sessionFactory,