withSystemProperty() — spring-boot Function Reference
Architecture documentation for the withSystemProperty() function in Log4j2XmlTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD b084b8cf_fe2d_de9b_3e16_185ebe6331c4["withSystemProperty()"] 3948cea9_5788_7eac_5cb5_66c98a7f0217["whenLogExceptionConversionWordIsSetThenConsoleUsesIt()"] 3948cea9_5788_7eac_5cb5_66c98a7f0217 -->|calls| b084b8cf_fe2d_de9b_3e16_185ebe6331c4 eb0a776c_8f37_7251_4ed0_eb045773be49["whenLogLevelPatternIsSetThenConsoleUsesIt()"] eb0a776c_8f37_7251_4ed0_eb045773be49 -->|calls| b084b8cf_fe2d_de9b_3e16_185ebe6331c4 fe755810_4552_1097_22a2_28eed08c98ff["whenLogDateformatPatternIsSetThenConsoleUsesIt()"] fe755810_4552_1097_22a2_28eed08c98ff -->|calls| b084b8cf_fe2d_de9b_3e16_185ebe6331c4 style b084b8cf_fe2d_de9b_3e16_185ebe6331c4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/logging/log4j2/Log4j2XmlTests.java lines 85–94
protected void withSystemProperty(String name, String value, Runnable action) {
String previous = System.setProperty(name, value);
action.run();
if (previous == null) {
System.clearProperty(name);
}
else {
System.setProperty(name, previous);
}
}
Domain
Subdomains
Called By
- whenLogDateformatPatternIsSetThenConsoleUsesIt()
- whenLogExceptionConversionWordIsSetThenConsoleUsesIt()
- whenLogLevelPatternIsSetThenConsoleUsesIt()
Source
Frequently Asked Questions
What does withSystemProperty() do?
withSystemProperty() is a function in the spring-boot codebase.
What calls withSystemProperty()?
withSystemProperty() is called by 3 function(s): whenLogDateformatPatternIsSetThenConsoleUsesIt, whenLogExceptionConversionWordIsSetThenConsoleUsesIt, whenLogLevelPatternIsSetThenConsoleUsesIt.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free