org.springframework.boot.context.event

Class ApplicationContextInitializedEvent

  • All Implemented Interfaces:
    Serializable


    public class ApplicationContextInitializedEvent
    extends SpringApplicationEvent
    Event published when a SpringApplication is starting up and the ApplicationContext is prepared and ApplicationContextInitializers have been called but before any bean definitions are loaded.
    Since:
    2.1.0
    Author:
    Artsiom Yudovin
    See Also:
    Serialized Form
    • Constructor Detail

      • ApplicationContextInitializedEvent

        public ApplicationContextInitializedEvent(SpringApplication application,
                                                  String[] args,
                                                  org.springframework.context.ConfigurableApplicationContext context)
        Create a new ApplicationContextInitializedEvent instance.
        Parameters:
        application - the current application
        args - the arguments the application is running with
        context - the context that has been initialized
    • Method Detail

      • getApplicationContext

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

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