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 ReloadingDetector createReloadingDetector(FileHandler handler, FileBasedBuilderParametersImpl params) throws ConfigurationException
ReloadingDetectorFactory
ReloadingDetector
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 ReloadingDetectorFactory
handler
- the handler of the file to be monitoredparams
- parameters related to file-based configurationsReloadingDetector
ConfigurationException
- if an error occursCopyright © 2001–2020 The Apache Software Foundation. All rights reserved.