Class BeanValidationIntegrator

java.lang.Object
org.hibernate.boot.beanvalidation.BeanValidationIntegrator
All Implemented Interfaces:
Integrator

public class BeanValidationIntegrator extends Object implements Integrator
In Integrator for Bean Validation.
  • Field Details

  • Constructor Details

    • BeanValidationIntegrator

      public BeanValidationIntegrator()
  • Method Details

    • validateFactory

      public static void validateFactory(Object object)
      Used to validate the type of an explicitly passed ValidatorFactory instance
      Parameters:
      object - The supposed ValidatorFactory instance
    • 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
    • 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