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

getExtensionURLs() — spring-boot Function Reference

Architecture documentation for the getExtensionURLs() function in SpringCli.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  36835245_84e2_304e_be81_47baad968913["getExtensionURLs()"]
  43178ee5_b98d_17d2_e267_9bad8746b2c1["createExtendedClassLoader()"]
  43178ee5_b98d_17d2_e267_9bad8746b2c1 -->|calls| 36835245_84e2_304e_be81_47baad968913
  aeeca5ce_db3b_1fe2_4395_d7e730c8ee92["getName()"]
  36835245_84e2_304e_be81_47baad968913 -->|calls| aeeca5ce_db3b_1fe2_4395_d7e730c8ee92
  style 36835245_84e2_304e_be81_47baad968913 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

cli/spring-boot-cli/src/main/java/org/springframework/boot/cli/SpringCli.java lines 83–102

	private static URL[] getExtensionURLs() {
		List<URL> urls = new ArrayList<>();
		String home = SystemPropertyUtils.resolvePlaceholders("${spring.home:${SPRING_HOME:.}}");
		File extDirectory = new File(new File(home, "lib"), "ext");
		if (extDirectory.isDirectory()) {
			File[] files = extDirectory.listFiles();
			Assert.state(files != null, "'files' must not be null");
			for (File file : files) {
				if (file.getName().endsWith(".jar")) {
					try {
						urls.add(file.toURI().toURL());
					}
					catch (MalformedURLException ex) {
						throw new IllegalStateException(ex);
					}
				}
			}
		}
		return urls.toArray(new URL[0]);
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does getExtensionURLs() do?
getExtensionURLs() is a function in the spring-boot codebase.
What does getExtensionURLs() call?
getExtensionURLs() calls 1 function(s): getName.
What calls getExtensionURLs()?
getExtensionURLs() is called by 1 function(s): createExtendedClassLoader.

Analyze Your Own Codebase

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

Try Supermodel Free