Top Description Methods
org.hibernate.cfg.beanvalidation

public Interface ActivationContext

Imports
java.util.Set, org.hibernate.boot.Metadata, org.hibernate.engine.spi.SessionFactoryImplementor, org.hibernate.service.spi.SessionFactoryServiceRegistry

Defines the context needed to call the TypeSafeActivator
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public Metadata

Returns:

The mapping metadata
getMetadata
()

Access the mapping metadata

public SessionFactoryServiceRegistry

Returns:

The SessionFactoryServiceRegistry
getServiceRegistry
()

Access the ServiceRegistry specific to the SessionFactory being built.

public SessionFactoryImplementor

Returns:

The SessionFactory being built
getSessionFactory
()

Deprecated as a consequence of SessionFactoryImplementor being deprecated.
Access the SessionFactory being built to trigger this BV activation
public Set<ValidationMode>

Returns:

The requested validation modes
getValidationModes
()

Access the requested validation mode(s).

Method Detail

getMetadataback to summary
public Metadata getMetadata()

Access the mapping metadata

Returns:Metadata

The mapping metadata

getServiceRegistryback to summary
public SessionFactoryServiceRegistry getServiceRegistry()

Access the ServiceRegistry specific to the SessionFactory being built.

Returns:SessionFactoryServiceRegistry

The SessionFactoryServiceRegistry

getSessionFactoryback to summary
public SessionFactoryImplementor getSessionFactory()

Deprecated

as a consequence of SessionFactoryImplementor being deprecated. See corresponding docs for further information.

Access the SessionFactory being built to trigger this BV activation

Returns:SessionFactoryImplementor

The SessionFactory being built

getValidationModesback to summary
public 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:Set<ValidationMode>

The requested validation modes