org.apache.commons.configuration.reloading

Interface ReloadingStrategy

public interface ReloadingStrategy

A strategy to decide if a configuration should be reloaded.

Since: 1.1

Version: $Revision: 439648 $, $Date: 2006-09-02 22:42:10 +0200 (Sa, 02 Sep 2006) $

Author: Emmanuel Bourg Olivier Heger

Method Summary
voidinit()
Initialize the strategy.
voidreloadingPerformed()
Notify the strategy that the file has been reloaded.
booleanreloadingRequired()
Tell if the evaluation of the strategy requires to reload the configuration.
voidsetConfiguration(FileConfiguration configuration)
Set the configuration managed by this strategy.

Method Detail

init

public void init()
Initialize the strategy.

reloadingPerformed

public void reloadingPerformed()
Notify the strategy that the file has been reloaded.

reloadingRequired

public boolean reloadingRequired()
Tell if the evaluation of the strategy requires to reload the configuration.

Returns: a flag whether a reload should be performed

setConfiguration

public void setConfiguration(FileConfiguration configuration)
Set the configuration managed by this strategy.

Parameters: configuration the configuration to monitor