org.springframework.boot.context.event

Class ApplicationReadyEvent

  • All Implemented Interfaces:
    java.io.Serializable


    public class ApplicationReadyEvent
    extends SpringApplicationEvent
    Event published as late as conceivably possible to indicate that the application is ready to service requests. The source of the event is the SpringApplication itself, but beware of modifying its internal state since all initialization steps will have been completed by then.
    Since:
    1.3.0
    See Also:
    ApplicationFailedEvent, Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      org.springframework.context.ConfigurableApplicationContext getApplicationContext()
      Return the application context.
      • 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

      • ApplicationReadyEvent

        public ApplicationReadyEvent(SpringApplication application,
                                     java.lang.String[] args,
                                     org.springframework.context.ConfigurableApplicationContext context)
        Create a new ApplicationReadyEvent instance.
        Parameters:
        application - the current application
        args - the arguments the application is running with
        context - the context that was being created
    • Method Detail

      • getApplicationContext

        public org.springframework.context.ConfigurableApplicationContext getApplicationContext()
        Return the application context.
        Returns:
        the context