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, waitSE
public 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
BeansException
public void afterPropertiesSet() throws ExceptionSE
InitializingBean
の afterPropertiesSet
ExceptionSE
public void destroy() throws ExceptionSE
DisposableBean
の destroy
ExceptionSE
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.