クラス 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
インスタンスを作成します。メソッドのサマリー
修飾子と型メソッド説明void
void
destroy()
void
setApplicationContext
(ApplicationContext applicationContext) void
setStopWatcherOnRestart
(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