The best way to make an implementation of Integrator available to Hibernate
is by making it discoverable via the standard Java java.
facility.
Implementation Note
integrate(Metadata, BootstrapContext, SessionFactoryImplementor)
is called during the process of session factory initialization. In fact, it's called directly from the
constructor of org.. So the
passed session factory is not yet fully-initialized and is in a very
fragile state.
| Modifier and Type | Method and Description |
|---|---|
| public void | disintegrate(SessionFactoryImplementor
The session factory being closed. sessionFactory, SessionFactoryServiceRegistry That session factory's service registry serviceRegistry)
Deprecated
as a consequence of
Tongue-in-cheek name for a shutdown callback.
SessionFactoryImplementor being deprecated.
|
| public default void | integrate(Metadata
The "compiled" representation of the mapping information metadata, SessionFactoryImplementor The session factory being created sessionFactory, SessionFactoryServiceRegistry The session factory's service registry serviceRegistry)
Deprecated
since 6.0. - use
Perform integration.
|
| public default void | integrate(Metadata
The fully initialized boot-time mapping model metadata, BootstrapContext The context for bootstrapping of the SessionFactory bootstrapContext, SessionFactoryImplementor The SessionFactory being created sessionFactory)
Deprecated
as a consequence of
Perform integration.
Metadata and SessionFactoryImplementor being deprecated.
|
| disintegrate | back to summary |
|---|---|
| public void disintegrate(SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry)
Deprecated as a consequence of Tongue-in-cheek name for a shutdown callback.
| |
| integrate | back to summary |
|---|---|
| public default void integrate(Metadata metadata, SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry)
Deprecated since 6.0. - use Perform integration.
| |
| integrate | back to summary |
|---|---|
| public default void integrate(Metadata metadata, BootstrapContext bootstrapContext, SessionFactoryImplementor sessionFactory)
Deprecated as a consequence of Perform integration.
| |