mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-27 05:45:26 +00:00
HHH-5562 - Improve how event listeners are handled and introduce a service pattern for integrators to leverage
This commit is contained in:
parent
7cba21dcd9
commit
478e10ae3a
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user