类 ExitCodeEvent
- java.lang.Object
- java.util.EventObject
- org.springframework.context.ApplicationEvent
- org.springframework.boot.ExitCodeEvent
- 所有已实现的接口:
Serializable
public class ExitCodeEvent extends org.springframework.context.ApplicationEvent
Event fired when an application exit code has been determined from anExitCodeGenerator
.- 从以下版本开始:
- 1.3.2
- 另请参阅:
- 序列化表格
字段概要
从类继承的字段 java.util.EventObject
source
构造器概要
构造器 构造器 说明 ExitCodeEvent(Object source, int exitCode)
Create a newExitCodeEvent
instance.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 int
getExitCode()
Return the exit code that will be used to exit the JVM.从类继承的方法 java.util.EventObject
getSource, toString
构造器详细资料
ExitCodeEvent
public ExitCodeEvent(Object source, int exitCode)
Create a newExitCodeEvent
instance.- 参数:
source
- the source of the eventexitCode
- the exit code
方法详细资料
getExitCode
public int getExitCode()
Return the exit code that will be used to exit the JVM.- 返回:
- the exit code