public class ClassPathFileSystemWatcher extends ObjectSE implements InitializingBean, DisposableBean, ApplicationContextAware
FileSystemWatcher をカプセル化して、ローカルクラスパスフォルダーの変更を監視します。ClassPathFileChangeListener| コンストラクターと説明 |
|---|
ClassPathFileSystemWatcher(FileSystemWatcherFactory fileSystemWatcherFactory, ClassPathRestartStrategy restartStrategy, URLSE[] urls) 新しい ClassPathFileSystemWatcher インスタンスを作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | afterPropertiesSet() |
void | destroy() |
void | setApplicationContext(ApplicationContext applicationContext) |
void | setStopWatcherOnRestart(boolean stopWatcherOnRestart) 完全再起動時に FileSystemWatcher を停止するかどうかを設定します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic ClassPathFileSystemWatcher(FileSystemWatcherFactory fileSystemWatcherFactory, ClassPathRestartStrategy restartStrategy, URLSE[] urls)
ClassPathFileSystemWatcher インスタンスを作成します。fileSystemWatcherFactory - ローカルファイルシステムの監視に使用される基盤となる FileSystemWatcher を作成するファクトリ restartStrategy - クラスパス再起動戦略 urls - 監視する URLpublic void setStopWatcherOnRestart(boolean stopWatcherOnRestart)
FileSystemWatcher を停止するかどうかを設定します。stopWatcherOnRestart - 再起動が発生したときにウォッチャーを停止する必要がある場合 public void setApplicationContext(ApplicationContext applicationContext) throws BeansException
ApplicationContextAware の setApplicationContext BeansExceptionpublic void afterPropertiesSet()
throws ExceptionSEInitializingBean の afterPropertiesSet ExceptionSEpublic void destroy()
throws ExceptionSEDisposableBean の destroy ExceptionSECopyright © 2018 Pivotal Software, Inc.. All rights reserved.