Package org.hibernate.cache.cfg.spi
Interface DomainDataRegionBuildingContext
- All Known Implementing Classes:
EnabledCaching
public interface DomainDataRegionBuildingContext
A "parameter object" for
RegionFactory.buildDomainDataRegion(org.hibernate.cache.cfg.spi.DomainDataRegionConfig, org.hibernate.cache.cfg.spi.DomainDataRegionBuildingContext)
calls, giving it access to information it needs.-
Method Summary
Modifier and TypeMethodDescriptionTheCacheKeysFactory
explicitly specified as part of the bootstrap by the user, by some "container", etc.Access to the SessionFactory for which a Region is being built.
-
Method Details
-
getEnforcedCacheKeysFactory
CacheKeysFactory getEnforcedCacheKeysFactory()TheCacheKeysFactory
explicitly specified as part of the bootstrap by the user, by some "container", etc. If this method returns a non-null value, it is expected thatRegionFactory
implementors will use to be itsCacheKeysFactory
and return it when asked later. -
getSessionFactory
SessionFactoryImplementor getSessionFactory()Access to the SessionFactory for which a Region is being built.
-