Class DefaultReloadingDetectorFactory

    • Constructor Detail

      • DefaultReloadingDetectorFactory

        public DefaultReloadingDetectorFactory()
        Constructs a new instance.
    • Method Detail

      • createReloadingDetector

        public ReloadingDetector createReloadingDetector​(FileHandler handler,
                                                         FileBasedBuilderParametersImpl params)
                                                  throws ConfigurationException
        Description copied from interface: ReloadingDetectorFactory
        Creates a new 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, for example a refresh delay.
        Specified by:
        createReloadingDetector in interface ReloadingDetectorFactory
        Parameters:
        handler - the handler of the file to be monitored
        params - parameters related to file-based configurations
        Returns:
        the newly created ReloadingDetector
        Throws:
        ConfigurationException - if an error occurs