接口 SpringApplicationHook
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
Low-level hook that can be used to attach a
SpringApplicationRunListener
to a
SpringApplication
in order to observe or modify its behavior. Hooks are managed
on a per-thread basis providing isolation when multiple applications are executed in
parallel.- 从以下版本开始:
- 3.0.0
- 作者:
- Andy Wilkinson, Phillip Webb
- 另请参阅:
-
方法概要
修饰符和类型方法说明getRunListener
(SpringApplication springApplication) Return theSpringApplicationRunListener
that should be hooked into the givenSpringApplication
.
-
方法详细资料
-
getRunListener
Return theSpringApplicationRunListener
that should be hooked into the givenSpringApplication
.- 参数:
springApplication
- the sourceSpringApplication
instance- 返回:
- the
SpringApplicationRunListener
to attach
-