Example usage for org.springframework.boot.devtools.restart Restarter addUrls

List of usage examples for org.springframework.boot.devtools.restart Restarter addUrls

Introduction

In this page you can find the example usage for org.springframework.boot.devtools.restart Restarter addUrls.

Prototype

public void addUrls(Collection<URL> urls) 

Source Link

Document

Add additional URLs to be includes in the next restart.

Usage

From source file:org.springframework.boot.devtools.restart.server.RestartServer.java

/**
 * Called to restart the application.//from   w  w  w . j  av  a2  s .com
 * @param urls the updated URLs
 * @param files the updated files
 */
protected void restart(Set<URL> urls, ClassLoaderFiles files) {
    Restarter restarter = Restarter.getInstance();
    restarter.addUrls(urls);
    restarter.addClassLoaderFiles(files);
    restarter.restart();
}