接口 ActivationContext
-
public interface ActivationContextDefines the context needed to call theTypeSafeActivator- 作者:
- Steve Ebersole
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 MetadatagetMetadata()Access the mapping metadataSessionFactoryServiceRegistrygetServiceRegistry()Access the ServiceRegistry specific to the SessionFactory being built.SessionFactoryImplementorgetSessionFactory()Access the SessionFactory being built to trigger this BV activationSet<ValidationMode>getValidationModes()Access the requested validation mode(s).
-
-
-
方法详细资料
-
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.- 返回:
- The requested validation modes
-
getMetadata
Metadata getMetadata()
Access the mapping metadata- 返回:
- The mapping metadata
-
getSessionFactory
SessionFactoryImplementor getSessionFactory()
Access the SessionFactory being built to trigger this BV activation- 返回:
- The SessionFactory being built
-
getServiceRegistry
SessionFactoryServiceRegistry getServiceRegistry()
Access the ServiceRegistry specific to the SessionFactory being built.- 返回:
- The SessionFactoryServiceRegistry
-
-