Class PluginConfigurationProvider
- java.lang.Object
-
- com.atlassian.confluence.plugin.descriptor.PluginConfigurationProvider
-
- All Implemented Interfaces:
com.opensymphony.xwork.config.ConfigurationProvider
public class PluginConfigurationProvider extends Object implements com.opensymphony.xwork.config.ConfigurationProvider
A custom xwork configuration provider that loads the configuration out of the plugins module descriptor.
-
-
Constructor Summary
Constructors Constructor Description PluginConfigurationProvider(List packages)A list of PackageConfig instances.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()voidinit(com.opensymphony.xwork.config.Configuration configuration)booleanisPluginEnabled()booleanneedsReload()voidsetPluginEnabled(boolean b)
-
-
-
Constructor Detail
-
PluginConfigurationProvider
public PluginConfigurationProvider(List packages)
A list of PackageConfig instances.- Parameters:
packages-
-
-
Method Detail
-
setPluginEnabled
public void setPluginEnabled(boolean b)
-
isPluginEnabled
public boolean isPluginEnabled()
-
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
-
-