Class BootstrapContextClosedEvent

java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.boot.BootstrapContextClosedEvent
All Implemented Interfaces:
Serializable

public class BootstrapContextClosedEvent extends org.springframework.context.ApplicationEvent
ApplicationEvent published by a BootstrapContext when it's closed.
Since:
2.4.0
See Also:
  • Method Details

    • getBootstrapContext

      public BootstrapContext getBootstrapContext()
      Return the BootstrapContext that was closed.
      Returns:
      the bootstrap context
    • getApplicationContext

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