public interface ReloadingDetectorFactory
Definition of an interface for objects which can create a
ReloadingDetector
.
This interface is used by ReloadingFileBasedConfigurationBuilder
to
create detector objects for configuration sources supporting reloading.
Modifier and Type | Method and Description |
---|---|
ReloadingDetector |
createReloadingDetector(FileHandler handler,
FileBasedBuilderParametersImpl params)
Creates a new
ReloadingDetector object based on the passed in
parameters. |
ReloadingDetector createReloadingDetector(FileHandler handler, FileBasedBuilderParametersImpl params) throws ConfigurationException
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.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.