Package org.hibernate.cache.spi.support

Package intended for simplifying the worked needed to implement a caching provider. Centers around the concept of StorageAccess and DomainDataStorageAccess to implement most of the "grunt work" associated with the implementation.

A typical integration would just implement:

  1. a custom StorageAccess/DomainDataStorageAccess, along with
  2. a custom RegionFactoryTemplate, in particular:
Voila! Functioning cache provider.

The preferred approach to "provide an integration" is through a custom StrategyRegistrationProvider.

Both hibernate-testing (org.hibernate.testing.cache.CachingRegionFactory) and hibernate-jcache (org.hibernate.cache.jcache.internal.JCacheRegionFactory) provide examples of using this support package to implement a caching provider.