类 RestartServer
java.lang.Object
org.springframework.boot.devtools.restart.server.RestartServer
Server used to
restart the current application with updated
ClassLoaderFiles.- 从以下版本开始:
- 1.3.0
- 作者:
- Phillip Webb
-
构造器概要
构造器构造器说明RestartServer(SourceDirectoryUrlFilter sourceDirectoryUrlFilter) Create a newRestartServerinstance.RestartServer(SourceDirectoryUrlFilter sourceDirectoryUrlFilter, 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
Create a newRestartServerinstance.- 参数:
sourceDirectoryUrlFilter- the source filter used to link remote directory to the local classpath
-
RestartServer
Create a newRestartServerinstance.- 参数:
sourceDirectoryUrlFilter- the source filter used to link remote directory to the local classpathclassLoader- the application classloader
-
-
方法详细资料
-
updateAndRestart
Update the current running application with the specifiedClassLoaderFilesand trigger a reload.- 参数:
files- updated class loader files
-
restart
Called to restart the application.- 参数:
urls- the updated URLsfiles- the updated files
-