public class DefaultReloadingDetectorFactory extends 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.
| Constructor and Description |
|---|
DefaultReloadingDetectorFactory() |
| Modifier and Type | Method and Description |
|---|---|
ReloadingDetector |
createReloadingDetector(FileHandler handler,
FileBasedBuilderParametersImpl params)
Creates a new
ReloadingDetector object based on the passed in parameters. |
public DefaultReloadingDetectorFactory()
public ReloadingDetector createReloadingDetector(FileHandler handler, FileBasedBuilderParametersImpl params) throws ConfigurationException
ReloadingDetectorFactoryReloadingDetector object based on the passed in parameters. The FileHandler points to
the file to be monitored. (It may be different from the FileHandler managed by the parameters object.) The
FileBasedBuilderParametersImpl object may contain additional information for configuring the detector, e.g. a
refresh delay.createReloadingDetector in interface ReloadingDetectorFactoryhandler - the handler of the file to be monitoredparams - parameters related to file-based configurationsReloadingDetectorConfigurationException - if an error occursCopyright © 2001–2022 The Apache Software Foundation. All rights reserved.