Interface ReloadingDetectorFactory
-
- All Known Implementing Classes:
DefaultReloadingDetectorFactory
public interface ReloadingDetectorFactory
Definition of an interface for objects which can create a
ReloadingDetector.This interface is used by
ReloadingFileBasedConfigurationBuilderto create detector objects for configuration sources supporting reloading.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReloadingDetectorcreateReloadingDetector(FileHandler handler, FileBasedBuilderParametersImpl params)Creates a newReloadingDetectorobject based on the passed in parameters.
-
-
-
Method Detail
-
createReloadingDetector
ReloadingDetector createReloadingDetector(FileHandler handler, FileBasedBuilderParametersImpl params) throws ConfigurationException
Creates a newReloadingDetectorobject based on the passed in parameters. TheFileHandlerpoints to the file to be monitored. (It may be different from theFileHandlermanaged by the parameters object.) TheFileBasedBuilderParametersImplobject may contain additional information for configuring the detector, e.g. a refresh delay.- Parameters:
handler- the handler of the file to be monitoredparams- parameters related to file-based configurations- Returns:
- the newly created
ReloadingDetector - Throws:
ConfigurationException- if an error occurs
-
-