Class DefaultReloadingDetectorFactory
- java.lang.Object
-
- org.apache.commons.configuration2.builder.DefaultReloadingDetectorFactory
-
- All Implemented Interfaces:
ReloadingDetectorFactory
public class DefaultReloadingDetectorFactory extends java.lang.Object implements ReloadingDetectorFactory
A default implementation of the
ReloadingDetectorFactory
interface.This factory creates objects of type
FileHandlerReloadingDetector
. Instances have no state and can be shared between multiple builders.- Since:
- 2.0
- Version:
- $Id: DefaultReloadingDetectorFactory.java 1624601 2014-09-12 18:04:36Z oheger $
-
-
Constructor Summary
Constructors Constructor Description DefaultReloadingDetectorFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReloadingDetector
createReloadingDetector(FileHandler handler, FileBasedBuilderParametersImpl params)
Creates a newReloadingDetector
object based on the passed in parameters.
-
-
-
Method Detail
-
createReloadingDetector
public ReloadingDetector createReloadingDetector(FileHandler handler, FileBasedBuilderParametersImpl params) throws ConfigurationException
Description copied from interface:ReloadingDetectorFactory
Creates a newReloadingDetector
object based on the passed in parameters. TheFileHandler
points to the file to be monitored. (It may be different from theFileHandler
managed by the parameters object.) TheFileBasedBuilderParametersImpl
object may contain additional information for configuring the detector, e.g. a refresh delay.- Specified by:
createReloadingDetector
in interfaceReloadingDetectorFactory
- 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
-
-