Class ConfigurationFileSystemWatcher
java.lang.Object
com.github._1c_syntax.bsl.languageserver.configuration.watcher.ConfigurationFileSystemWatcher
Отслеживатель изменений файла конфигурации.
При обнаружении изменения в файле (удаление, создание, редактирование) делегирует обработку изменения в
ConfigurationFileChangeListener.
-
Constructor Summary
ConstructorsConstructorDescriptionConfigurationFileSystemWatcher(LanguageServerConfiguration configuration, ConfigurationFileChangeListener listener) -
Method Summary
Modifier and TypeMethodDescriptionvoidОбработчик событияLanguageServerConfigurationChangedEvent.voidinit()voidvoidwatch()Фоновая процедура, отслеживающая изменения файлов.
-
Constructor Details
-
ConfigurationFileSystemWatcher
@ConstructorProperties({"configuration","listener"}) public ConfigurationFileSystemWatcher(LanguageServerConfiguration configuration, ConfigurationFileChangeListener listener)
-
-
Method Details
-
init
- Throws:
IOException
-
onDestroy
- Throws:
IOException
-
watch
Фоновая процедура, отслеживающая изменения файлов. -
handleEvent
Обработчик событияLanguageServerConfigurationChangedEvent.- Parameters:
event- Событие
-