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

findAll() — spring-boot Function Reference

Architecture documentation for the findAll() function in ConfigTreePropertySource.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  2dd034d9_fdbd_0980_7432_5a3cd65f508a["findAll()"]
  ccd6cd92_f331_18cd_f84a_757078816353["ConfigTreePropertySource()"]
  ccd6cd92_f331_18cd_f84a_757078816353 -->|calls| 2dd034d9_fdbd_0980_7432_5a3cd65f508a
  307fbff1_6c3d_5fa0_72cf_9b13c9e57a7d["getName()"]
  2dd034d9_fdbd_0980_7432_5a3cd65f508a -->|calls| 307fbff1_6c3d_5fa0_72cf_9b13c9e57a7d
  aacae207_b7e0_f473_f349_86053b253c21["PropertyFile()"]
  2dd034d9_fdbd_0980_7432_5a3cd65f508a -->|calls| aacae207_b7e0_f473_f349_86053b253c21
  style 2dd034d9_fdbd_0980_7432_5a3cd65f508a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/env/ConfigTreePropertySource.java lines 212–232

		static Map<String, PropertyFile> findAll(Path sourceDirectory, Set<Option> options) {
			try {
				Map<String, PropertyFile> propertyFiles = new TreeMap<>();
				try (Stream<Path> pathStream = Files.find(sourceDirectory, MAX_DEPTH, PropertyFile::isPropertyFile,
						FileVisitOption.FOLLOW_LINKS)) {
					pathStream.forEach((path) -> {
						String name = getName(sourceDirectory.relativize(path));
						if (StringUtils.hasText(name)) {
							if (options.contains(Option.USE_LOWERCASE_NAMES)) {
								name = name.toLowerCase(Locale.getDefault());
							}
							propertyFiles.put(name, new PropertyFile(path, options));
						}
					});
				}
				return Collections.unmodifiableMap(propertyFiles);
			}
			catch (IOException ex) {
				throw new IllegalStateException("Unable to find files in '" + sourceDirectory + "'", ex);
			}
		}

Domain

Subdomains

Calls

Frequently Asked Questions

What does findAll() do?
findAll() is a function in the spring-boot codebase.
What does findAll() call?
findAll() calls 2 function(s): PropertyFile, getName.
What calls findAll()?
findAll() is called by 1 function(s): ConfigTreePropertySource.

Analyze Your Own Codebase

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

Try Supermodel Free