Package org.hibernate.cfg.beanvalidation
Class BeanValidationIntegrator
- java.lang.Object
-
- org.hibernate.cfg.beanvalidation.BeanValidationIntegrator
-
- All Implemented Interfaces:
Integrator
public class BeanValidationIntegrator extends java.lang.Object implements Integrator
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringAPPLY_CONSTRAINTSstatic java.lang.StringBV_CHECK_CLASSstatic java.lang.StringJAKARTA_BV_CHECK_CLASSstatic java.lang.StringJAKARTA_MODE_PROPERTYstatic java.lang.StringMODE_PROPERTY
-
Constructor Summary
Constructors Constructor Description BeanValidationIntegrator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisintegrate(SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry)Tongue-in-cheek name for a shutdown callback.voidintegrate(Metadata metadata, SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry)Perform integration.static voidvalidateFactory(java.lang.Object object)Used to validate the type of an explicitly passed ValidatorFactory instance
-
-
-
Field Detail
-
APPLY_CONSTRAINTS
public static final java.lang.String APPLY_CONSTRAINTS
- See Also:
- Constant Field Values
-
BV_CHECK_CLASS
public static final java.lang.String BV_CHECK_CLASS
- See Also:
- Constant Field Values
-
JAKARTA_BV_CHECK_CLASS
public static final java.lang.String JAKARTA_BV_CHECK_CLASS
- See Also:
- Constant Field Values
-
MODE_PROPERTY
public static final java.lang.String MODE_PROPERTY
- See Also:
- Constant Field Values
-
JAKARTA_MODE_PROPERTY
public static final java.lang.String JAKARTA_MODE_PROPERTY
- See Also:
- Constant Field Values
-
-
Method Detail
-
validateFactory
public static void validateFactory(java.lang.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, SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry)
Description copied from interface:IntegratorPerform integration.- Specified by:
integratein interfaceIntegrator- Parameters:
metadata- The "compiled" representation of the mapping informationsessionFactory- The session factory being createdserviceRegistry- The session factory's service registry
-
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
-
-