Package org.springframework.boot
Class ExitCodeEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.boot.ExitCodeEvent
- All Implemented Interfaces:
Serializable
public class ExitCodeEvent
extends org.springframework.context.ApplicationEvent
Event fired when an application exit code has been determined from an
ExitCodeGenerator
.- Since:
- 1.3.2
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionExitCodeEvent
(Object source, int exitCode) Create a newExitCodeEvent
instance. -
Method Summary
Modifier and TypeMethodDescriptionint
Return the exit code that will be used to exit the JVM.Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
ExitCodeEvent
Create a newExitCodeEvent
instance.- Parameters:
source
- the source of the eventexitCode
- the exit code
-
-
Method Details
-
getExitCode
public int getExitCode()Return the exit code that will be used to exit the JVM.- Returns:
- the exit code
-