public class BeanValidationIntegrator extends Object implements Integrator
Modifier and Type | Field and Description |
---|---|
static String |
APPLY_CONSTRAINTS |
static String |
BV_CHECK_CLASS |
static String |
MODE_PROPERTY |
Constructor and Description |
---|
BeanValidationIntegrator() |
Modifier and Type | Method and Description |
---|---|
void |
disintegrate(SessionFactoryImplementor sessionFactory,
SessionFactoryServiceRegistry serviceRegistry)
Tongue-in-cheek name for a shutdown callback.
|
void |
integrate(Metadata metadata,
SessionFactoryImplementor sessionFactory,
SessionFactoryServiceRegistry serviceRegistry)
Perform integration.
|
static void |
validateFactory(Object object)
Used to validate the type of an explicitly passed ValidatorFactory instance
|
public static final String APPLY_CONSTRAINTS
public static final String BV_CHECK_CLASS
public static final String MODE_PROPERTY
public static void validateFactory(Object object)
object
- The supposed ValidatorFactory instancepublic void integrate(Metadata metadata, SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry)
Integrator
integrate
in interface Integrator
metadata
- The "compiled" representation of the mapping informationsessionFactory
- The session factory being createdserviceRegistry
- The session factory's service registrypublic void disintegrate(SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry)
Integrator
disintegrate
in interface Integrator
sessionFactory
- The session factory being closed.serviceRegistry
- That session factory's service registryCopyright © 2016 JBoss by Red Hat. All rights reserved.