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

getProperty() — spring-boot Function Reference

Architecture documentation for the getProperty() function in AnsiPropertySource.java from the spring-boot codebase.

Function java GradlePlugin DslExtensions calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  a1e4021c_8d81_2670_0b28_fe361826204f["getProperty()"]
  ca182c08_acf7_eb8d_18e6_8245964fcdb1["getProperty()"]
  ca182c08_acf7_eb8d_18e6_8245964fcdb1 -->|calls| a1e4021c_8d81_2670_0b28_fe361826204f
  aba5efa9_e2f2_ec8f_b95e_448ab2096c17["getPrefix()"]
  a1e4021c_8d81_2670_0b28_fe361826204f -->|calls| aba5efa9_e2f2_ec8f_b95e_448ab2096c17
  41f7b06a_06b1_9a5c_c620_430b11b46dc4["getElement()"]
  a1e4021c_8d81_2670_0b28_fe361826204f -->|calls| 41f7b06a_06b1_9a5c_c620_430b11b46dc4
  style a1e4021c_8d81_2670_0b28_fe361826204f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/ansi/AnsiPropertySource.java lines 77–92

	@Override
	public @Nullable Object getProperty(String name) {
		if (StringUtils.hasLength(name)) {
			for (Mapping mapping : MAPPINGS) {
				String prefix = mapping.getPrefix();
				if (name.startsWith(prefix)) {
					String postfix = name.substring(prefix.length());
					AnsiElement element = mapping.getElement(postfix);
					if (element != null) {
						return (this.encode) ? AnsiOutput.encode(element) : element;
					}
				}
			}
		}
		return null;
	}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does getProperty() do?
getProperty() is a function in the spring-boot codebase.
What does getProperty() call?
getProperty() calls 2 function(s): getElement, getPrefix.
What calls getProperty()?
getProperty() is called by 1 function(s): getProperty.

Analyze Your Own Codebase

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

Try Supermodel Free