Home / Class/ WebServerStyleLifecycle Class — spring-boot Architecture

WebServerStyleLifecycle Class — spring-boot Architecture

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

Entity Profile

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/logging/LoggingApplicationListenerTests.java lines 784–813

	static class WebServerStyleLifecycle implements SmartLifecycle {

		private volatile boolean running;

		@Nullable Runnable onStop;

		@Override
		public void start() {
			this.running = true;
		}

		@Override
		public void stop() {
			this.running = false;
			if (this.onStop != null) {
				this.onStop.run();
			}
		}

		@Override
		public boolean isRunning() {
			return this.running;
		}

		@Override
		public int getPhase() {
			return Integer.MAX_VALUE - 1;
		}

	}

Domain

Analyze Your Own Codebase

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

Try Supermodel Free