Home / Class/ TestShutdownHandlerLoggingSystem Class — spring-boot Architecture

TestShutdownHandlerLoggingSystem Class — spring-boot Architecture

Architecture documentation for the TestShutdownHandlerLoggingSystem 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 655–701

	static class TestShutdownHandlerLoggingSystem extends AbstractLoggingSystem {

		private static @Nullable CountDownLatch shutdownLatch;

		TestShutdownHandlerLoggingSystem(ClassLoader classLoader) {
			super(classLoader);
			TestShutdownHandlerLoggingSystem.shutdownLatch = new CountDownLatch(1);
		}

		@Override
		protected String[] getStandardConfigLocations() {
			return new String[] { "foo.bar" };
		}

		@Override
		protected void loadDefaults(LoggingInitializationContext initializationContext, @Nullable LogFile logFile) {
		}

		@Override
		protected void loadConfiguration(LoggingInitializationContext initializationContext, String location,
				@Nullable LogFile logFile) {
		}

		@Override
		public void setLogLevel(@Nullable String loggerName, @Nullable LogLevel level) {
		}

		@Override
		public List<LoggerConfiguration> getLoggerConfigurations() {
			return Collections.emptyList();
		}

		@Override
		public @Nullable LoggerConfiguration getLoggerConfiguration(String loggerName) {
			return null;
		}

		@Override
		public Runnable getShutdownHandler() {
			return () -> {
				CountDownLatch shutdownLatch = TestShutdownHandlerLoggingSystem.shutdownLatch;
				assertThat(shutdownLatch).isNotNull();
				shutdownLatch.countDown();
			};
		}

	}

Domain

Analyze Your Own Codebase

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

Try Supermodel Free