public interface CacheLoaderWriterProvider extends Service
Service that creates CacheLoaderWriter instances.
 
 A CacheManager will use the createCacheLoaderWriter(java.lang.String, org.ehcache.config.CacheConfiguration)
 method to create CacheLoaderWriter instances for each Cache it
 manages.
 
 For any non null value returned, the Cache will be configured to use the
 CacheLoaderWriter instance returned.
| Modifier and Type | Method and Description | 
|---|---|
| <K,V> CacheLoaderWriter<? super K,V> | createCacheLoaderWriter(java.lang.String alias,
                       CacheConfiguration<K,V> cacheConfiguration)Creates a  CacheLoaderWriterfor use with theCacheof the given alias and configuration. | 
| void | releaseCacheLoaderWriter(CacheLoaderWriter<?,?> cacheLoaderWriter)Releases a  CacheLoaderWriterwhen the associatedCacheis finished with it. | 
<K,V> CacheLoaderWriter<? super K,V> createCacheLoaderWriter(java.lang.String alias, CacheConfiguration<K,V> cacheConfiguration)
CacheLoaderWriter for use with the Cache
 of the given alias and configuration.K - the loader-writer key typeV - the loader-writer value typealias - the Cache alias in the CacheManagercacheConfiguration - the configuration for the associated cacheCacheLoaderWriter to be used by the Cache or null if nonevoid releaseCacheLoaderWriter(CacheLoaderWriter<?,?> cacheLoaderWriter) throws java.lang.Exception
CacheLoaderWriter when the associated Cache
 is finished with it.
 
 If the CacheLoaderWriter instance was user provided close
 will not be invoked.
cacheLoaderWriter - the CacheLoaderWriter being releasedjava.lang.Exception - when the release fails