Java 类org.springframework.boot.devtools.autoconfigure.OptionalLiveReloadServer 实例源码

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:DelayedLiveReloadTrigger.java   
DelayedLiveReloadTrigger(OptionalLiveReloadServer liveReloadServer,
        ClientHttpRequestFactory requestFactory, String url) {
    Assert.notNull(liveReloadServer, "LiveReloadServer must not be null");
    Assert.notNull(requestFactory, "RequestFactory must not be null");
    Assert.hasLength(url, "URL must not be empty");
    this.liveReloadServer = liveReloadServer;
    this.requestFactory = requestFactory;
    try {
        this.uri = new URI(url);
    }
    catch (URISyntaxException ex) {
        throw new IllegalArgumentException(ex);
    }
}
项目:spring-boot-concourse    文件:DelayedLiveReloadTrigger.java   
DelayedLiveReloadTrigger(OptionalLiveReloadServer liveReloadServer,
        ClientHttpRequestFactory requestFactory, String url) {
    Assert.notNull(liveReloadServer, "LiveReloadServer must not be null");
    Assert.notNull(requestFactory, "RequestFactory must not be null");
    Assert.hasLength(url, "URL must not be empty");
    this.liveReloadServer = liveReloadServer;
    this.requestFactory = requestFactory;
    try {
        this.uri = new URI(url);
    }
    catch (URISyntaxException ex) {
        throw new IllegalArgumentException(ex);
    }
}
项目:contestparser    文件:DelayedLiveReloadTrigger.java   
DelayedLiveReloadTrigger(OptionalLiveReloadServer liveReloadServer,
        ClientHttpRequestFactory requestFactory, String url) {
    Assert.notNull(liveReloadServer, "LiveReloadServer must not be null");
    Assert.notNull(requestFactory, "RequestFactory must not be null");
    Assert.hasLength(url, "URL must not be empty");
    this.liveReloadServer = liveReloadServer;
    this.requestFactory = requestFactory;
    try {
        this.uri = new URI(url);
    }
    catch (URISyntaxException ex) {
        throw new IllegalArgumentException(ex);
    }
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:RemoteClientConfiguration.java   
@Bean
public OptionalLiveReloadServer optionalLiveReloadServer() {
    return new OptionalLiveReloadServer(this.liveReloadServer);
}
项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:RemoteClientConfigurationTests.java   
@Test
public void liveReloadDisabled() throws Exception {
    configure("spring.devtools.livereload.enabled:false");
    this.thrown.expect(NoSuchBeanDefinitionException.class);
    this.context.getBean(OptionalLiveReloadServer.class);
}
项目:spring-boot-concourse    文件:RemoteClientConfiguration.java   
@Bean
public OptionalLiveReloadServer optionalLiveReloadServer() {
    return new OptionalLiveReloadServer(this.liveReloadServer);
}
项目:spring-boot-concourse    文件:RemoteClientConfigurationTests.java   
@Test
public void liveReloadDisabled() throws Exception {
    configure("spring.devtools.livereload.enabled:false");
    this.thrown.expect(NoSuchBeanDefinitionException.class);
    this.context.getBean(OptionalLiveReloadServer.class);
}
项目:contestparser    文件:RemoteClientConfiguration.java   
@Bean
public OptionalLiveReloadServer optionalLiveReloadServer() {
    return new OptionalLiveReloadServer(this.liveReloadServer);
}
项目:contestparser    文件:RemoteClientConfigurationTests.java   
@Test
public void liveReloadDisabled() throws Exception {
    configure("spring.devtools.livereload.enabled:false");
    this.thrown.expect(NoSuchBeanDefinitionException.class);
    this.context.getBean(OptionalLiveReloadServer.class);
}