Interface Integrator

    • Method Detail

      • integrate

        @Deprecated
        default void integrate​(Metadata metadata,
                               SessionFactoryImplementor sessionFactory,
                               SessionFactoryServiceRegistry serviceRegistry)
        Deprecated.
        (since 6.0) - use
        Perform integration.
        Parameters:
        metadata - The "compiled" representation of the mapping information
        sessionFactory - The session factory being created
        serviceRegistry - The session factory's service registry
      • integrate

        default void integrate​(Metadata metadata,
                               BootstrapContext bootstrapContext,
                               SessionFactoryImplementor sessionFactory)
        Perform integration.
        Parameters:
        metadata - The fully initialized boot-time mapping model
        bootstrapContext - The context for bootstrapping of the SessionFactory
        sessionFactory - The SessionFactory being created todo (6.0) : why pass the `serviceRegistry`? Why not just grab it from the SessionFactory?
      • 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