com.atlassian.confluence.setup.webwork
Class CachedConfigurationProvider

java.lang.Object
  extended by com.atlassian.confluence.setup.webwork.CachedConfigurationProvider
All Implemented Interfaces:
com.opensymphony.xwork.config.ConfigurationProvider

public class CachedConfigurationProvider
extends java.lang.Object
implements com.opensymphony.xwork.config.ConfigurationProvider

An XWork configuration provider that caches the configuration generated by the provided configuration provider after the first initialisation. Useful for wrapping configuration providers that have expensive, non-changing initialisation such as the XmlConfigurationProvider


Constructor Summary
CachedConfigurationProvider(com.opensymphony.xwork.config.ConfigurationProvider configurationProvider)
          Construct a cached configuration provider using the supplied provider as the initial source of configuration.
 
Method Summary
 void destroy()
           
 void init(com.opensymphony.xwork.config.Configuration configuration)
           
 boolean needsReload()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedConfigurationProvider

public CachedConfigurationProvider(com.opensymphony.xwork.config.ConfigurationProvider configurationProvider)
Construct a cached configuration provider using the supplied provider as the initial source of configuration.

Parameters:
configurationProvider - Configuration provider to cache. Must not be null.
Method Detail

destroy

public void destroy()
Specified by:
destroy in interface com.opensymphony.xwork.config.ConfigurationProvider

init

public void init(com.opensymphony.xwork.config.Configuration configuration)
          throws com.opensymphony.xwork.config.ConfigurationException
Specified by:
init in interface com.opensymphony.xwork.config.ConfigurationProvider
Throws:
com.opensymphony.xwork.config.ConfigurationException

needsReload

public boolean needsReload()
Specified by:
needsReload in interface com.opensymphony.xwork.config.ConfigurationProvider


Copyright © 2003-2013 Atlassian. All Rights Reserved.