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

get() — spring-boot Function Reference

Architecture documentation for the get() function in SoftReferenceConfigurationPropertyCache.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 4 called by 1

Entity Profile

Dependency Diagram

graph TD
  3fd3f74c_24c5_92b4_4ed5_51d2cc4f8207["get()"]
  f6ff0f77_3cc9_128a_9e0c_e2d191c6a42b["getValue()"]
  f6ff0f77_3cc9_128a_9e0c_e2d191c6a42b -->|calls| 3fd3f74c_24c5_92b4_4ed5_51d2cc4f8207
  f6ff0f77_3cc9_128a_9e0c_e2d191c6a42b["getValue()"]
  3fd3f74c_24c5_92b4_4ed5_51d2cc4f8207 -->|calls| f6ff0f77_3cc9_128a_9e0c_e2d191c6a42b
  07d05db0_c861_cfc0_9521_7b117163996e["setValue()"]
  3fd3f74c_24c5_92b4_4ed5_51d2cc4f8207 -->|calls| 07d05db0_c861_cfc0_9521_7b117163996e
  a8521169_6999_ad79_6c9c_a14962103c90["hasExpired()"]
  3fd3f74c_24c5_92b4_4ed5_51d2cc4f8207 -->|calls| a8521169_6999_ad79_6c9c_a14962103c90
  e943e7f0_abb7_04b9_b24c_d89283963541["now()"]
  3fd3f74c_24c5_92b4_4ed5_51d2cc4f8207 -->|calls| e943e7f0_abb7_04b9_b24c_d89283963541
  style 3fd3f74c_24c5_92b4_4ed5_51d2cc4f8207 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/properties/source/SoftReferenceConfigurationPropertyCache.java lines 99–113

	T get(Supplier<T> factory, UnaryOperator<T> refreshAction) {
		T value = getValue();
		if (value == null) {
			value = refreshAction.apply(factory.get());
			setValue(value);
		}
		else if (hasExpired()) {
			value = refreshAction.apply(value);
			setValue(value);
		}
		if (!this.neverExpire) {
			this.lastAccessed = now();
		}
		return value;
	}

Domain

Subdomains

Calls

  • getValue()
  • hasExpired()
  • now()
  • setValue()

Called By

  • getValue()

Frequently Asked Questions

What does get() do?
get() is a function in the spring-boot codebase.
What does get() call?
get() calls 4 function(s): getValue, hasExpired, now, setValue.
What calls get()?
get() is called by 1 function(s): getValue.

Analyze Your Own Codebase

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

Try Supermodel Free