Class CachedConfigurationProvider
- java.lang.Object
-
- com.atlassian.confluence.setup.webwork.CachedConfigurationProvider
-
- All Implemented Interfaces:
com.opensymphony.xwork.config.ConfigurationProvider
public class CachedConfigurationProvider extends 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 theXmlConfigurationProvider
-
-
Constructor Summary
Constructors Constructor Description CachedConfigurationProvider(com.opensymphony.xwork.config.ConfigurationProvider configurationProvider)Construct a cached configuration provider using the supplied provider as the initial source of configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voidinit(com.opensymphony.xwork.config.Configuration configuration)booleanneedsReload()
-
-
-
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:
destroyin interfacecom.opensymphony.xwork.config.ConfigurationProvider
-
init
public void init(com.opensymphony.xwork.config.Configuration configuration) throws com.opensymphony.xwork.config.ConfigurationException- Specified by:
initin interfacecom.opensymphony.xwork.config.ConfigurationProvider- Throws:
com.opensymphony.xwork.config.ConfigurationException
-
needsReload
public boolean needsReload()
- Specified by:
needsReloadin interfacecom.opensymphony.xwork.config.ConfigurationProvider
-
-