类 ClassPathFileSystemWatcher
java.lang.Object
org.springframework.boot.devtools.classpath.ClassPathFileSystemWatcher
- 所有已实现的接口:
Aware,DisposableBean,InitializingBean,ApplicationContextAware
public class ClassPathFileSystemWatcher
extends Object
implements InitializingBean, DisposableBean, ApplicationContextAware
Encapsulates a
FileSystemWatcher to watch the local classpath directories for
changes.- 从以下版本开始:
- 1.3.0
- 作者:
- Phillip Webb
- 另请参阅:
-
构造器概要
构造器构造器说明ClassPathFileSystemWatcher(FileSystemWatcherFactory fileSystemWatcherFactory, ClassPathRestartStrategy restartStrategy, URL[] urls) Create a newClassPathFileSystemWatcherinstance. -
方法概要
修饰符和类型方法说明voidvoiddestroy()voidsetApplicationContext(ApplicationContext applicationContext) voidsetStopWatcherOnRestart(boolean stopWatcherOnRestart) Set if theFileSystemWatchershould be stopped when a full restart occurs.
-
构造器详细资料
-
ClassPathFileSystemWatcher
public ClassPathFileSystemWatcher(FileSystemWatcherFactory fileSystemWatcherFactory, ClassPathRestartStrategy restartStrategy, URL[] urls) Create a newClassPathFileSystemWatcherinstance.- 参数:
fileSystemWatcherFactory- a factory to create the underlyingFileSystemWatcherused to monitor the local file systemrestartStrategy- the classpath restart strategyurls- the URLs to watch
-
-
方法详细资料
-
setStopWatcherOnRestart
public void setStopWatcherOnRestart(boolean stopWatcherOnRestart) Set if theFileSystemWatchershould be stopped when a full restart occurs.- 参数:
stopWatcherOnRestart- if the watcher should be stopped when a restart occurs
-
setApplicationContext
- 指定者:
setApplicationContext在接口中ApplicationContextAware- 抛出:
BeansException
-
afterPropertiesSet
- 指定者:
afterPropertiesSet在接口中InitializingBean- 抛出:
Exception
-
destroy
- 指定者:
destroy在接口中DisposableBean- 抛出:
Exception
-