类 DefaultRestartInitializer
java.lang.Object
org.springframework.boot.devtools.restart.DefaultRestartInitializer
- 所有已实现的接口:
RestartInitializer
Default
RestartInitializer that only enable initial restart when running a
standard "main" method. Skips initialization when running "fat" jars (included
exploded) or when running from a test.- 从以下版本开始:
- 1.3.0
- 作者:
- Phillip Webb, Andy Wilkinson
-
字段概要
从接口继承的字段 org.springframework.boot.devtools.restart.RestartInitializer
NONE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明URL[]getInitialUrls(Thread thread) Return the initial set of URLs for theRestarterornullif no initial restart is required.protected URL[]Return the URLs that should be used with initialization.protected booleanisDevelopmentClassLoader(ClassLoader classLoader) Returns whether the givenclassLoaderis one that is typically used during development.protected booleanReturns if the thread is for a main invocation.protected booleanisMainThread(Thread thread) Returns whether the giventhreadis considered to be the main thread.
-
构造器详细资料
-
DefaultRestartInitializer
public DefaultRestartInitializer()
-
-
方法详细资料
-
getInitialUrls
从接口复制的说明:RestartInitializerReturn the initial set of URLs for theRestarterornullif no initial restart is required.- 指定者:
getInitialUrls在接口中RestartInitializer- 参数:
thread- the source thread- 返回:
- initial URLs or
null
-
isMain
Returns if the thread is for a main invocation. By defaultchecks the name of the threadandthe context classloader.- 参数:
thread- the thread to check- 返回:
trueif the thread is a main invocation- 另请参阅:
-
isMainThread
Returns whether the giventhreadis considered to be the main thread.- 参数:
thread- the thread to check- 返回:
trueif it's the main thread, otherwisefalse- 从以下版本开始:
- 2.4.0
-
isDevelopmentClassLoader
Returns whether the givenclassLoaderis one that is typically used during development.- 参数:
classLoader- the ClassLoader to check- 返回:
trueif it's a ClassLoader typically used during development, otherwisefalse- 从以下版本开始:
- 2.4.0
-
getUrls
Return the URLs that should be used with initialization.- 参数:
thread- the source thread- 返回:
- the URLs
-