Class InvariantReloadingStrategy
java.lang.Object
org.apache.commons.configuration.reloading.InvariantReloadingStrategy
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
init()
Initialize the strategy.void
Notify the strategy that the file has been reloaded.boolean
Tell if the evaluation of the strategy requires to reload the configuration.void
setConfiguration
(FileConfiguration configuration) Set the configuration managed by this strategy.
-
Constructor Details
-
InvariantReloadingStrategy
public InvariantReloadingStrategy()
-
-
Method Details
-
setConfiguration
Description copied from interface:ReloadingStrategy
Set the configuration managed by this strategy.- Specified by:
setConfiguration
in interfaceReloadingStrategy
- Parameters:
configuration
- the configuration to monitor
-
init
Description copied from interface:ReloadingStrategy
Initialize the strategy.- Specified by:
init
in interfaceReloadingStrategy
-
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
Description copied from interface:ReloadingStrategy
Notify the strategy that the file has been reloaded.- Specified by:
reloadingPerformed
in interfaceReloadingStrategy
-