Java 类org.springframework.boot.devtools.filewatch.FileSystemWatcherFactory 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:LocalDevToolsAutoConfiguration.java   
@Bean
public FileSystemWatcherFactory fileSystemWatcherFactory() {
    return new FileSystemWatcherFactory() {

        @Override
        public FileSystemWatcher getFileSystemWatcher() {
            return newFileSystemWatcher();
        }

    };
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:RemoteClientConfiguration.java   
@Bean
public FileSystemWatcherFactory getFileSystemWatcherFactory() {
    return new FileSystemWatcherFactory() {

        @Override
        public FileSystemWatcher getFileSystemWatcher() {
            return newFileSystemWatcher();
        }

    };
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:ClassPathFileSystemWatcher.java   
/**
 * Create a new {@link ClassPathFileSystemWatcher} instance.
 * @param fileSystemWatcherFactory a factory to create the underlying
 * {@link FileSystemWatcher} used to monitor the local file system
 * @param restartStrategy the classpath restart strategy
 * @param urls the URLs to watch
 */
public ClassPathFileSystemWatcher(FileSystemWatcherFactory fileSystemWatcherFactory,
        ClassPathRestartStrategy restartStrategy, URL[] urls) {
    Assert.notNull(fileSystemWatcherFactory,
            "FileSystemWatcherFactory must not be null");
    Assert.notNull(urls, "Urls must not be null");
    this.fileSystemWatcher = fileSystemWatcherFactory.getFileSystemWatcher();
    this.restartStrategy = restartStrategy;
    this.fileSystemWatcher.addSourceFolders(new ClassPathFolders(urls));
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:ClassPathFileSystemWatcherTests.java   
@Test
public void urlsMustNotBeNull() throws Exception {
    this.thrown.expect(IllegalArgumentException.class);
    this.thrown.expectMessage("Urls must not be null");
    URL[] urls = null;
    new ClassPathFileSystemWatcher(mock(FileSystemWatcherFactory.class),
            mock(ClassPathRestartStrategy.class), urls);
}
项目:spring-boot-concourse    文件:LocalDevToolsAutoConfiguration.java   
@Bean
public FileSystemWatcherFactory fileSystemWatcherFactory() {
    return new FileSystemWatcherFactory() {

        @Override
        public FileSystemWatcher getFileSystemWatcher() {
            return newFileSystemWatcher();
        }

    };
}
项目:spring-boot-concourse    文件:RemoteClientConfiguration.java   
@Bean
public FileSystemWatcherFactory getFileSystemWatcherFactory() {
    return new FileSystemWatcherFactory() {

        @Override
        public FileSystemWatcher getFileSystemWatcher() {
            return newFileSystemWatcher();
        }

    };
}
项目:spring-boot-concourse    文件:ClassPathFileSystemWatcher.java   
/**
 * Create a new {@link ClassPathFileSystemWatcher} instance.
 * @param fileSystemWatcherFactory a factory to create the underlying
 * {@link FileSystemWatcher} used to monitor the local file system
 * @param restartStrategy the classpath restart strategy
 * @param urls the URLs to watch
 */
public ClassPathFileSystemWatcher(FileSystemWatcherFactory fileSystemWatcherFactory,
        ClassPathRestartStrategy restartStrategy, URL[] urls) {
    Assert.notNull(fileSystemWatcherFactory,
            "FileSystemWatcherFactory must not be null");
    Assert.notNull(urls, "Urls must not be null");
    this.fileSystemWatcher = fileSystemWatcherFactory.getFileSystemWatcher();
    this.restartStrategy = restartStrategy;
    this.fileSystemWatcher.addSourceFolders(new ClassPathFolders(urls));
}
项目:spring-boot-concourse    文件:ClassPathFileSystemWatcherTests.java   
@Test
public void urlsMustNotBeNull() throws Exception {
    this.thrown.expect(IllegalArgumentException.class);
    this.thrown.expectMessage("Urls must not be null");
    URL[] urls = null;
    new ClassPathFileSystemWatcher(mock(FileSystemWatcherFactory.class),
            mock(ClassPathRestartStrategy.class), urls);
}
项目:contestparser    文件:LocalDevToolsAutoConfiguration.java   
@Bean
public FileSystemWatcherFactory fileSystemWatcherFactory() {
    return new FileSystemWatcherFactory() {

        @Override
        public FileSystemWatcher getFileSystemWatcher() {
            return newFileSystemWatcher();
        }

    };
}
项目:contestparser    文件:RemoteClientConfiguration.java   
@Bean
public FileSystemWatcherFactory getFileSystemWatcherFactory() {
    return new FileSystemWatcherFactory() {

        @Override
        public FileSystemWatcher getFileSystemWatcher() {
            return newFileSystemWatcher();
        }

    };
}
项目:contestparser    文件:ClassPathFileSystemWatcher.java   
/**
 * Create a new {@link ClassPathFileSystemWatcher} instance.
 * @param fileSystemWatcherFactory a factory to create the underlying
 * {@link FileSystemWatcher} used to monitor the local file system
 * @param restartStrategy the classpath restart strategy
 * @param urls the URLs to watch
 */
public ClassPathFileSystemWatcher(FileSystemWatcherFactory fileSystemWatcherFactory,
        ClassPathRestartStrategy restartStrategy, URL[] urls) {
    Assert.notNull(fileSystemWatcherFactory,
            "FileSystemWatcherFactory must not be null");
    Assert.notNull(urls, "Urls must not be null");
    this.fileSystemWatcher = fileSystemWatcherFactory.getFileSystemWatcher();
    this.restartStrategy = restartStrategy;
    this.fileSystemWatcher.addSourceFolders(new ClassPathFolders(urls));
}
项目:contestparser    文件:ClassPathFileSystemWatcherTests.java   
@Test
public void urlsMustNotBeNull() throws Exception {
    this.thrown.expect(IllegalArgumentException.class);
    this.thrown.expectMessage("Urls must not be null");
    URL[] urls = null;
    new ClassPathFileSystemWatcher(mock(FileSystemWatcherFactory.class),
            mock(ClassPathRestartStrategy.class), urls);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:FileWatchingFailureHandler.java   
FileWatchingFailureHandler(FileSystemWatcherFactory fileSystemWatcherFactory) {
    this.fileSystemWatcherFactory = fileSystemWatcherFactory;
}
项目:spring-boot-concourse    文件:FileWatchingFailureHandler.java   
FileWatchingFailureHandler(FileSystemWatcherFactory fileSystemWatcherFactory) {
    this.fileSystemWatcherFactory = fileSystemWatcherFactory;
}
项目:contestparser    文件:FileWatchingFailureHandler.java   
FileWatchingFailureHandler(FileSystemWatcherFactory fileSystemWatcherFactory) {
    this.fileSystemWatcherFactory = fileSystemWatcherFactory;
}