com.atlassian.confluence.cache.ehcache.hibernate
Class EhCacheHibernateProvider

java.lang.Object
  extended by com.atlassian.confluence.cache.ehcache.hibernate.EhCacheHibernateProvider
All Implemented Interfaces:
net.sf.hibernate.cache.CacheProvider

public class EhCacheHibernateProvider
extends java.lang.Object
implements net.sf.hibernate.cache.CacheProvider

An implementation of Hibernate's CacheProvider interface that delegates to an Atlassian CacheManager. This is based upon Hibernate's own EhCacheProvider implementation, which itself goes direct to the EhCache API. The trivial timestamp and locking method implementations come from that.

Since:
5.6

Constructor Summary
EhCacheHibernateProvider(com.atlassian.cache.CacheManager cacheManager)
           
 
Method Summary
 net.sf.hibernate.cache.Cache buildCache(java.lang.String name, java.util.Properties properties)
           
 long nextTimestamp()
          Implementation copied from EhCacheProvider.nextTimestamp()
 void start(java.util.Properties properties)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EhCacheHibernateProvider

public EhCacheHibernateProvider(com.atlassian.cache.CacheManager cacheManager)
Method Detail

buildCache

public net.sf.hibernate.cache.Cache buildCache(java.lang.String name,
                                               java.util.Properties properties)
Specified by:
buildCache in interface net.sf.hibernate.cache.CacheProvider

nextTimestamp

public long nextTimestamp()
Implementation copied from EhCacheProvider.nextTimestamp()

Specified by:
nextTimestamp in interface net.sf.hibernate.cache.CacheProvider

start

public void start(java.util.Properties properties)
Specified by:
start in interface net.sf.hibernate.cache.CacheProvider

stop

public void stop()
Specified by:
stop in interface net.sf.hibernate.cache.CacheProvider


Copyright © 2003-2014 Atlassian. All Rights Reserved.