Home / Class/ BootstrapContextClosedEvent Class — spring-boot Architecture

BootstrapContextClosedEvent Class — spring-boot Architecture

Architecture documentation for the BootstrapContextClosedEvent class in BootstrapContextClosedEvent.java from the spring-boot codebase.

Entity Profile

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/bootstrap/BootstrapContextClosedEvent.java lines 29–54

public class BootstrapContextClosedEvent extends ApplicationEvent {

	private final ConfigurableApplicationContext applicationContext;

	BootstrapContextClosedEvent(BootstrapContext source, ConfigurableApplicationContext applicationContext) {
		super(source);
		this.applicationContext = applicationContext;
	}

	/**
	 * Return the {@link BootstrapContext} that was closed.
	 * @return the bootstrap context
	 */
	public BootstrapContext getBootstrapContext() {
		return (BootstrapContext) this.source;
	}

	/**
	 * Return the prepared application context.
	 * @return the application context
	 */
	public ConfigurableApplicationContext getApplicationContext() {
		return this.applicationContext;
	}

}

Domain

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free