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