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

View File

@ -29,14 +29,26 @@
/** /**
* Contract for stuff that integrates with Hibernate. * 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 * @author Steve Ebersole
* @since 4.0 * @since 4.0
* @jira HHH-5562 * @jira HHH-5562
*/ */
public interface Integrator { 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( public void integrate(
Configuration configuration, Configuration configuration,
SessionFactoryImplementor sessionFactory, SessionFactoryImplementor sessionFactory,