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 anExitCodeGenerator
.- Since:
- 1.3.2
- See Also:
- Serialized Form
Field Summary
Fields inherited from class java.util.EventObject
source
Constructor Summary
Constructors Constructor Description ExitCodeEvent(Object source, int exitCode)
Create a newExitCodeEvent
instance.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getExitCode()
Return the exit code that will be used to exit the JVM.Methods inherited from class java.util.EventObject
getSource, toString
Constructor Detail
ExitCodeEvent
public ExitCodeEvent(Object source, int exitCode)
Create a newExitCodeEvent
instance.- Parameters:
source
- the source of the eventexitCode
- the exit code
Method Detail
getExitCode
public int getExitCode()
Return the exit code that will be used to exit the JVM.- Returns:
- the exit code