Java 类org.springframework.boot.devtools.restart.DefaultRestartInitializer 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:RemoteClientConfiguration.java   
@Bean
public ClassPathFileSystemWatcher classPathFileSystemWatcher() {
    DefaultRestartInitializer restartInitializer = new DefaultRestartInitializer();
    URL[] urls = restartInitializer.getInitialUrls(Thread.currentThread());
    if (urls == null) {
        urls = new URL[0];
    }
    return new ClassPathFileSystemWatcher(getFileSystemWatcherFactory(),
            classPathRestartStrategy(), urls);
}
项目:spring-boot-concourse    文件:RemoteClientConfiguration.java   
@Bean
public ClassPathFileSystemWatcher classPathFileSystemWatcher() {
    DefaultRestartInitializer restartInitializer = new DefaultRestartInitializer();
    URL[] urls = restartInitializer.getInitialUrls(Thread.currentThread());
    if (urls == null) {
        urls = new URL[0];
    }
    return new ClassPathFileSystemWatcher(getFileSystemWatcherFactory(),
            classPathRestartStrategy(), urls);
}
项目:contestparser    文件:RemoteClientConfiguration.java   
@Bean
public ClassPathFileSystemWatcher classPathFileSystemWatcher() {
    DefaultRestartInitializer restartInitializer = new DefaultRestartInitializer();
    URL[] urls = restartInitializer.getInitialUrls(Thread.currentThread());
    if (urls == null) {
        urls = new URL[0];
    }
    return new ClassPathFileSystemWatcher(getFileSystemWatcherFactory(),
            classPathRestartStrategy(), urls);
}