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

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

Introduction

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

Prototype

public void addClassLoaderFiles(ClassLoaderFiles classLoaderFiles) 

Source Link

Document

Add additional ClassLoaderFiles to be included 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  a 2 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();
}