类 RestartServer
- java.lang.Object
- org.springframework.boot.devtools.restart.server.RestartServer
public class RestartServer extends Object
Server used torestartthe current application with updatedClassLoaderFiles.- 从以下版本开始:
- 1.3.0
构造器概要
构造器 构造器 说明 RestartServer(SourceFolderUrlFilter sourceFolderUrlFilter)Create a newRestartServerinstance.RestartServer(SourceFolderUrlFilter sourceFolderUrlFilter, ClassLoader classLoader)Create a newRestartServerinstance.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidrestart(Set<URL> urls, ClassLoaderFiles files)Called to restart the application.voidupdateAndRestart(ClassLoaderFiles files)Update the current running application with the specifiedClassLoaderFilesand trigger a reload.
构造器详细资料
RestartServer
public RestartServer(SourceFolderUrlFilter sourceFolderUrlFilter)
Create a newRestartServerinstance.- 参数:
sourceFolderUrlFilter- the source filter used to link remote folder to the local classpath
RestartServer
public RestartServer(SourceFolderUrlFilter sourceFolderUrlFilter, ClassLoader classLoader)
Create a newRestartServerinstance.- 参数:
sourceFolderUrlFilter- the source filter used to link remote folder to the local classpathclassLoader- the application classloader
方法详细资料
updateAndRestart
public void updateAndRestart(ClassLoaderFiles files)
Update the current running application with the specifiedClassLoaderFilesand trigger a reload.- 参数:
files- updated class loader files
restart
protected void restart(Set<URL> urls, ClassLoaderFiles files)
Called to restart the application.- 参数:
urls- the updated URLsfiles- the updated files