fetchIfNecessary() — spring-boot Function Reference
Architecture documentation for the fetchIfNecessary() function in ConfigDataEnvironmentContributor.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 6c55f8a2_4026_f38f_c646_271db83e2f82["fetchIfNecessary()"] f7795442_900e_6a23_7856_7972ad22c92e["hasNext()"] f7795442_900e_6a23_7856_7972ad22c92e -->|calls| 6c55f8a2_4026_f38f_c646_271db83e2f82 6803a880_86a8_b900_887a_45238ccbb1a9["next()"] 6803a880_86a8_b900_887a_45238ccbb1a9 -->|calls| 6c55f8a2_4026_f38f_c646_271db83e2f82 f7795442_900e_6a23_7856_7972ad22c92e["hasNext()"] 6c55f8a2_4026_f38f_c646_271db83e2f82 -->|calls| f7795442_900e_6a23_7856_7972ad22c92e 6803a880_86a8_b900_887a_45238ccbb1a9["next()"] 6c55f8a2_4026_f38f_c646_271db83e2f82 -->|calls| 6803a880_86a8_b900_887a_45238ccbb1a9 3a3db6e1_421e_c047_fc60_4d23ef5565e7["iterator()"] 6c55f8a2_4026_f38f_c646_271db83e2f82 -->|calls| 3a3db6e1_421e_c047_fc60_4d23ef5565e7 806deb3a_6eef_e786_b487_5acade28d02c["getChildren()"] 6c55f8a2_4026_f38f_c646_271db83e2f82 -->|calls| 806deb3a_6eef_e786_b487_5acade28d02c style 6c55f8a2_4026_f38f_c646_271db83e2f82 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataEnvironmentContributor.java lines 578–601
private @Nullable ConfigDataEnvironmentContributor fetchIfNecessary() {
if (this.next != null) {
return this.next;
}
if (this.current.hasNext()) {
this.next = this.current.next();
return this.next;
}
if (this.children.hasNext()) {
this.current = this.children.next().iterator();
return fetchIfNecessary();
}
if (this.phase == ImportPhase.AFTER_PROFILE_ACTIVATION) {
this.phase = ImportPhase.BEFORE_PROFILE_ACTIVATION;
this.children = getChildren(this.phase).iterator();
return fetchIfNecessary();
}
if (this.phase == ImportPhase.BEFORE_PROFILE_ACTIVATION) {
this.phase = null;
this.next = ConfigDataEnvironmentContributor.this;
return this.next;
}
return null;
}
Domain
Subdomains
Calls
- getChildren()
- hasNext()
- iterator()
- next()
Called By
- hasNext()
- next()
Source
Frequently Asked Questions
What does fetchIfNecessary() do?
fetchIfNecessary() is a function in the spring-boot codebase.
What does fetchIfNecessary() call?
fetchIfNecessary() calls 4 function(s): getChildren, hasNext, iterator, next.
What calls fetchIfNecessary()?
fetchIfNecessary() 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