Package org.hibernate.cache.spi.support
This package provides a framework intended to reduce the work needed to implement
a caching provider. It takes care of most of the "grunt work" associated with the
implementation, leaving the integrator to implement the interfaces
StorageAccess
and
DomainDataStorageAccess
.
A typical integration would provide:
- a custom
StorageAccess
orDomainDataStorageAccess
, along with - a custom
RegionFactoryTemplate
.
The preferred way to register these implementations to Hibernate is via a custom
StrategyRegistrationProvider
.
Examples of using this support package to implement a caching provider include:
org.hibernate.testing.cache.CachingRegionFactory
inhibernate-testing
, andorg.hibernate.cache.jcache.internal.JCacheRegionFactory
inhibernate-jcache
.
-
Interface Summary Interface Description AbstractDomainDataRegion.Destructible Optional interface caching implementors can implement in their CachedDomainDataAccess impls to automatically have them destroyed when this region is destroyedAbstractReadWriteAccess.Lockable Interface type implemented by all wrapper objects in the cache.DomainDataStorageAccess Specialization ofStorageAccess
for domain data regions.StorageAccess A general read/write abstraction over the specific "cache" object from the caching provider. -
Enum Summary Enum Description AccessedDataClassification