Skip navigation links

Package org.hibernate.cache.spi.support

Package intended for simplifying the worked needed to implement a caching provider.

See: Description

Package org.hibernate.cache.spi.support Description

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

Most integrations would just:

  1. implement a custom StorageAccess/DomainDataStorageAccess

  2. implement a custom RegionFactoryTemplate, implementing specifically:

    1. RegionFactoryTemplate#createDomainDataStorageAccess

    2. RegionFactoryTemplate#createQueryResultsRegionStorageAccess

    3. RegionFactoryTemplate#createTimestampsRegionStorageAccess

Voila.. functioning cache provider

The preferred approach to "provide a 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.

Skip navigation links

Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.