closingChildContextDoesNotCleanUpLoggingSystem() — spring-boot Function Reference
Architecture documentation for the closingChildContextDoesNotCleanUpLoggingSystem() function in LoggingApplicationListenerTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD c473242c_f628_f21c_e566_916cadd4d5e3["closingChildContextDoesNotCleanUpLoggingSystem()"] b21aabff_7677_28df_125a_1805aeda834e["multicastEvent()"] c473242c_f628_f21c_e566_916cadd4d5e3 -->|calls| b21aabff_7677_28df_125a_1805aeda834e be3bab95_2d77_cc83_e74d_439204d631d0["ApplicationStartingEvent()"] c473242c_f628_f21c_e566_916cadd4d5e3 -->|calls| be3bab95_2d77_cc83_e74d_439204d631d0 7dbdd22f_6929_2540_3475_c564a673879d["close()"] c473242c_f628_f21c_e566_916cadd4d5e3 -->|calls| 7dbdd22f_6929_2540_3475_c564a673879d 5442b6c9_c948_65c9_3b32_df1993add6a2["getName()"] c473242c_f628_f21c_e566_916cadd4d5e3 -->|calls| 5442b6c9_c948_65c9_3b32_df1993add6a2 style c473242c_f628_f21c_e566_916cadd4d5e3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/logging/LoggingApplicationListenerTests.java lines 479–494
@Test
void closingChildContextDoesNotCleanUpLoggingSystem() {
System.setProperty(LoggingSystem.SYSTEM_PROPERTY, TestCleanupLoggingSystem.class.getName());
multicastEvent(new ApplicationStartingEvent(this.bootstrapContext, this.springApplication, new String[0]));
TestCleanupLoggingSystem loggingSystem = (TestCleanupLoggingSystem) ReflectionTestUtils.getField(this.listener,
"loggingSystem");
assertThat(loggingSystem).isNotNull();
assertThat(loggingSystem.cleanedUp).isFalse();
GenericApplicationContext childContext = new GenericApplicationContext();
childContext.setParent(this.context);
multicastEvent(new ContextClosedEvent(childContext));
assertThat(loggingSystem.cleanedUp).isFalse();
multicastEvent(new ContextClosedEvent(this.context));
assertThat(loggingSystem.cleanedUp).isTrue();
childContext.close();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does closingChildContextDoesNotCleanUpLoggingSystem() do?
closingChildContextDoesNotCleanUpLoggingSystem() is a function in the spring-boot codebase.
What does closingChildContextDoesNotCleanUpLoggingSystem() call?
closingChildContextDoesNotCleanUpLoggingSystem() calls 4 function(s): ApplicationStartingEvent, close, getName, multicastEvent.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free