クラス ClassPathFileSystemWatcher
java.lang.ObjectSE
org.springframework.boot.devtools.classpath.ClassPathFileSystemWatcher
- 実装されているすべてのインターフェース:
Aware、DisposableBean、InitializingBean、ApplicationContextAware
public class ClassPathFileSystemWatcher
extends ObjectSE
implements InitializingBean, DisposableBean, ApplicationContextAware
FileSystemWatcher をカプセル化して、ローカルクラスパスディレクトリの変更を監視します。- 導入:
- 1.3.0
- 作成者:
- Phillip Webb
- 関連事項:
ClassPathFileChangeListener
コンストラクターの概要
コンストラクターコンストラクター説明ClassPathFileSystemWatcher(FileSystemWatcherFactory fileSystemWatcherFactory, ClassPathRestartStrategy restartStrategy, URLSE[] urls) 新しいClassPathFileSystemWatcherインスタンスを作成します。メソッドのサマリー
修飾子と型メソッド説明voidvoiddestroy()voidsetApplicationContext(ApplicationContext applicationContext) voidsetStopWatcherOnRestart(boolean stopWatcherOnRestart) 完全再起動時にFileSystemWatcherを停止するかどうかを設定します。
コンストラクターの詳細
ClassPathFileSystemWatcher
public ClassPathFileSystemWatcher(FileSystemWatcherFactory fileSystemWatcherFactory, ClassPathRestartStrategy restartStrategy, URLSE[] urls) 新しいClassPathFileSystemWatcherインスタンスを作成します。- パラメーター:
fileSystemWatcherFactory- ローカルファイルシステムの監視に使用される基盤となるFileSystemWatcherを作成するファクトリrestartStrategy- クラスパス再起動戦略urls- 監視する URL
メソッドの詳細
setStopWatcherOnRestart
public void setStopWatcherOnRestart(boolean stopWatcherOnRestart) 完全再起動時にFileSystemWatcherを停止するかどうかを設定します。- パラメーター:
stopWatcherOnRestart- 再起動が発生したときにウォッチャーを停止する必要がある場合
setApplicationContext
- 次で指定:
- インターフェース
ApplicationContextAwareのsetApplicationContext - 例外:
BeansException
afterPropertiesSet
- 次で指定:
- インターフェース
InitializingBeanのafterPropertiesSet - 例外:
ExceptionSE
destroy
- 次で指定:
- インターフェース
DisposableBeanのdestroy - 例外:
ExceptionSE