Class BeanValidationIntegrator
java.lang.Object
org.hibernate.boot.beanvalidation.BeanValidationIntegrator
- All Implemented Interfaces:
Integrator
In
Integrator for Bean Validation.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisintegrate(SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry) Tongue-in-cheek name for a shutdown callback.voidintegrate(Metadata metadata, BootstrapContext bootstrapContext, SessionFactoryImplementor sessionFactory) Perform integration.static voidvalidateFactory(Object object) Used to validate the type of an explicitly passed ValidatorFactory instance
-
Field Details
-
APPLY_CONSTRAINTS
- See Also:
-
JAKARTA_BV_CHECK_CLASS
- See Also:
-
MODE_PROPERTY
- See Also:
-
JAKARTA_MODE_PROPERTY
- See Also:
-
-
Constructor Details
-
BeanValidationIntegrator
public BeanValidationIntegrator()
-
-
Method Details
-
validateFactory
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:IntegratorPerform integration.- Specified by:
integratein interfaceIntegrator- Parameters:
metadata- The fully initialized boot-time mapping modelbootstrapContext- The context for bootstrapping of the SessionFactorysessionFactory- The SessionFactory being created
-
disintegrate
public void disintegrate(SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry) Description copied from interface:IntegratorTongue-in-cheek name for a shutdown callback.- Specified by:
disintegratein interfaceIntegrator- Parameters:
sessionFactory- The session factory being closed.serviceRegistry- That session factory's service registry
-