public class ClassPathFileSystemWatcher extends ObjectSE implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationContextAware
FileSystemWatcher をカプセル化して、ローカルクラスパスフォルダーの変更を監視します。ClassPathFileChangeListener| コンストラクターと説明 |
|---|
ClassPathFileSystemWatcher(FileSystemWatcherFactory fileSystemWatcherFactory, ClassPathRestartStrategy restartStrategy, URLSE[] urls) 新しい ClassPathFileSystemWatcher インスタンスを作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | afterPropertiesSet() |
void | destroy() |
void | setApplicationContext(org.springframework.context.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(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansExceptionorg.springframework.context.ApplicationContextAware 内の setApplicationContext org.springframework.beans.BeansExceptionpublic void afterPropertiesSet()
throws ExceptionSEorg.springframework.beans.factory.InitializingBean 内の afterPropertiesSet ExceptionSEpublic void destroy()
throws ExceptionSEorg.springframework.beans.factory.DisposableBean 内の destroy ExceptionSECopyright © 2019 Pivotal Software, Inc.. All rights reserved.