com.atlassian.confluence.cache.hibernate
Class HibernateCacheFactory.InstanceHolder

java.lang.Object
  extended by com.atlassian.confluence.cache.hibernate.HibernateCacheFactory.InstanceHolder
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean
Enclosing interface:
HibernateCacheFactory

public static class HibernateCacheFactory.InstanceHolder
extends Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean

This provides a way to store the HibernateCacheFactory in a way that can be looked up via a static method. This is required because of the way Hibernate initialises its caches.

See Also:
com.atlassian.confluence.cache.hibernate.ConfluenceCacheStrategy}, com.atlassian.confluence.cache.hibernate.ConfluenceCacheProvider}

Constructor Summary
HibernateCacheFactory.InstanceHolder(HibernateCacheFactory hibernateCacheFactory)
           
 
Method Summary
 void afterPropertiesSet()
           
 void destroy()
           
static HibernateCacheFactory getHibernateCacheFactory()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateCacheFactory.InstanceHolder

public HibernateCacheFactory.InstanceHolder(HibernateCacheFactory hibernateCacheFactory)
Method Detail

getHibernateCacheFactory

public static HibernateCacheFactory getHibernateCacheFactory()

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

destroy

public void destroy()
             throws Exception
Specified by:
destroy in interface org.springframework.beans.factory.DisposableBean
Throws:
Exception


Copyright © 2003–2015 Atlassian. All rights reserved.