An indication of this need is when your distribution ZIP or update JAR seems larger that it should be, or keeps jumping in size, every time you runthe build process.
So therun method of this object keeps on executing until the contextDestroyed variable is set to true.
因此,这个对象的 run 方法将继续执行,直到将 contextDestroyed 变量设置为 true 为止。
3
This is a little unusual in that the Spring framework instantiates an object that is already run from the command line, but that just keeps things simple for the purposes of this demonstration.
这有点反常,因为 Spring 框架实例化一个已经从命令行运行的对象,但那只是为了实现演示目的而进行的简化。