Example usage for org.springframework.boot.devtools.restart FailureHandler NONE

List of usage examples for org.springframework.boot.devtools.restart FailureHandler NONE

Introduction

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

Prototype

FailureHandler NONE

To view the source code for org.springframework.boot.devtools.restart FailureHandler NONE.

Click Source Link

Document

FailureHandler that always aborts.

Usage

From source file:org.springframework.boot.devtools.restart.Restarter.java

private void immediateRestart() {
    try {//from   w w  w  .  j av a2s  . c  om
        getLeakSafeThread().callAndWait(new Callable<Void>() {

            @Override
            public Void call() throws Exception {
                start(FailureHandler.NONE);
                cleanupCaches();
                return null;
            }

        });
    } catch (Exception ex) {
        this.logger.warn("Unable to initialize restarter", ex);
    }
    SilentExitExceptionHandler.exitCurrentThread();
}

From source file:org.springframework.boot.devtools.restart.Restarter.java

/**
 * Restart the running application.
 */
public void restart() {
    restart(FailureHandler.NONE);
}