类 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 newRestartServer
instance.RestartServer
(SourceDirectoryUrlFilter sourceDirectoryUrlFilter, 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
Create a newRestartServer
instance.- 参数:
sourceDirectoryUrlFilter
- the source filter used to link remote directory to the local classpath
-
RestartServer
Create a newRestartServer
instance.- 参数:
sourceDirectoryUrlFilter
- the source filter used to link remote directory to the local classpathclassLoader
- the application classloader
-
-
方法详细资料
-
updateAndRestart
Update the current running application with the specifiedClassLoaderFiles
and trigger a reload.- 参数:
files
- updated class loader files
-
restart
Called to restart the application.- 参数:
urls
- the updated URLsfiles
- the updated files
-