com.atlassian.confluence.plugin.descriptor
Class PluginConfigurationProvider

java.lang.Object
  extended by 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
PluginConfigurationProvider(List packages)
          A list of PackageConfig instances.
 
Method Summary
 void destroy()
           
 void init(com.opensymphony.xwork.config.Configuration configuration)
           
 boolean isPluginEnabled()
           
 boolean needsReload()
           
 void setPluginEnabled(boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
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-2011 Atlassian. All Rights Reserved.