org.hibernate.cfg.beanvalidation
Interface ActivationContext


public interface ActivationContext

Defines the context needed to call the TypeSafeActivator


Method Summary
 Configuration getConfiguration()
          Access the Configuration
 SessionFactoryServiceRegistry getServiceRegistry()
          Access the ServiceRegistry specific to the SessionFactory being built.
 SessionFactoryImplementor getSessionFactory()
          Access the SessionFactory being built to trigger this BV activation
 Set<ValidationMode> getValidationModes()
          Access the requested validation mode(s).
 

Method Detail

getValidationModes

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

getConfiguration

Configuration getConfiguration()
Access the Configuration

Returns:
The Hibernate Configuration object

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


Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.