org.springframework.boot.context.event

Class ApplicationReadyEvent

  • All Implemented Interfaces:
    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
    Author:
    Stephane Nicoll
    See Also:
    ApplicationFailedEvent, Serialized Form
    • Constructor Detail

      • ApplicationReadyEvent

        public ApplicationReadyEvent(SpringApplication application,
                                     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

Copyright © 2015 Pivotal Software, Inc.. All rights reserved.