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

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

Introduction

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

Prototype

public void restart() 

Source Link

Document

Restart the running application.

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 .  c  om
 * @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();
}