org.springframework.boot.context.event

Class ApplicationPreparedEvent

  • All Implemented Interfaces:
    Serializable


    public class ApplicationPreparedEvent
    extends SpringApplicationEvent
    Event published as when a SpringApplication is starting up and the ApplicationContext is fully prepared but not refreshed. The bean definitions will be loaded and the Environment is ready for use at this stage.
    Author:
    Dave Syer
    See Also:
    Serialized Form
    • Constructor Detail

      • ApplicationPreparedEvent

        public ApplicationPreparedEvent(SpringApplication application,
                                        String[] args,
                                        org.springframework.context.ConfigurableApplicationContext context)
        Create a new ApplicationPreparedEvent instance.
        Parameters:
        application - the current application
        args - the arguments the application is running with
        context - the ApplicationContext about to be refreshed
    • Method Detail

      • getApplicationContext

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

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