Class EnversIntegrator

  • All Implemented Interfaces:
    Integrator

    public class EnversIntegrator
    extends Object
    implements Integrator
    Hooks up Envers event listeners.
    • Constructor Detail

      • EnversIntegrator

        public EnversIntegrator()
    • Method Detail

      • integrate

        public void integrate​(Metadata metadata,
                              BootstrapContext bootstrapContext,
                              SessionFactoryImplementor sessionFactory)
        Description copied from interface: Integrator
        Perform integration.
        Specified by:
        integrate in interface Integrator
        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?