org.springframework.boot.context.event

Class ApplicationStartingEvent

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    ApplicationStartedEvent


    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
    Author:
    Phillip Webb, Madhura Bhave
    See Also:
    Serialized Form
    • Constructor Detail

      • ApplicationStartingEvent

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

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