Class BootstrapContextClosedEvent
java.lang.Object
java.util.EventObject
org.springframework.context.ApplicationEvent
org.springframework.boot.bootstrap.BootstrapContextClosedEvent
- All Implemented Interfaces:
Serializable
public class BootstrapContextClosedEvent
extends org.springframework.context.ApplicationEvent
ApplicationEvent published by a BootstrapContext when it's closed.- Since:
- 4.0.0
- See Also:
-
Field Summary
Fields inherited from class EventObject
source -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.context.ConfigurableApplicationContextReturn the prepared application context.Return theBootstrapContextthat was closed.Methods inherited from class org.springframework.context.ApplicationEvent
getTimestampMethods inherited from class EventObject
getSource, toString
-
Method Details
-
getBootstrapContext
Return theBootstrapContextthat was closed.- Returns:
- the bootstrap context
-
getApplicationContext
public org.springframework.context.ConfigurableApplicationContext getApplicationContext()Return the prepared application context.- Returns:
- the application context
-