org.hibernate.envers.event
Class EnversIntegrator

java.lang.Object
  extended by org.hibernate.envers.event.EnversIntegrator
All Implemented Interfaces:
Integrator

public class EnversIntegrator
extends Object
implements Integrator

Provides integration for Envers into Hibernate, which mainly means registering the proper event listeners.


Field Summary
static String AUTO_REGISTER
           
 
Constructor Summary
EnversIntegrator()
           
 
Method Summary
 void disintegrate(SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry)
          Tongue-in-cheek name for a shutdown callback.
 void integrate(Configuration configuration, SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry)
          Perform integration.
 void integrate(MetadataImplementor metadata, SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry)
          Perform integration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTO_REGISTER

public static final String AUTO_REGISTER
See Also:
Constant Field Values
Constructor Detail

EnversIntegrator

public EnversIntegrator()
Method Detail

integrate

public void integrate(Configuration configuration,
                      SessionFactoryImplementor sessionFactory,
                      SessionFactoryServiceRegistry serviceRegistry)
Description copied from interface: Integrator
Perform integration.

Specified by:
integrate in interface Integrator
Parameters:
configuration - The configuration used to create the session factory
sessionFactory - The session factory being created
serviceRegistry - The session factory's service registry

disintegrate

public void disintegrate(SessionFactoryImplementor sessionFactory,
                         SessionFactoryServiceRegistry serviceRegistry)
Description copied from interface: Integrator
Tongue-in-cheek name for a shutdown callback.

Specified by:
disintegrate in interface Integrator
Parameters:
sessionFactory - The session factory being closed.
serviceRegistry - That session factory's service registry

integrate

public void integrate(MetadataImplementor metadata,
                      SessionFactoryImplementor sessionFactory,
                      SessionFactoryServiceRegistry serviceRegistry)
Perform integration.

Specified by:
integrate in interface Integrator
Parameters:
metadata - The metadata used to create the session factory
sessionFactory - The session factory being created
serviceRegistry - The session factory's service registry
See Also:
Integrator.integrate(org.hibernate.metamodel.source.MetadataImplementor, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.service.spi.SessionFactoryServiceRegistry)


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.