Package org.hibernate.cfg.beanvalidation
Interface ActivationContext
-
public interface ActivationContext
Defines the context needed to call theTypeSafeActivator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Metadata
getMetadata()
Access the mapping metadataSessionFactoryServiceRegistry
getServiceRegistry()
Access the ServiceRegistry specific to the SessionFactory being built.SessionFactoryImplementor
getSessionFactory()
Access the SessionFactory being built to trigger this BV activationjava.util.Set<ValidationMode>
getValidationModes()
Access the requested validation mode(s).
-
-
-
Method Detail
-
getValidationModes
java.util.Set<ValidationMode> getValidationModes()
Access the requested validation mode(s). IMPL NOTE : the legacy code allowed multiple mode values to be specified, so that is why it is multi-valued here. However, I cannot find any good reasoning why it was defined that way and even JPA states it should be a single value. For 4.1 (in maintenance) I think it makes the most sense to not mess with it. Discuss for 4.2 and beyond.- Returns:
- The requested validation modes
-
getMetadata
Metadata getMetadata()
Access the mapping metadata- Returns:
- The mapping metadata
-
getSessionFactory
SessionFactoryImplementor getSessionFactory()
Access the SessionFactory being built to trigger this BV activation- Returns:
- The SessionFactory being built
-
getServiceRegistry
SessionFactoryServiceRegistry getServiceRegistry()
Access the ServiceRegistry specific to the SessionFactory being built.- Returns:
- The SessionFactoryServiceRegistry
-
-