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

fetchNext() — spring-boot Function Reference

Architecture documentation for the fetchNext() function in SpringConfigurationPropertySources.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 4 called by 2

Entity Profile

Dependency Diagram

graph TD
  5e91646d_786d_5578_a92d_c5a7aa435606["fetchNext()"]
  a74404cd_087c_1a2a_587e_20f7e7ff7d91["hasNext()"]
  a74404cd_087c_1a2a_587e_20f7e7ff7d91 -->|calls| 5e91646d_786d_5578_a92d_c5a7aa435606
  b4445ae9_38b8_3890_1727_f10aceb12551["next()"]
  b4445ae9_38b8_3890_1727_f10aceb12551 -->|calls| 5e91646d_786d_5578_a92d_c5a7aa435606
  a74404cd_087c_1a2a_587e_20f7e7ff7d91["hasNext()"]
  5e91646d_786d_5578_a92d_c5a7aa435606 -->|calls| a74404cd_087c_1a2a_587e_20f7e7ff7d91
  b4445ae9_38b8_3890_1727_f10aceb12551["next()"]
  5e91646d_786d_5578_a92d_c5a7aa435606 -->|calls| b4445ae9_38b8_3890_1727_f10aceb12551
  1fc43e92_1550_37d1_6872_aaa95da73f68["push()"]
  5e91646d_786d_5578_a92d_c5a7aa435606 -->|calls| 1fc43e92_1550_37d1_6872_aaa95da73f68
  5045eee0_0e3b_c3a1_f74e_b1c61605b00a["isIgnored()"]
  5e91646d_786d_5578_a92d_c5a7aa435606 -->|calls| 5045eee0_0e3b_c3a1_f74e_b1c61605b00a
  style 5e91646d_786d_5578_a92d_c5a7aa435606 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/properties/source/SpringConfigurationPropertySources.java lines 109–129

		private @Nullable ConfigurationPropertySource fetchNext() {
			if (this.next == null) {
				if (this.iterators.isEmpty()) {
					return null;
				}
				if (!this.iterators.peek().hasNext()) {
					this.iterators.pop();
					return fetchNext();
				}
				PropertySource<?> candidate = this.iterators.peek().next();
				if (candidate.getSource() instanceof ConfigurableEnvironment configurableEnvironment) {
					push(configurableEnvironment);
					return fetchNext();
				}
				if (isIgnored(candidate)) {
					return fetchNext();
				}
				this.next = this.adapter.apply(candidate);
			}
			return this.next;
		}

Domain

Subdomains

Calls

  • hasNext()
  • isIgnored()
  • next()
  • push()

Called By

  • hasNext()
  • next()

Frequently Asked Questions

What does fetchNext() do?
fetchNext() is a function in the spring-boot codebase.
What does fetchNext() call?
fetchNext() calls 4 function(s): hasNext, isIgnored, next, push.
What calls fetchNext()?
fetchNext() is called by 2 function(s): hasNext, next.

Analyze Your Own Codebase

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

Try Supermodel Free