com.atlassian.confluence.cache.hibernate
Interface HibernateCacheFactory

All Known Implementing Classes:
EhCacheHibernateCacheFactory, HazelcastHibernateCacheFactory

public interface HibernateCacheFactory

Factory for instantiating hibernate cache classes which may differ based on the underlying cache implementation. The correct implementation of this factory should be provided by the bootstrap Spring context.


Nested Class Summary
static class HibernateCacheFactory.InstanceHolder
          This provides a way to store the HibernateCacheFactory in a way that can be looked up via a static method.
 
Method Summary
 net.sf.hibernate.cache.CacheProvider getCacheProvider()
          Gets a new instance of the configured hibernate cache provider
 net.sf.hibernate.cache.CacheConcurrencyStrategy getReadWriteCacheConcurrencyStrategy()
          Gets a new instance of the configured hibernate Read/Write cache strategy
 

Method Detail

getCacheProvider

net.sf.hibernate.cache.CacheProvider getCacheProvider()
Gets a new instance of the configured hibernate cache provider

Returns:
a hibernate cache provider instance

getReadWriteCacheConcurrencyStrategy

net.sf.hibernate.cache.CacheConcurrencyStrategy getReadWriteCacheConcurrencyStrategy()
Gets a new instance of the configured hibernate Read/Write cache strategy

Returns:
a hibernate read/write cache strategy


Copyright © 2003-2014 Atlassian. All Rights Reserved.