Package org.springframework.boot
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.-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.context.ConfigurableApplicationContext
Return the prepared application context.Return theBootstrapContext
that was closed.Methods inherited from class org.springframework.context.ApplicationEvent
getTimestamp
Methods inherited from class java.util.EventObject
getSource, toString
-
Method Details
-
getBootstrapContext
Return theBootstrapContext
that was closed.- Returns:
- the bootstrap context
-
getApplicationContext
public org.springframework.context.ConfigurableApplicationContext getApplicationContext()Return the prepared application context.- Returns:
- the application context
-