org.springframework.boot.context.event

Class ApplicationStartingEvent

  • All Implemented Interfaces:
    java.io.Serializable


    public class ApplicationStartingEvent
    extends SpringApplicationEvent
    Event published as early as conceivably possible as soon as a SpringApplication has been started - before the Environment or ApplicationContext is available, but after the ApplicationListeners have been registered. The source of the event is the SpringApplication itself, but beware of using its internal state too much at this early stage since it might be modified later in the lifecycle.
    Since:
    1.5.0
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Method Summary

      • 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

      • ApplicationStartingEvent

        public ApplicationStartingEvent(SpringApplication application,
                                        java.lang.String[] args)
        Create a new ApplicationStartingEvent instance.
        Parameters:
        application - the current application
        args - the arguments the application is running with