Class InvariantReloadingStrategy
- java.lang.Object
-
- org.apache.commons.configuration.reloading.InvariantReloadingStrategy
-
- All Implemented Interfaces:
ReloadingStrategy
public class InvariantReloadingStrategy extends java.lang.Object implements ReloadingStrategy
A strategy that never triggers a reloading.- Since:
- 1.1
- Version:
- $Id: InvariantReloadingStrategy.java 1210646 2011-12-05 21:25:01Z oheger $
- Author:
- Emmanuel Bourg
-
-
Constructor Summary
Constructors Constructor Description InvariantReloadingStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Constructor Detail
-
InvariantReloadingStrategy
public InvariantReloadingStrategy()
-
-
Method Detail
-
setConfiguration
public void setConfiguration(FileConfiguration configuration)
Description copied from interface:ReloadingStrategySet the configuration managed by this strategy.- Specified by:
setConfigurationin interfaceReloadingStrategy- Parameters:
configuration- the configuration to monitor
-
init
public void init()
Description copied from interface:ReloadingStrategyInitialize the strategy.- Specified by:
initin interfaceReloadingStrategy
-
reloadingRequired
public boolean reloadingRequired()
Description copied from interface:ReloadingStrategyTell if the evaluation of the strategy requires to reload the configuration.- Specified by:
reloadingRequiredin interfaceReloadingStrategy- Returns:
- a flag whether a reload should be performed
-
reloadingPerformed
public void reloadingPerformed()
Description copied from interface:ReloadingStrategyNotify the strategy that the file has been reloaded.- Specified by:
reloadingPerformedin interfaceReloadingStrategy
-
-