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 SummaryFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionExitCodeEvent(Object source, int exitCode) Create a newExitCodeEventinstance.
- 
Method SummaryModifier and TypeMethodDescriptionintReturn the exit code that will be used to exit the JVM.Methods inherited from class org.springframework.context.ApplicationEventgetTimestampMethods inherited from class java.util.EventObjectgetSource, toString
- 
Constructor Details- 
ExitCodeEventCreate a newExitCodeEventinstance.- Parameters:
- source- the source of the event
- exitCode- the exit code
 
 
- 
- 
Method Details- 
getExitCodepublic int getExitCode()Return the exit code that will be used to exit the JVM.- Returns:
- the exit code
 
 
-