Class ApplicationPreparedEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.boot.context.event.SpringApplicationEvent
org.springframework.boot.context.event.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.
Since:
1.0.0
See Also:
  • Constructor Details

    • 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 Details

    • getApplicationContext

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