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

initializationIsOnlyPerformedOnceUntilCleanedUp() — spring-boot Function Reference

Architecture documentation for the initializationIsOnlyPerformedOnceUntilCleanedUp() function in Log4J2LoggingSystemTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  7848fe0a_e8ff_5fcc_9fd4_ed943e7dc34f["initializationIsOnlyPerformedOnceUntilCleanedUp()"]
  bffa5cc2_2336_d219_9e81_a81a831f09b1["initialize()"]
  7848fe0a_e8ff_5fcc_9fd4_ed943e7dc34f -->|calls| bffa5cc2_2336_d219_9e81_a81a831f09b1
  8a226655_54d5_897b_52c3_90c04e1db20c["cleanUp()"]
  7848fe0a_e8ff_5fcc_9fd4_ed943e7dc34f -->|calls| 8a226655_54d5_897b_52c3_90c04e1db20c
  501f40c7_eea3_8197_664f_2a7d4a9c3264["beforeInitialize()"]
  7848fe0a_e8ff_5fcc_9fd4_ed943e7dc34f -->|calls| 501f40c7_eea3_8197_664f_2a7d4a9c3264
  style 7848fe0a_e8ff_5fcc_9fd4_ed943e7dc34f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystemTests.java lines 337–353

	@Test
	void initializationIsOnlyPerformedOnceUntilCleanedUp() {
		LoggerContext loggerContext = this.loggingSystem.getLoggerContext();
		PropertyChangeListener listener = mock(PropertyChangeListener.class);
		loggerContext.addPropertyChangeListener(listener);
		this.loggingSystem.beforeInitialize();
		this.loggingSystem.initialize(this.initializationContext, null, null);
		this.loggingSystem.beforeInitialize();
		this.loggingSystem.initialize(this.initializationContext, null, null);
		this.loggingSystem.beforeInitialize();
		this.loggingSystem.initialize(this.initializationContext, null, null);
		then(listener).should(times(2)).propertyChange(any(PropertyChangeEvent.class));
		this.loggingSystem.cleanUp();
		this.loggingSystem.beforeInitialize();
		this.loggingSystem.initialize(this.initializationContext, null, null);
		then(listener).should(times(4)).propertyChange(any(PropertyChangeEvent.class));
	}

Domain

Subdomains

Frequently Asked Questions

What does initializationIsOnlyPerformedOnceUntilCleanedUp() do?
initializationIsOnlyPerformedOnceUntilCleanedUp() is a function in the spring-boot codebase.
What does initializationIsOnlyPerformedOnceUntilCleanedUp() call?
initializationIsOnlyPerformedOnceUntilCleanedUp() calls 3 function(s): beforeInitialize, cleanUp, initialize.

Analyze Your Own Codebase

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

Try Supermodel Free