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 void
init()
Initialize the strategy.void
reloadingPerformed()
Notify the strategy that the file has been reloaded.boolean
reloadingRequired()
Tell if the evaluation of the strategy requires to reload the configuration.void
setConfiguration(FileConfiguration configuration)
Set the configuration managed by this strategy.
-
-
-
Method Detail
-
setConfiguration
public void setConfiguration(FileConfiguration configuration)
Description copied from interface:ReloadingStrategy
Set the configuration managed by this strategy.- Specified by:
setConfiguration
in interfaceReloadingStrategy
- Parameters:
configuration
- the configuration to monitor
-
init
public void init()
Description copied from interface:ReloadingStrategy
Initialize the strategy.- Specified by:
init
in interfaceReloadingStrategy
-
reloadingRequired
public boolean reloadingRequired()
Description copied from interface:ReloadingStrategy
Tell if the evaluation of the strategy requires to reload the configuration.- Specified by:
reloadingRequired
in interfaceReloadingStrategy
- Returns:
- a flag whether a reload should be performed
-
reloadingPerformed
public void reloadingPerformed()
Description copied from interface:ReloadingStrategy
Notify the strategy that the file has been reloaded.- Specified by:
reloadingPerformed
in interfaceReloadingStrategy
-
-