Package org.springframework.boot
Class ExitCodeEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.boot.ExitCodeEvent
- All Implemented Interfaces:
 Serializable
Event fired when an application exit code has been determined from an
 
ExitCodeGenerator.- Since:
 - 1.3.2
 - Author:
 - Phillip Webb
 - See Also:
 
- 
Field Summary
Fields inherited from class java.util.EventObject
source - 
Constructor Summary
ConstructorsConstructorDescriptionExitCodeEvent(Object source, int exitCode) Create a newExitCodeEventinstance. - 
Method Summary
Modifier and TypeMethodDescriptionintReturn the exit code that will be used to exit the JVM.Methods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class java.util.EventObject
getSource, toString 
- 
Constructor Details
- 
ExitCodeEvent
Create a newExitCodeEventinstance.- 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
 
 
 -