org.apache.qpid.server.security.access.config
Class AbstractConfiguration

java.lang.Object
  extended by org.apache.qpid.server.security.access.config.AbstractConfiguration
All Implemented Interfaces:
ConfigurationFile
Direct Known Subclasses:
PlainConfiguration, XMLConfiguration

public abstract class AbstractConfiguration
extends Object
implements ConfigurationFile


Field Summary
protected  RuleSet _config
           
protected  File _file
           
protected static org.apache.log4j.Logger _logger
           
 
Constructor Summary
AbstractConfiguration(File file)
           
 
Method Summary
 RuleSet getConfiguration()
           
 File getFile()
          Return the actual File object containing the configuration.
 RuleSet load()
          Load this configuration file's contents into a RuleSet.
 RuleSet reload()
          Reload this configuration file's contents.
 boolean save(RuleSet configuration)
          TODO document me.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_logger

protected static final org.apache.log4j.Logger _logger

_file

protected File _file

_config

protected RuleSet _config
Constructor Detail

AbstractConfiguration

public AbstractConfiguration(File file)
Method Detail

getFile

public File getFile()
Description copied from interface: ConfigurationFile
Return the actual File object containing the configuration.

Specified by:
getFile in interface ConfigurationFile

load

public RuleSet load()
             throws ConfigurationException
Description copied from interface: ConfigurationFile
Load this configuration file's contents into a RuleSet.

Specified by:
load in interface ConfigurationFile
Throws:
ConfigurationException - if the configuration file has errors.

getConfiguration

public RuleSet getConfiguration()
Specified by:
getConfiguration in interface ConfigurationFile

save

public boolean save(RuleSet configuration)
Description copied from interface: ConfigurationFile
TODO document me.

Specified by:
save in interface ConfigurationFile

reload

public RuleSet reload()
Description copied from interface: ConfigurationFile
Reload this configuration file's contents.

Specified by:
reload in interface ConfigurationFile


Licensed to the Apache Software Foundation