Home / Function/ clear() — spring-boot Function Reference

clear() — spring-boot Function Reference

Architecture documentation for the clear() function in LoggingApplicationListenerTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  f377cc0b_237c_63cd_8ca3_c28188eb2850["clear()"]
  49a45454_f203_2fd5_2d77_322abb416244["getClassLoader()"]
  f377cc0b_237c_63cd_8ca3_c28188eb2850 -->|calls| 49a45454_f203_2fd5_2d77_322abb416244
  f984dcb2_dec0_ea96_2752_9e818dbdd1bf["cleanUp()"]
  f377cc0b_237c_63cd_8ca3_c28188eb2850 -->|calls| f984dcb2_dec0_ea96_2752_9e818dbdd1bf
  4e211bb0_70d3_a9b1_a3cf_9cb15a3b022a["getShutdownHandler()"]
  f377cc0b_237c_63cd_8ca3_c28188eb2850 -->|calls| 4e211bb0_70d3_a9b1_a3cf_9cb15a3b022a
  89cfa04a_3922_680e_945d_5b4338252cc7["run()"]
  f377cc0b_237c_63cd_8ca3_c28188eb2850 -->|calls| 89cfa04a_3922_680e_945d_5b4338252cc7
  7dbdd22f_6929_2540_3475_c564a673879d["close()"]
  f377cc0b_237c_63cd_8ca3_c28188eb2850 -->|calls| 7dbdd22f_6929_2540_3475_c564a673879d
  5442b6c9_c948_65c9_3b32_df1993add6a2["getName()"]
  f377cc0b_237c_63cd_8ca3_c28188eb2850 -->|calls| 5442b6c9_c948_65c9_3b32_df1993add6a2
  e3a6021f_4fd2_4807_668f_6ce7e37fe5d4["get()"]
  f377cc0b_237c_63cd_8ca3_c28188eb2850 -->|calls| e3a6021f_4fd2_4807_668f_6ce7e37fe5d4
  style f377cc0b_237c_63cd_8ca3_c28188eb2850 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

	@AfterEach
	void clear() {
		LoggingSystem loggingSystem = LoggingSystem.get(getClass().getClassLoader());
		loggingSystem.setLogLevel("ROOT", LogLevel.INFO);
		loggingSystem.cleanUp();
		if (loggingSystem.getShutdownHandler() != null) {
			loggingSystem.getShutdownHandler().run();
		}
		System.clearProperty(LoggingSystem.class.getName());
		System.clearProperty(LoggingSystem.SYSTEM_PROPERTY);
		System.getProperties().keySet().retainAll(this.systemPropertyNames);
		this.context.close();
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does clear() do?
clear() is a function in the spring-boot codebase.
What does clear() call?
clear() calls 7 function(s): cleanUp, close, get, getClassLoader, getName, getShutdownHandler, run.

Analyze Your Own Codebase

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

Try Supermodel Free