org.springframework.boot

Class ExitCodeEvent

  • java.lang.Object
    • java.util.EventObject
      • org.springframework.context.ApplicationEvent
        • org.springframework.boot.ExitCodeEvent
  • All Implemented Interfaces:
    java.io.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:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor and Description
      ExitCodeEvent(java.lang.Object source, int exitCode)
      Create a new ExitCodeEvent instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int getExitCode()
      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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ExitCodeEvent

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