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:
  • Constructor Details

    • ExitCodeEvent

      public ExitCodeEvent(Object source, int exitCode)
      Create a new ExitCodeEvent instance.
      Parameters:
      source - the source of the event
      exitCode - 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